[update 89156] 标准比对,两侧都要选择条款才能保存

This commit is contained in:
danshihao
2024-08-21 15:07:40 +08:00
parent 8d7009e787
commit 206a224867
@@ -200,7 +200,7 @@ export default {
methods: { methods: {
// 文档对比的一致按钮点击 // 文档对比的一致按钮点击
consistentAssessmentClick () { consistentAssessmentClick () {
if (!this.dataLeft.id && !this.dataRight.id) { if (!this.dataLeft.id || !this.dataRight.id) {
this.$message.warning(this.$t('docTool.comparison.pleaseSelectTheDataCompared')) this.$message.warning(this.$t('docTool.comparison.pleaseSelectTheDataCompared'))
return return
} }
@@ -244,7 +244,7 @@ export default {
}, },
// 文档对比的保存按钮点击 // 文档对比的保存按钮点击
submit () { submit () {
if (!this.dataLeft.id && !this.dataRight.id) { if (!this.dataLeft.id || !this.dataRight.id) {
this.$message.warning(this.$t('docTool.comparison.pleaseSelectTheDataCompared')) this.$message.warning(this.$t('docTool.comparison.pleaseSelectTheDataCompared'))
return return
} }