From 001648a674d06cde67d404ef669085233bf560fe Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 29 十月 2026 13:47:23 +0800
Subject: [PATCH] 修复万通用户昵称搜索和部门树滚动

---
 src/views/system/user/index.vue |   18 ++++++++++++++----
 src/views/system/user/data.ts   |    9 +++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/views/system/user/data.ts b/src/views/system/user/data.ts
index 8506c40..94ebe04 100644
--- a/src/views/system/user/data.ts
+++ b/src/views/system/user/data.ts
@@ -270,6 +270,15 @@
       },
     },
     {
+      fieldName: 'nickname',
+      label: '鐢ㄦ埛鏄电О',
+      component: 'Input',
+      componentProps: {
+        placeholder: '璇疯緭鍏ョ敤鎴锋樀绉�',
+        allowClear: true,
+      },
+    },
+    {
       fieldName: 'mobile',
       label: '鎵嬫満鍙风爜',
       component: 'Input',
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 979b804..f4b465d 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -194,13 +194,23 @@
     <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="{
+          height: '100%',
+          minHeight: 0,
+          overflow: 'hidden',
+          padding: '16px',
+        }"
+      >
+        <div class="h-full min-h-0 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