|
|
@ -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({ |
|
|
|