修改禅道bug

This commit is contained in:
qq787203167
2022-07-05 17:23:56 +08:00
parent c517fbe1ea
commit c3b28cee61
2 changed files with 9 additions and 0 deletions
@@ -327,6 +327,7 @@
this.$emit('addFormClick') this.$emit('addFormClick')
} else { } else {
this.confirmLoading = false this.confirmLoading = false
this.$emit('addFormWarning')
if (res.message.indexOf('发布日期不能大于') >= 0) { if (res.message.indexOf('发布日期不能大于') >= 0) {
this.$message.warning(res.message) this.$message.warning(res.message)
} else if (res.message.indexOf('编号已存在') >= 0) { } else if (res.message.indexOf('编号已存在') >= 0) {
@@ -337,6 +338,7 @@
} }
}) })
} else { } else {
this.$emit('addFormWarning')
return false return false
} }
}) })
@@ -11,6 +11,7 @@
<addFormData <addFormData
ref="addFormDataRef" ref="addFormDataRef"
@addFormClick="addFormClick" @addFormClick="addFormClick"
@addFormWarning="addFormWarning"
:flag="'1'" :flag="'1'"
v-if="visible" v-if="visible"
:url="url" :url="url"
@@ -59,6 +60,7 @@
this.visible = false this.visible = false
}, },
add() { add() {
this.confirmLoading = false
this.title = this.$t('add') this.title = this.$t('add')
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@@ -66,6 +68,7 @@
}) })
}, },
edit(item) { edit(item) {
this.confirmLoading = false
this.title = this.$t('edit') this.title = this.$t('edit')
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@@ -73,8 +76,12 @@
}) })
}, },
handleSubmit() { handleSubmit() {
this.confirmLoading = true
this.$refs.addFormDataRef.sumber() this.$refs.addFormDataRef.sumber()
}, },
addFormWarning(){
this.confirmLoading = false
},
addFormClick() { addFormClick() {
this.visible = false this.visible = false
} }