|
|
@ -53,12 +53,12 @@ |
|
|
|
<el-form-item label="积分调整 :" |
|
|
|
prop="operatePoints"> |
|
|
|
<el-input-number v-model="dataForm.operatePoints" |
|
|
|
:min="0" :max="1000"></el-input-number> |
|
|
|
:min="1" :max="1000"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" :disabled = "isDisabled" :loading="isLoading" |
|
|
|
@click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
@ -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({ |
|
|
|