Explorar o código

相关参数修改

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
bf353cb9ea
Modificáronse 1 ficheiros con 9 adicións e 5 borrados
  1. 9 5
      src/views/manager/projectinfo/tree.vue

+ 9 - 5
src/views/manager/projectinfo/tree.vue

@@ -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({