From 3fdcf1d5e6468c735532e67bde5ff1cdf85bb0c6 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 30 三月 2026 09:14:16 +0800
Subject: [PATCH] refactor: simplify role page and fix pagination keys
---
rsf-design/src/views/system/role/rolePage.helpers.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/rsf-design/src/views/system/role/rolePage.helpers.js b/rsf-design/src/views/system/role/rolePage.helpers.js
index 77b7b81..d01d937 100644
--- a/rsf-design/src/views/system/role/rolePage.helpers.js
+++ b/rsf-design/src/views/system/role/rolePage.helpers.js
@@ -41,6 +41,13 @@
}
}
+export function getRolePaginationKey() {
+ return {
+ current: 'current',
+ size: 'pageSize'
+ }
+}
+
const ROLE_REPORT_COLUMNS = [
{ source: 'name', label: '瑙掕壊鍚嶇О' },
{ source: 'code', label: '瑙掕壊缂栫爜' },
@@ -278,7 +285,7 @@
}
}
-function normalizeScopeKeys(keys = []) {
+export function normalizeScopeKeys(keys = []) {
if (!Array.isArray(keys)) {
return []
}
@@ -292,7 +299,7 @@
)
}
-function normalizeScopeKey(value) {
+export function normalizeScopeKey(value) {
const normalized = normalizeRoleId(value)
return normalized === void 0 ? '' : String(normalized)
}
--
Gitblit v1.9.1