|
@@ -1,8 +1,8 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { useColumns } from "./columns";
|
|
import { useColumns } from "./columns";
|
|
-import { handleTree } from "@pureadmin/utils";
|
|
|
|
import { getDeptList } from "/@/api/system";
|
|
import { getDeptList } from "/@/api/system";
|
|
import { FormInstance } from "element-plus";
|
|
import { FormInstance } from "element-plus";
|
|
|
|
+import { handleTree } from "@pureadmin/utils";
|
|
import { reactive, ref, onMounted } from "vue";
|
|
import { reactive, ref, onMounted } from "vue";
|
|
import { TableProBar } from "/@/components/ReTable";
|
|
import { TableProBar } from "/@/components/ReTable";
|
|
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
|
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
|
@@ -37,7 +37,7 @@ function handleSelectionChange(val) {
|
|
async function onSearch() {
|
|
async function onSearch() {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
let { data } = await getDeptList();
|
|
let { data } = await getDeptList();
|
|
- dataList.value = handleTree(data);
|
|
|
|
|
|
+ dataList.value = handleTree(data as any);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
}, 500);
|
|
}, 500);
|