修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-10 09:46:26 +08:00
parent 39cec7480e
commit 993b79b8c9
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -508,4 +508,5 @@ module.exports = {
labelNameCannotDuplicate:'Label name cannot be duplicate', labelNameCannotDuplicate:'Label name cannot be duplicate',
list:'list', list:'list',
paragraph:'paragraph', paragraph:'paragraph',
theRelease:'The release date should not exceed the standard implementation date'
} }
+1 -1
View File
@@ -512,5 +512,5 @@ module.exports = {
labelNameCannotDuplicate:'标签名称不能重复', labelNameCannotDuplicate:'标签名称不能重复',
list:'列表', list:'列表',
paragraph:'段落', paragraph:'段落',
theRelease:'发布日期不能大于标准实施日期'
} }
@@ -294,7 +294,7 @@
}, },
methods: { methods: {
disabledDate(current) { disabledDate(current) {
return current && current < moment().subtract(1,"day"); return current && current < moment().subtract(1, 'day')
}, },
sumber() { sumber() {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
@@ -317,7 +317,11 @@
eventBUs.$emit('searchReset') eventBUs.$emit('searchReset')
this.$emit('addFormClick') this.$emit('addFormClick')
} else { } else {
this.$message.warning(this.$t('operationFailed')) if (res.message == '发布日期不能大于标准实施日期') {
this.$message.warning(this.$t('theRelease'))
} else {
this.$message.warning(this.$t('operationFailed'))
}
} }
}) })
} else { } else {