From de4c3cf35ceab207100cce917d8893874e260ed9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 29 十月 2026 13:31:43 +0800
Subject: [PATCH] 修复用户管理部门树溢出

---
 src/views/system/user/index.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 83e43ff..1323794 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -5,10 +5,10 @@
 
 import { ref } from 'vue';
 
-import { confirm, Page, useVbenModal } from '../../../packages/effects/common-ui/src';
-import { DICT_TYPE } from '../../../packages/constants/src';
-import { getDictLabel } from '../../../packages/effects/hooks/src';
-import { downloadFileFromBlobPart, isEmpty } from '../../../packages/utils/src';
+import { confirm, Page, useVbenModal } from '@vben/common-ui';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictLabel } from '@vben/hooks';
+import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
 
 import { Card, message } from 'ant-design-vue';
 
@@ -194,13 +194,18 @@
     <AssignRoleModal @success="handleRefresh" />
     <ImportModal @success="handleRefresh" />
 
-    <div class="flex h-full w-full">
+    <div class="flex h-full min-h-0 w-full min-w-0">
       <!-- 宸︿晶閮ㄩ棬鏍� -->
-      <Card class="mr-4 h-full w-1/6">
-        <DeptTreeSelect @select="handleDeptSelect" />
+      <Card
+        class="mr-4 flex h-full min-h-0 w-64 shrink-0 flex-col overflow-hidden"
+        :body-style="{ minHeight: 0, overflow: 'hidden', padding: '16px' }"
+      >
+        <div class="min-h-0 flex-1 overflow-y-auto">
+          <DeptTreeSelect @select="handleDeptSelect" />
+        </div>
       </Card>
       <!-- 鍙充晶鐢ㄦ埛鍒楄〃 -->
-      <div class="w-5/6">
+      <div class="min-w-0 flex-1">
         <Grid table-title="鐢ㄦ埛鍒楄〃">
           <template #toolbar-tools>
             <TableAction

--
Gitblit v1.9.3