Browse Source

分配wbs修改

duy 2 years ago
parent
commit
238e383848
1 changed files with 11 additions and 7 deletions
  1. 11 7
      src/views/manager/contractinfo/detail.vue

+ 11 - 7
src/views/manager/contractinfo/detail.vue

@@ -1372,13 +1372,17 @@ export default {
     },
     getRightTree() {
       console.log(this.wbsId, this.projectInfo.id, this.contractForm.id);
-      this.rightloading = true;
-      getContractInfoTree(this.wbsId, this.projectInfo.id, this.contractForm.id).then((res) => {
-        if (Array.isArray(res.data.data)) {
-          this.$refs.treetotree.setRightTree(res.data.data);
-        }
-        this.rightloading = false;
-      })
+    
+      if(this.wbsId){
+        this.rightloading = true;
+        getContractInfoTree(this.wbsId, this.projectInfo.id, this.contractForm.id).then((res) => {
+          if (Array.isArray(res.data.data)) {
+            this.$refs.treetotree.setRightTree(res.data.data);
+          }
+          this.rightloading = false;
+        })
+      }
+ 
     },
     saveWbsTree() {
       let obj = {};