Browse Source

管理规范修改

duy 1 month ago
parent
commit
45e9caac57
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/codeRule/ruleManage.vue

+ 3 - 3
src/views/codeRule/ruleManage.vue

@@ -15,7 +15,7 @@
                         :default-expanded-keys="defaultExpandedKeys"
                         :current-node-key="curreenttid"
                         highlight-current
-                        node-key="id"
+                        node-key="primaryKeyId"
                         ref="tree"
                         ></el-tree>
                     </el-scrollbar>
@@ -614,7 +614,7 @@ import { getStore, setStore } from "@/util/store";
         this.getExpandedKeys(node);
         setStore({
           name: 'curreenttid',
-          content: data.id,
+          content: data.primaryKeyId,
           type: true, //sessionStorage
         });
           this.isShowList = true;
@@ -623,7 +623,7 @@ import { getStore, setStore } from "@/util/store";
      getExpandedKeys(node) {
       let expandedKeys = [];
       while (node.parent) {
-        expandedKeys.push(node.data.id);
+        expandedKeys.push(node.data.primaryKeyId);
         node = node.parent;
       }
       setStore({