|
@@ -2644,7 +2644,7 @@ export default {
|
|
|
this.nodeInfoVisible = true;
|
|
|
},
|
|
|
addNodeInfoTable () {//添加节点参数数据
|
|
|
- this.nodeInfoTable.unshift({ k: '', v: '', remark: '', wbsId: this.jiedianId,type: 1 })
|
|
|
+ this.nodeInfoTable.unshift({ k: '', v: '', remark: '', nodeId: this.jiedianId,type: 1 })
|
|
|
},
|
|
|
delNodeInfo (key) {//设置参数名称中的删除按钮
|
|
|
this.namelists.splice(key, 1)
|
|
@@ -2663,10 +2663,12 @@ export default {
|
|
|
async nodeInfoSave () {//节点参数弹框保存按钮
|
|
|
if (this.nodeInfoTable) {
|
|
|
if(this.nodeInfoTable.length == 0){
|
|
|
- await this.saveOrUpdateBatch([{
|
|
|
- "wbsId": this.jiedianId,
|
|
|
- "type": -1,
|
|
|
- }])
|
|
|
+ await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:[
|
|
|
+ {
|
|
|
+ nodeId: this.jiedianId,
|
|
|
+ type: -1,
|
|
|
+ },
|
|
|
+ ]})
|
|
|
this.nodeInfoVisible = false
|
|
|
this.$message({
|
|
|
type: "success",
|
|
@@ -2692,7 +2694,7 @@ export default {
|
|
|
|
|
|
})
|
|
|
if (tag) {
|
|
|
- await this.saveOrUpdateBatch(this.nodeInfoTable)
|
|
|
+ await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable})
|
|
|
this.nodeInfoVisible = false
|
|
|
this.$message({
|
|
|
type: "success",
|
|
@@ -2720,7 +2722,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
if (tag) {
|
|
|
- await this.saveOrUpdateBatch(this.namelists) //保存设置参数
|
|
|
+ await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists}) //保存设置参数
|
|
|
this.infoNameVisible = false
|
|
|
this.keymap()
|
|
|
} else {
|