提交 ad207d44 编写于 作者: alex.zhang's avatar alex.zhang

项目标签设置不可为空

上级 d429d16f
...@@ -497,6 +497,20 @@ export default { ...@@ -497,6 +497,20 @@ export default {
this.tag04, this.tag04,
this.tag05, this.tag05,
]; ];
let checkTagValid = false;
for(let item = 0; item < this.labelList.length; item++) {
if (this.labelList[item] != null && this.labelList[item] != "") {
checkTagValid = true;
break;
}
}
console.log("setTagSave() : checkTagValid = " + checkTagValid);
if (!checkTagValid) {
this.$message.error("项目标签设置不可为空");
return;
}
let req = { let req = {
codes: this.labelList, codes: this.labelList,
projectMainId: this.labelProjectMainId, projectMainId: this.labelProjectMainId,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册