【bug】会议上传文件提示语修改
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user