From adb016e4492d927ed3eb9fc098294ffc81c06ae3 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 13 四月 2026 14:20:06 +0800
Subject: [PATCH] #页面优化
---
rsf-design/src/views/system/user/userPage.helpers.js | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/rsf-design/src/views/system/user/userPage.helpers.js b/rsf-design/src/views/system/user/userPage.helpers.js
index a2173a2..91cdbda 100644
--- a/rsf-design/src/views/system/user/userPage.helpers.js
+++ b/rsf-design/src/views/system/user/userPage.helpers.js
@@ -11,6 +11,7 @@
sex: void 0,
realName: '',
idCard: '',
+ memo: '',
condition: ''
}
}
@@ -31,6 +32,8 @@
email: '',
realName: '',
idCard: '',
+ birthday: '',
+ introduction: '',
memo: '',
status: 1
}
@@ -49,6 +52,7 @@
sex: params.sex,
realName: params.realName,
idCard: params.idCard,
+ memo: params.memo,
condition: params.condition
}
@@ -71,6 +75,13 @@
}
}
+export function getUserPaginationKey() {
+ return {
+ current: 'current',
+ size: 'pageSize'
+ }
+}
+
export function buildUserDialogModel(record = {}) {
const roleIds = normalizeRoleIds(record)
return {
@@ -87,6 +98,8 @@
email: record.email || '',
realName: record.realName || '',
idCard: record.idCard || '',
+ birthday: record.birthday || '',
+ introduction: record.introduction || '',
memo: record.memo || '',
status: record.status !== undefined && record.status !== null ? record.status : 1
}
@@ -128,6 +141,8 @@
email: form.email || '',
realName: form.realName || '',
idCard: form.idCard || '',
+ birthday: form.birthday || '',
+ introduction: form.introduction || '',
memo: form.memo || '',
status: form.status !== undefined && form.status !== null ? form.status : 1
}
@@ -164,9 +179,7 @@
return []
}
- return tree
- .map((node) => normalizeDeptTreeNode(node))
- .filter(Boolean)
+ return tree.map((node) => normalizeDeptTreeNode(node)).filter(Boolean)
}
export function normalizeRoleOptions(roles = []) {
@@ -247,11 +260,7 @@
: []
return Array.from(
- new Set(
- directRoleIds
- .map((item) => normalizeRoleId(item))
- .filter((item) => item !== void 0)
- )
+ new Set(directRoleIds.map((item) => normalizeRoleId(item)).filter((item) => item !== void 0))
)
}
--
Gitblit v1.9.1