diff --git a/src/views/settings/section.vue b/src/views/settings/section.vue
index acb2e35..f274cb6 100644
--- a/src/views/settings/section.vue
+++ b/src/views/settings/section.vue
@@ -12,8 +12,8 @@
-
-
+
@@ -70,7 +70,6 @@ import Mask from '@/components/common/Mask.vue'
import SectionEdit from "@/components/settings/SectionEdit.vue";
import {post} from "@/utils/request.ts";
import deptsObj from '@/assets/config/directory/depts.json'
-
import {formatDate} from '@/utils/dateUtils.ts'
import {Plus} from "@element-plus/icons-vue";
@@ -111,7 +110,20 @@ const pageSize = ref(20);
const page = ref(1);
const total = ref(0);
const search = ref({})
-
+const options = Object.entries(deptsObj).map(([key, value]) => {
+ if (typeof value === 'string') {
+ return {value: key, label: value};
+ } else {
+ return {
+ value: key,
+ label: value.name,
+ children: Object.entries(value.children).map(([childKey, childValue]) => ({
+ value: childKey,
+ label: childValue,
+ })),
+ };
+ }
+});
const resetSearch = () => {
search.value = {}
init()