duy 11 ヶ月 前
コミット
33424e60c1
1 ファイル変更7 行追加1 行削除
  1. 7 1
      src/views/manager/wbsinfo/edit.vue

+ 7 - 1
src/views/manager/wbsinfo/edit.vue

@@ -1981,6 +1981,7 @@ export default {
             parentId: res.data.data.id,
             parentName: data.title,
           };
+          console.log(this.nodeDetail, " this.nodeDetail");
         } else {
           this.nodeDetail = Object.assign({}, res.data.data);
           this.mixRatioTestIds = this.toSplit(res.data.data.mixRatioTestIds);
@@ -3197,7 +3198,12 @@ export default {
         });
         return;
       }
-      if (this.curTreeData.nodeType == 6 || this.curTreeData.isExistForm == 1) {
+      if (
+        this.curTreeData.nodeType == 6 ||
+        this.curTreeData.isExistForm == 1 ||
+        this.curTreeData.unitName ||
+        this.curTreeData.className
+      ) {
         this.$message({
           type: "warning",
           message: "该节点下无法新增节点",