From caddfd7efaabf86eb2348ae33d9b7a2281a2b167 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 十月 2026 21:04:56 +0800
Subject: [PATCH] fix(user): 导入失败明细改用弹窗展示,用户页字段统一叫「用户账号」

---
 src/views/system/user/data.ts |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/views/system/user/data.ts b/src/views/system/user/data.ts
index 37f9c57..d857770 100644
--- a/src/views/system/user/data.ts
+++ b/src/views/system/user/data.ts
@@ -2,10 +2,10 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { SystemUserApi } from '#/api/system/user';
 
-import { CommonStatusEnum, DICT_TYPE } from '..\..\..\packages\constants\src';
-import { getDictOptions } from '..\..\..\packages\effects\hooks\src';
-import { $t } from '..\..\..\packages\locales\src';
-import { handleTree } from '..\..\..\packages\utils\src';
+import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+import { $t } from '@vben/locales';
+import { handleTree } from '@vben/utils';
 
 import { z } from '#/adapter/form';
 import { getDeptList } from '#/api/system/dept';
@@ -26,10 +26,10 @@
     },
     {
       fieldName: 'username',
-      label: '鐢ㄦ埛鍚嶇О',
+      label: '鐢ㄦ埛璐﹀彿',
       component: 'Input',
       componentProps: {
-        placeholder: '璇疯緭鍏ョ敤鎴峰悕绉�',
+        placeholder: '璇疯緭鍏ョ敤鎴疯处鍙凤紙4-30 浣嶆暟瀛椼�佸瓧姣嶏級',
       },
       rules: 'required',
     },
@@ -72,6 +72,7 @@
       fieldName: 'postIds',
       label: '宀椾綅',
       component: 'ApiSelect',
+      rules: 'required',
       componentProps: {
         api: getSimplePostList,
         labelField: 'name',
@@ -203,7 +204,7 @@
     },
     {
       fieldName: 'username',
-      label: '鐢ㄦ埛鍚嶇О',
+      label: '鐢ㄦ埛璐﹀彿',
       component: 'Input',
       componentProps: {
         disabled: true,
@@ -240,7 +241,7 @@
       label: '鐢ㄦ埛鏁版嵁',
       component: 'Upload',
       rules: 'required',
-      help: '浠呭厑璁稿鍏� xls銆亁lsx 鏍煎紡鏂囦欢',
+      help: '浠呭厑璁稿鍏� xls銆亁lsx 鏍煎紡鏂囦欢锛涜鍏堜笅杞藉鍏ユā鏉匡紝鎸夋ā鏉垮垪锛堢敤鎴疯处鍙枫�佺敤鎴锋樀绉般�侀儴闂ㄣ�佸矖浣嶇瓑锛夊~鍐�',
     },
     {
       fieldName: 'updateSupport',
@@ -251,7 +252,7 @@
         unCheckedChildren: '鍚�',
       },
       rules: z.boolean().default(false),
-      help: '鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�',
+      help: '鍕鹃�夊悗锛岀敤鎴疯处鍙峰凡瀛樺湪鐨勮浼氭洿鏂拌鐢ㄦ埛淇℃伅锛堜笉浼氫慨鏀瑰叾瀵嗙爜锛�',
     },
   ];
 }
@@ -261,10 +262,10 @@
   return [
     {
       fieldName: 'username',
-      label: '鐢ㄦ埛鍚嶇О',
+      label: '鐢ㄦ埛璐﹀彿',
       component: 'Input',
       componentProps: {
-        placeholder: '璇疯緭鍏ョ敤鎴峰悕绉�',
+        placeholder: '璇疯緭鍏ョ敤鎴疯处鍙�',
         allowClear: true,
       },
     },
@@ -305,7 +306,7 @@
     },
     {
       field: 'username',
-      title: '鐢ㄦ埛鍚嶇О',
+      title: '鐢ㄦ埛璐﹀彿',
       minWidth: 120,
     },
     {
@@ -341,7 +342,7 @@
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
       minWidth: 180,
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
     },
     {
       title: '鎿嶄綔',

--
Gitblit v1.9.3