|
@@ -2662,20 +2662,21 @@ export default {
|
|
|
},
|
|
|
async nodeInfoSave () {//节点参数弹框保存按钮
|
|
|
if (this.nodeInfoTable) {
|
|
|
- if(this.nodeInfoTable.length == 0){
|
|
|
- await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,type:1,delIds:this.delids,wps:[
|
|
|
- {
|
|
|
- nodeId: this.jiedianId,
|
|
|
- type: -1,
|
|
|
- },
|
|
|
- ]})
|
|
|
- this.nodeInfoVisible = false
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "保存参数节点成功!"
|
|
|
- })
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if(this.nodeInfoTable.length == 0){
|
|
|
+ // await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,type:1,delIds:this.delids,wps:[
|
|
|
+ // {
|
|
|
+ // nodeId: this.jiedianId,
|
|
|
+ // type: -1,
|
|
|
+ // },
|
|
|
+ // ]})
|
|
|
+ // this.delIds=[];
|
|
|
+ // this.nodeInfoVisible = false
|
|
|
+ // this.$message({
|
|
|
+ // type: "success",
|
|
|
+ // message: "保存参数节点成功!"
|
|
|
+ // })
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
let tag = true
|
|
|
this.nodeInfoTable.forEach(val => {
|
|
@@ -2695,7 +2696,8 @@ export default {
|
|
|
})
|
|
|
if (tag) {
|
|
|
await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.nodeInfoTable,type:1,delIds:this.delids})
|
|
|
- this.nodeInfoVisible = false
|
|
|
+ this.nodeInfoVisible = false;
|
|
|
+ this.delIds=[]
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "设置参数节点成功!"
|
|
@@ -2723,7 +2725,8 @@ export default {
|
|
|
})
|
|
|
if (tag) {
|
|
|
await this.saveOrUpdateBatch({projectId:this.projectid,nodeId:this.jiedianId,wps:this.namelists,type:0,delIds:this.delids}) //保存设置参数
|
|
|
- this.infoNameVisible = false
|
|
|
+ this.infoNameVisible = false;
|
|
|
+ this.delIds=[];
|
|
|
this.keymap()
|
|
|
} else {
|
|
|
this.$message({
|
|
@@ -2751,6 +2754,7 @@ export default {
|
|
|
},
|
|
|
async saveOrUpdateBatch (da) {//保存
|
|
|
const { data: res } = await saveOrUpdateBatch(da)
|
|
|
+ this.delids=[];
|
|
|
//console.log(res);
|
|
|
},
|
|
|
async keymap () {//节点参数枚举
|