@@ -212,8 +193,8 @@ const getList = async () => {
loading.value = true
try {
//首先获取用户信息
- const userProfile = await getUserProfile()
- queryParams.orgid = userProfile.dept.id
+ userProfile.value = await getUserProfile()
+ queryParams.orgid = userProfile.value.dept.id
const data = await PersonApi.getPersonPage(queryParams)
list.value = data.list
total.value = data.total
@@ -237,7 +218,7 @@ const resetQuery = () => {
/** 添加/修改操作 */
const formRef = ref()
const openForm = (type: string, id?: number) => {
- formRef.value?.open(type, id)
+ formRef.value?.open(type, id, userProfile.value)
}
const handleSuccess = () => {
diff --git a/src/views/system/dept/DeptForm.vue b/src/views/system/dept/DeptForm.vue
index 1e2a8e38c..e96bdc7ca 100644
--- a/src/views/system/dept/DeptForm.vue
+++ b/src/views/system/dept/DeptForm.vue
@@ -35,12 +35,12 @@
@change="handleAddressChange"
placeholder="请选择省/市/区"
clearable
- class="w-[450px]"
+ class="w-[500px]"
/>
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 72a8c1df0..ab98ea420 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -42,9 +42,6 @@
>
新增