修改文档库的编辑
This commit is contained in:
@@ -299,6 +299,7 @@
|
|||||||
sumber() {
|
sumber() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.confirmLoading = true
|
||||||
let url = ''
|
let url = ''
|
||||||
if (this.formInline.id) {
|
if (this.formInline.id) {
|
||||||
url = this.url.updateInfo
|
url = this.url.updateInfo
|
||||||
@@ -313,10 +314,12 @@
|
|||||||
})
|
})
|
||||||
postAction(url, formInline).then((res) => {
|
postAction(url, formInline).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
this.confirmLoading = false
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchReset')
|
||||||
this.$emit('addFormClick')
|
this.$emit('addFormClick')
|
||||||
} else {
|
} else {
|
||||||
|
this.confirmLoading = false
|
||||||
if (res.message == '发布日期不能大于标准实施日期') {
|
if (res.message == '发布日期不能大于标准实施日期') {
|
||||||
this.$message.warning(this.$t('theRelease'))
|
this.$message.warning(this.$t('theRelease'))
|
||||||
} else {
|
} else {
|
||||||
@@ -445,7 +448,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
console.log(this.headerText)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user