Commit 8a097b795467355842873ec4176b4087e0aed674

Authored by fengtao
1 parent 87f066b7

fix:修复之前修改组织列表显隐控制台报警告问题

1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/4 xl:w-1/5"
6   - @select="handleSelect"
7   - style="position: relative"
8   - ref="organizationIdTreeRef"
9   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
10 5 <BasicTable
11 6 style="flex: auto"
12 7 @register="registerTable"
... ...
1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/4 xl:w-1/5"
6   - @select="handleSelect"
7   - ref="organizationIdTreeRef"
8   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
9 5 <BasicTable
10 6 style="flex: auto"
11 7 @register="registerTable"
... ...
1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/4 xl:w-1/5"
6   - @select="handleSelect"
7   - ref="organizationIdTreeRef"
8   - style="position: relative"
9   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
10 5 <BasicTable
11 6 style="flex: auto"
12 7 :clickToRowSelect="false"
... ...
... ... @@ -11,6 +11,7 @@
11 11 :replaceFields="{ key: 'id', title: 'name' }"
12 12 :selectedKeys="selectedKeys"
13 13 @select="handleSelect"
  14 + v-bind="$attrs"
14 15 />
15 16 </div>
16 17 </template>
... ... @@ -18,6 +19,7 @@
18 19 import { onMounted, ref } from 'vue';
19 20 import { BasicTree, TreeItem } from '/@/components/Tree';
20 21 import { getOrganizationList } from '/@/api/system/system';
  22 +
21 23 const emit = defineEmits(['select']);
22 24 const treeData = ref<TreeItem[]>([]);
23 25 const selectedKeys = ref<string[]>();
... ...
1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/4 xl:w-1/5"
6   - @select="handleSelect"
7   - ref="organizationIdTreeRef"
8   - style="position: relative"
9   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
10 5 <BasicTable
11 6 style="flex: auto"
12 7 :clickToRowSelect="false"
... ...
1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/6 xl:w-1/5"
6   - @select="handleSelect"
7   - ref="organizationIdTreeRef"
8   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
9 5 <BasicTable style="flex: auto" @register="registerTable" class="w-5/6 xl:w-4/5">
10 6 <template #toolbar>
11 7 <Authority value="api:yt:device:post">
... ...
1 1 <template>
2 2 <div>
3 3 <PageWrapper dense contentFullHeight contentClass="flex">
4   - <OrganizationIdTree
5   - class="w-1/4 xl:w-1/5"
6   - @select="handleSelect"
7   - ref="organizationIdTreeRef"
8   - />
  4 + <OrganizationIdTree @select="handleSelect" ref="organizationIdTreeRef" />
9 5 <BasicTable
10 6 style="flex: auto"
11 7 :clickToRowSelect="false"
... ...