Ver código fonte

wbs私有树

gangyj 3 anos atrás
pai
commit
4e05ac2ef7
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      src/views/manager/projectinfo/tree.vue

+ 4 - 3
src/views/manager/projectinfo/tree.vue

@@ -1385,7 +1385,7 @@ export default {
       }
       this.curTreeData = data;
       this.curTreeData.parentName = parentName;
-      getDetail(data.id).then((res) => {
+      getDetail(data.id,this.id,this.projectid).then((res) => {
         res.data.data.parentName = parentName;
         this.tableData = [res.data.data];
         this.nodeDetail = Object.assign({}, res.data.data);
@@ -1444,7 +1444,7 @@ export default {
         this.editType = type;
       }
 
-      getDetail(data.id).then((res) => {
+      getDetail(data.id,this.id,this.projectid).then((res) => {
         let parentName = '';
         if (node.parent.data) {
           parentName = node.parent.data.title;
@@ -1454,7 +1454,8 @@ export default {
         if (type == 1) {
           this.nodeDetail = {
             parentId: res.data.data.id,
-            parentName: parentName
+            parentName: parentName,
+            projectId:res.data.data.projectId
           };
         } else {
           this.nodeDetail = Object.assign({}, res.data.data);