Jelajahi Sumber

权限配置改为全加载

duy 2 tahun lalu
induk
melakukan
f8e0639db5
1 mengubah file dengan 60 tambahan dan 4 penghapusan
  1. 60 4
      src/views/system/organization.vue

+ 60 - 4
src/views/system/organization.vue

@@ -107,8 +107,7 @@
                   @close="authorityModalClose" widths="60rem">
             <el-tree
                 :props="props"
-                :load="loadNode"
-                lazy
+                :data="autoritydata"
                 show-checkbox
                 @check-change="handleCheckChange"
             />
@@ -180,9 +179,66 @@ const authorityModalClose = () => {
     authorityModal.value = false
 }
 const props = {
-    label: 'name',
-    children: 'zones',
+    label: 'label',
+    children: 'children',
 }
+const autoritydata=ref([
+{
+    label: '项目管理',
+    children: [
+      {
+        label: '新增',
+        children: [
+          {
+            label: 'Level three 1-1-1',
+          },
+        ],
+      },
+    ],
+  },
+  {
+    label: '系统配置',
+    children: [
+      {
+        label: 'Level two 2-1',
+        children: [
+          {
+            label: 'Level three 2-1-1',
+          },
+        ],
+      },
+      {
+        label: 'Level two 2-2',
+        children: [
+          {
+            label: 'Level three 2-2-1',
+          },
+        ],
+      },
+    ],
+  },
+  {
+    label: '表单管理',
+    children: [
+      {
+        label: 'Level two 3-1',
+        children: [
+          {
+            label: 'Level three 3-1-1',
+          },
+        ],
+      },
+      {
+        label: 'Level two 3-2',
+        children: [
+          {
+            label: 'Level three 3-2-1',
+          },
+        ],
+      },
+    ],
+  },
+])
 const goback = () => {
     isedit.value = false
 }