修改禅道bug
This commit is contained in:
@@ -327,6 +327,7 @@
|
||||
this.$emit('addFormClick')
|
||||
} else {
|
||||
this.confirmLoading = false
|
||||
this.$emit('addFormWarning')
|
||||
if (res.message.indexOf('发布日期不能大于') >= 0) {
|
||||
this.$message.warning(res.message)
|
||||
} else if (res.message.indexOf('编号已存在') >= 0) {
|
||||
@@ -337,6 +338,7 @@
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$emit('addFormWarning')
|
||||
return false
|
||||
}
|
||||
})
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<addFormData
|
||||
ref="addFormDataRef"
|
||||
@addFormClick="addFormClick"
|
||||
@addFormWarning="addFormWarning"
|
||||
:flag="'1'"
|
||||
v-if="visible"
|
||||
:url="url"
|
||||
@@ -59,6 +60,7 @@
|
||||
this.visible = false
|
||||
},
|
||||
add() {
|
||||
this.confirmLoading = false
|
||||
this.title = this.$t('add')
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
@@ -66,6 +68,7 @@
|
||||
})
|
||||
},
|
||||
edit(item) {
|
||||
this.confirmLoading = false
|
||||
this.title = this.$t('edit')
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
@@ -73,8 +76,12 @@
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.confirmLoading = true
|
||||
this.$refs.addFormDataRef.sumber()
|
||||
},
|
||||
addFormWarning(){
|
||||
this.confirmLoading = false
|
||||
},
|
||||
addFormClick() {
|
||||
this.visible = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user