diff --git a/src/views/modules/contentSecurity/checkrecords-handle.vue b/src/views/modules/contentSecurity/checkrecords-handle.vue index df9653f6..4d06dd47 100644 --- a/src/views/modules/contentSecurity/checkrecords-handle.vue +++ b/src/views/modules/contentSecurity/checkrecords-handle.vue @@ -18,7 +18,7 @@ @@ -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({