From e47ca7616e0a9340b41ec27ec1267bf4f6893aec Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Tue, 29 Sep 2020 11:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=97=E6=84=BF=E8=80=85=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=92=8C=E7=A7=AF=E5=88=86=E6=8E=92=E5=90=8D=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=8C=89=E9=92=AE=E5=A2=9E=E5=8A=A0=20=20=20?= =?UTF-8?q?=E9=98=B2=E8=BF=9E=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/points/userinfo-points-adjust.vue | 15 ++++++++++++--- .../points/volunteerinfo-points-adjust.vue | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/views/modules/points/userinfo-points-adjust.vue b/src/views/modules/points/userinfo-points-adjust.vue index 02c3a12..721ad14 100644 --- a/src/views/modules/points/userinfo-points-adjust.vue +++ b/src/views/modules/points/userinfo-points-adjust.vue @@ -53,12 +53,12 @@ + :min="1" :max="1000"> @@ -83,7 +83,9 @@ export default { adjustReason: '', operationType: '', operatePoints: '' - } + }, + isDisabled: false, + isLoading: false } }, computed: { @@ -125,6 +127,9 @@ export default { this.dataForm.adjustReason = '' this.dataForm.operationType = '' this.dataForm.operatePoints = '' + // 积分调整 确定按钮 防点击 + this.isDisabled = false + this.isLoading = false } }) }, @@ -144,9 +149,13 @@ export default { if (!valid) { return false } + this.isLoading = true + this.isDisabled = true this.$http['post']( '/points/pointslogs/confirmUserAdjustPoint', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { + this.isDisabled = false + this.isLoading = false return this.$message.error(res.msg) } this.$message({ diff --git a/src/views/modules/points/volunteerinfo-points-adjust.vue b/src/views/modules/points/volunteerinfo-points-adjust.vue index 1e33db5..59fc507 100644 --- a/src/views/modules/points/volunteerinfo-points-adjust.vue +++ b/src/views/modules/points/volunteerinfo-points-adjust.vue @@ -65,12 +65,12 @@ + :min="1" :max="1000"> @@ -97,7 +97,9 @@ export default { operatePoints: '', behaviorCode: '' }, - behaviorTypeList: [] + behaviorTypeList: [], + isDisabled: false, + isLoading: false } }, computed: { @@ -148,6 +150,9 @@ export default { this.dataForm.operationType = '' this.dataForm.operatePoints = '' this.dataForm.behaviorCode = '' + // 积分调整 确定按钮 防点击 + this.isDisabled = false + this.isLoading = false } }) }, @@ -167,9 +172,13 @@ export default { if (!valid) { return false } + this.isLoading = true + this.isDisabled = true this.$http['post']( '/points/pointslogs/confirmAdjustPoint', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { + this.isDisabled = false + this.isLoading = false return this.$message.error(res.msg) } this.$message({