Browse Source

【PC端】内容安全-待审核记录审核按钮添加防点击-王公峰-2020-08-06

master
wanggongfeng 5 years ago
parent
commit
f19726e1bd
  1. 8
      src/views/modules/contentSecurity/checkrecords-handle.vue

8
src/views/modules/contentSecurity/checkrecords-handle.vue

@ -18,7 +18,7 @@
</el-form>
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button>
<el-button type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button>
</template>
</el-dialog>
</template>
@ -33,7 +33,8 @@ export default {
id: '',
result: '',
suggestion: ''
}
},
isAble: false
}
},
computed: {
@ -51,6 +52,7 @@ export default {
methods: {
init () {
this.visible = true
this.isAble = false
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
})
@ -61,8 +63,10 @@ export default {
if (!valid) {
return false
}
this.isAble = true
this.$http['post']('/contentSecurity/handleResult/handleRecords', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
this.isAble = false
return this.$message.error(res.msg)
}
this.$message({

Loading…
Cancel
Save