From e2254651ca3e83f4343c5590b10635331fa801a0 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期三, 24 四月 2024 23:46:05 +0800
Subject: [PATCH] fix 修复 !pr107 遗留问题

---
 src/views/system/user/index.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 1e15998..e8e0c23 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -287,10 +287,11 @@
 import { UserForm, UserQuery, UserVO } from '@/api/system/user/types';
 import { DeptVO } from '@/api/system/dept/types';
 import { RoleVO } from '@/api/system/role/types';
-import { PostVO } from '@/api/system/post/types';
+import {PostQuery, PostVO} from '@/api/system/post/types';
 import { treeselect } from '@/api/system/dept';
 import { globalHeaders } from '@/utils/request';
 import { to } from 'await-to-js';
+import {optionselect} from "@/api/system/post";
 
 const router = useRouter();
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -645,6 +646,15 @@
     initPassword.value = response.data;
   });
 });
+
+// 鐩戞祴閮ㄩ棬鍙樺寲鍔犺浇宀椾綅
+watch(
+  () => form.value.deptId,
+  async () => {
+    const response = await optionselect(form.value.deptId);
+    postOptions.value = response.data;
+  }
+);
 </script>
 
 <style lang="scss" scoped></style>

--
Gitblit v1.9.3