Browse Source

后管试验功能

iZaiZaiA 2 years ago
parent
commit
bfa2f10a29
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/manager/projectinfo/tree.vue

+ 5 - 2
src/views/manager/projectinfo/tree.vue

@@ -1756,7 +1756,7 @@ export default {
       const {wbsid, pid, type} = this.$route.query;
       this.id = wbsid
       this.projectid = pid
-      this.wbsType = Number(type)
+      this.wbsType = type ? Number(type) : 1
 
       this.getNodeTypelist();
       this.getTableTypelist();
@@ -1770,7 +1770,10 @@ export default {
       if (node.level != 0) {
         pid = node.data.id
       }
-      getLazytree(this.id, pid, this.userInfo.tenant_id, this.projectid).then((res) => {
+      const type = this.wbsType
+      getLazytree(this.id, pid, this.userInfo.tenant_id, this.projectid, {
+        wbsType: type
+      }).then((res) => {
         let arr = [];
         if (Array.isArray(res.data.data)) {
           arr = res.data.data;