Browse Source

节点参数

yangyj 2 năm trước cách đây
mục cha
commit
f688f41731

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

@@ -2663,7 +2663,7 @@ export default {
       //节点参数弹框保存按钮
       if (this.nodeInfoTable) {
         if (this.nodeInfoTable.length == 0) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:[
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,type:1,wps:[
             {
               nodeId: this.jiedianId,
               type: -1,
@@ -2693,7 +2693,7 @@ export default {
           }
         });
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable});
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1});
           this.nodeInfoVisible = false;
           this.$message({
             type: "success",
@@ -2722,7 +2722,7 @@ export default {
           }
         });
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists}); //保存设置参数
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0}); //保存设置参数
           this.infoNameVisible = false;
           this.keymap();
         } else {

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

@@ -2661,7 +2661,7 @@ export default {
     async nodeInfoSave () {//节点参数弹框保存按钮
       if (this.nodeInfoTable) {
         if(this.nodeInfoTable.length == 0){
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:[
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,type:1,wps:[
             {
               nodeId: this.jiedianId,
               type: -1,
@@ -2692,7 +2692,7 @@ export default {
 
         })
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable})
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1})
           this.nodeInfoVisible = false
           this.$message({
             type: "success",
@@ -2720,7 +2720,7 @@ export default {
           }
         })
         if (tag) {
-          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists}) //保存设置参数
+          await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0}) //保存设置参数
           this.infoNameVisible = false
           this.keymap()
         } else {