【bug】会议上传文件提示语修改

This commit is contained in:
fengachen
2021-10-25 14:05:28 +08:00
parent 8c23e765d7
commit 5b24d7fa0c
@@ -21,10 +21,6 @@
</a-row>
</a-form>
</a-spin>
<template slot="footer">
<a-button @click="handleCancel">关闭</a-button>
<a-button @click="handleOk" type="primary" v-preventclick>确定</a-button>
</template>
</j-modal>
</template>
@@ -116,6 +112,10 @@ export default {
},
handleOk() {
const that = this
if (this.confirmLoading) {
return
}
this.confirmLoading = true
// 触发表单验证
this.form.validateFields((err, values) => {
if(!err && values.fileIds !== undefined){
@@ -127,8 +127,18 @@ export default {
if(res.success){
that.$message.success(res.message)
that.$emit('ok')
this.confirmLoading = false
that.close()
}else {
this.$message.warn(res.message)
this.confirmLoading = false
}
}).catch((err) => {
console.log(err,'err')
}).finally(() => {
setTimeout(() => {
this.confirmLoading = false
}, 1000)
})
}else {
that.close()