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">
{{ $t('cancel') }}
- {{ $t('confirm') }}
@@ -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">
{{ $t('cancel') }}
- {{ $t('confirm') }}
@@ -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({