From 52f00b89f9ec105b7ea710c7b02661e5e6386c56 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Tue, 29 Sep 2020 15:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=A1=AE=E8=AE=A4=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E5=89=8D=E7=AB=AF=E5=AF=B9=E6=8C=89=E9=92=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=98=B2=E8=BF=9E=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/heart/actuserclock-detail.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/modules/heart/actuserclock-detail.vue b/src/views/modules/heart/actuserclock-detail.vue index d03b3a2..aea5f7d 100644 --- a/src/views/modules/heart/actuserclock-detail.vue +++ b/src/views/modules/heart/actuserclock-detail.vue @@ -27,6 +27,8 @@ size="small" style="width: 95px" type="primary" + :disabled = "isDisabled" + :loading="isLoading" @click="dataFormSubmitHandle()" >{{ $t('confirm') }} {{ '返回' }} @@ -156,7 +158,9 @@ export default { previewImgList: [], isAble: false, isEdit: false, - actUseId: '' + actUseId: '', + isDisabled: false, + isLoading: false } }, mounted () { @@ -225,6 +229,9 @@ export default { this.$nextTick(() => { if (this.dataForm.id) { this.getInfo() + // 积分操作按钮 防点击 + this.isDisabled = false + this.isLoading = false } }) }, @@ -334,11 +341,15 @@ export default { if (this.dataForm.failureReason.length > 100) { return this.$message.error('处理意见不超过100字') } + this.isLoading = true + this.isDisabled = true // this.isAble = true this.$http['post']('/heart/actuserclocklog/pointCheck', this.dataForm) .then(({ data: res }) => { // this.isAble = false if (res.code !== 0) { + this.isDisabled = false + this.isLoading = false return this.$message.error(res.msg) } this.$message({