Browse Source

禅道194

gangyj 3 năm trước cách đây
mục cha
commit
28a18ec1f1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/views/manager/projectinfo/detail.vue

+ 3 - 1
src/views/manager/projectinfo/detail.vue

@@ -907,9 +907,11 @@ export default {
     },
     async treeInit () {
       let refId = this.projectForm.referenceWbsTemplateId;
-      if (refId && refId > 0) {
+      //引用被删会出现 wbsType -1
+      if (refId && refId > 0 && Number(this.projectForm.wbsType) > 0) {
         //有引用id,回显
         //this.selected = true;
+
         this.templateType = this.projectForm.wbsType;
         await this.getTreeList();
         let priv = {};