Forráskód Böngészése

角色管理-分配功能回显问题

ms-blue 4 hete
szülő
commit
aa5d2f4c5a

+ 3 - 3
jshERP-web/src/views/system/modules/RoleFunctionModal.vue

@@ -171,10 +171,10 @@ export default {
     },
     setThisExpandedKeys(node) {
       if (node.checked == true) {
-        this.checkedKeys.push(Number(node.key))
+        this.checkedKeys.push(node.key)
       }
       if (node.children && node.children.length > 0) {
-        this.iExpandedKeys.push(Number(node.key))
+        this.iExpandedKeys.push(node.key)
         for (let a = 0; a < node.children.length; a++) {
           this.setThisExpandedKeys(node.children[a])
         }
@@ -182,7 +182,7 @@ export default {
     },
     getAllKeys(node) {
       // console.log('node',node);
-      this.allTreeKeys.push(Number(node.key))
+      this.allTreeKeys.push(node.key)
       if (node.children && node.children.length > 0) {
         for (let a = 0; a < node.children.length; a++) {
           this.getAllKeys(node.children[a])