Commit e384f4e7 by zhangzhijie

修复单位字典bug,添加标注时必选的校验

parent ddcccb91
......@@ -1082,14 +1082,13 @@ export default {
window.open(this.xcbhUrl, "_blank");
},
submitBz() {
if (
(this.parentLb.parentId == null || this.parentLb.parentId == "") &&
(this.parentLb.id == null || this.parentLb.id == "") &&
(this.parentLb.childId == null || this.parentLb.childId == "")
) {
this.$message.error(
"未找到有效的标注数据,请选择案件类别后再进行标注保存"
);
if ((this.parentLb.id == null || this.parentLb.id == "") && this.laData.length > 0) {
this.$message.error("请标注小案类别后再完成标注");
return;
}
if ((this.parentLb.childId == null || this.parentLb.childId == "") && this.xaData.length > 0) {
this.$message.error("请标注细案类别后再完成标注");
return;
}
this.$confirm("此操作将进行案件标注, 是否继续?", "提示", {
......
......@@ -1082,14 +1082,13 @@ export default {
window.open(this.xcbhUrl, "_blank");
},
submitBz() {
if (
(this.parentLb.parentId == null || this.parentLb.parentId == "") &&
(this.parentLb.id == null || this.parentLb.id == "") &&
(this.parentLb.childId == null || this.parentLb.childId == "")
) {
this.$message.error(
"未找到有效的标注数据,请选择案件类别后再进行标注保存"
);
if ((this.parentLb.id == null || this.parentLb.id == "") && this.laData.length > 0) {
this.$message.error("请标注小案类别后再完成标注");
return;
}
if ((this.parentLb.childId == null || this.parentLb.childId == "") && this.xaData.length > 0) {
this.$message.error("请标注细案类别后再完成标注");
return;
}
this.$confirm("此操作将进行案件标注, 是否继续?", "提示", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment