Explorar el Código

feat(角色授权): 恢复

qihao hace 2 años
padre
commit
c87cd8e10e
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      src/views/system/role/components/role-auth.vue

+ 10 - 1
src/views/system/role/components/role-auth.vue

@@ -12,6 +12,15 @@
       wrap-style="overflow-x: hidden;"
     >
       <el-tree
+        ref="tree"
+        show-checkbox
+        :data="authData"
+        node-key="id"
+        :default-expand-all="true"
+        :props="{ label: 'name' }"
+        :default-checked-keys="checkedKeys"
+      >
+<!--  <el-tree
         ref="tree"
         show-checkbox
         check-strictly
@@ -21,7 +30,7 @@
         :props="{ label: 'name' }"
         :default-checked-keys="checkedKeys"
         @check="handleCheck"
-      >
+      >-->
         <!-- <template v-slot="{ data }">
           <span>
             <i :class="data.icon"></i>