|
@@ -2148,6 +2148,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
deleNode(data, node) {
|
|
|
+ let pid=data.primaryKeyId?data.primaryKeyId:data.pKeyId
|
|
|
this.$confirm(
|
|
|
"此操作将删除节点【" + data.title + "】, 是否继续?",
|
|
|
"提示",
|
|
@@ -2158,7 +2159,7 @@ export default {
|
|
|
}
|
|
|
)
|
|
|
.then(() => {
|
|
|
- removePrivateTreeNode(data.primaryKeyId).then(() => {
|
|
|
+ removePrivateTreeNode(pid).then(() => {
|
|
|
this.$refs.tree.remove(node);
|
|
|
this.$message({
|
|
|
type: "success",
|
|
@@ -2988,8 +2989,9 @@ export default {
|
|
|
//节点参数按钮
|
|
|
this.keymap();
|
|
|
//console.log(data)
|
|
|
- this.jiedianId = data.primaryKeyId;
|
|
|
- this.parameters(data.primaryKeyId);
|
|
|
+ let pid=data.primaryKeyId?data.primaryKeyId:data.pKeyId
|
|
|
+ this.jiedianId = pid;
|
|
|
+ this.parameters(pid);
|
|
|
this.nodeInfoVisible = true;
|
|
|
},
|
|
|
closenodeInfoVisible(){
|
|
@@ -3459,7 +3461,8 @@ export default {
|
|
|
message: "节点数据同步中...",
|
|
|
duration: 0,
|
|
|
});
|
|
|
- syncNodeTable(data.primaryKeyId)
|
|
|
+ let pid=data.primaryKeyId?data.primaryKeyId:data.pKeyId
|
|
|
+ syncNodeTable(pid)
|
|
|
.then(() => {
|
|
|
this.updateNodeTable();
|
|
|
this.$message({
|
|
@@ -3489,7 +3492,8 @@ export default {
|
|
|
message: "节点数据同步中...",
|
|
|
duration: 0,
|
|
|
});
|
|
|
- syncNodeinfo(data.primaryKeyId)
|
|
|
+ let pid=data.primaryKeyId?data.primaryKeyId:data.pKeyId
|
|
|
+ syncNodeinfo(pid)
|
|
|
.then(() => {
|
|
|
this.updateNodeTable();
|
|
|
this.$message({
|