【bug】会议上传文件提示语修改
This commit is contained in:
@@ -21,10 +21,6 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<template slot="footer">
|
|
||||||
<a-button @click="handleCancel">关闭</a-button>
|
|
||||||
<a-button @click="handleOk" type="primary" v-preventclick>确定</a-button>
|
|
||||||
</template>
|
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -116,6 +112,10 @@ export default {
|
|||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
const that = this
|
const that = this
|
||||||
|
if (this.confirmLoading) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
// 触发表单验证
|
// 触发表单验证
|
||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if(!err && values.fileIds !== undefined){
|
if(!err && values.fileIds !== undefined){
|
||||||
@@ -127,8 +127,18 @@ export default {
|
|||||||
if(res.success){
|
if(res.success){
|
||||||
that.$message.success(res.message)
|
that.$message.success(res.message)
|
||||||
that.$emit('ok')
|
that.$emit('ok')
|
||||||
|
this.confirmLoading = false
|
||||||
that.close()
|
that.close()
|
||||||
|
}else {
|
||||||
|
this.$message.warn(res.message)
|
||||||
|
this.confirmLoading = false
|
||||||
}
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
console.log(err,'err')
|
||||||
|
}).finally(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.confirmLoading = false
|
||||||
|
}, 1000)
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
that.close()
|
that.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user