|
@@ -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
|
|
|
}
|