yangyj 2 rokov pred
rodič
commit
9e9e5b999c

+ 6 - 7
src/views/manager/projectinfo/tree.vue

@@ -2287,7 +2287,7 @@ export default {
             this.fileUrl = "";
           }
         });
-      }
+      }curTreeData
     },
 
     importTemplateHandle() {
@@ -2822,7 +2822,7 @@ export default {
           }
         });
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1,delIds:this.delids});
+          await this.saveOrUpdateBatch({scopeType:10,projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1,delIds:this.delids});
           this.nodeInfoVisible = false;
           this.delIds=[];
           this.$message({
@@ -2852,7 +2852,7 @@ export default {
           }
         });
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0,delIds:this.delids}); //保存设置参数
+          await this.saveOrUpdateBatch({scopeType:10,projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0,delIds:this.delids}); //保存设置参数
           this.infoNameVisible = false;
           this.delIds=[];
           this.keymap();
@@ -3213,7 +3213,7 @@ export default {
     linkEle(row){
       this.linkEleVisible = true;
       this.curParam = row;
-      getParamElements({nodeId:this.jiedianId,paramId:row.id}).then((res) => {
+      getParamElements({nodeId:this.curTreeData.id,projectId:this.projectid,paramId:row.id,scopeType:10}).then((res) => {
         if (res.data.data.length) {
           this.linkEleTableList = res.data.data;
         } else {
@@ -3235,7 +3235,6 @@ export default {
         this.linkEleListAll = [].concat(this.linkEleList);
       })
     },
-
     //删除关联
     delLink(data){
       this.$confirm('删除关联, 是否继续?', '提示', {
@@ -3250,7 +3249,7 @@ export default {
             message: "删除成功!"
           });
 
-          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id}).then((res) => {
+          getParamElements({nodeId:this.curTreeData.id,projectId:this.projectid,paramId:this.curParam.id,scopeType:10}).then((res) => {
            if (res.data.data.length) {
               this.linkEleTableList = res.data.data;
               } else {
@@ -3291,7 +3290,7 @@ export default {
         })
         specifiedParamElements(target).then(data=>{
           this.linkCheckVisible = false;  
-          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id}).then((res) => {
+          getParamElements({nodeId:this.curTreeData.id,projectId:this.projectid,paramId:this.curParam.id,scopeType:10}).then((res) => {
            if (res.data.data.length) {
               this.linkEleTableList = res.data.data;
               } else {

+ 5 - 5
src/views/manager/wbsinfo/edit.vue

@@ -2695,7 +2695,7 @@ export default {
 
         })
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1,delIds:this.delids})
+          await this.saveOrUpdateBatch({scopeType:1,projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1,delIds:this.delids})
           this.nodeInfoVisible = false;
           this.delIds=[]
           this.$message({
@@ -2724,7 +2724,7 @@ export default {
           }
         })
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0,delIds:this.delids}) //保存设置参数
+          await this.saveOrUpdateBatch({scopeType:1,projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0,delIds:this.delids}) //保存设置参数
           this.infoNameVisible = false;
           this.delIds=[];
           this.keymap()
@@ -2904,7 +2904,7 @@ export default {
     linkEle(row){
       this.linkEleVisible = true;
       this.curParam = row;
-      getParamElements({nodeId:this.jiedianId,paramId:row.id}).then((res) => {
+      getParamElements({nodeId:this.jiedianId,paramId:row.id,scopeType:1}).then((res) => {
         if (res.data.data.length) {
           this.linkEleTableList = res.data.data;
         } else {
@@ -2932,7 +2932,7 @@ export default {
             message: "删除成功!"
           });
 
-          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id}).then((res) => {
+          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id,scopeType:1}).then((res) => {
            if (res.data.data.length) {
               this.linkEleTableList = res.data.data;
               } else {
@@ -2980,7 +2980,7 @@ export default {
         })
         specifiedParamElements(target).then(data=>{
           this.linkCheckVisible = false;  
-          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id}).then((res) => {
+          getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id,scopeType:1}).then((res) => {
            if (res.data.data.length) {
               this.linkEleTableList = res.data.data;
               } else {