From 6877c9caa25162e570a3e2a99a5b2ce3ef88368b Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 13 四月 2026 13:48:37 +0800
Subject: [PATCH] #页面优化
---
rsf-design/src/api/system-manage.js | 71 ++++++++++++++++++++++++++++++++++-
1 files changed, 68 insertions(+), 3 deletions(-)
diff --git a/rsf-design/src/api/system-manage.js b/rsf-design/src/api/system-manage.js
index 2e62426..44abc64 100644
--- a/rsf-design/src/api/system-manage.js
+++ b/rsf-design/src/api/system-manage.js
@@ -9,7 +9,14 @@
...(params.phone !== undefined ? { phone: params.phone } : {}),
...(params.email !== undefined ? { email: params.email } : {}),
...(params.status !== undefined ? { status: params.status } : {}),
- ...(params.deptId !== undefined ? { deptId: params.deptId } : {})
+ ...(params.deptId !== undefined ? { deptId: params.deptId } : {}),
+ ...(params.code !== undefined ? { code: params.code } : {}),
+ ...(params.sex !== undefined ? { sex: params.sex } : {}),
+ ...(params.realName !== undefined ? { realName: params.realName } : {}),
+ ...(params.idCard !== undefined ? { idCard: params.idCard } : {}),
+ ...(params.memo !== undefined ? { memo: params.memo } : {}),
+ ...(params.condition !== undefined ? { condition: params.condition } : {}),
+ ...(params.roleIds !== undefined ? { roleIds: params.roleIds } : {})
}
}
@@ -92,7 +99,8 @@
...(params.status !== undefined ? { status: params.status } : {}),
...(params.timeStart !== undefined ? { timeStart: params.timeStart } : {}),
...(params.timeEnd !== undefined ? { timeEnd: params.timeEnd } : {}),
- ...(params.memo !== undefined ? { memo: params.memo } : {})
+ ...(params.memo !== undefined ? { memo: params.memo } : {}),
+ ...(params.orderBy !== undefined ? { orderBy: params.orderBy } : {})
}
}
@@ -108,7 +116,8 @@
...(params.sort !== undefined ? { sort: params.sort } : {}),
...(params.group !== undefined ? { group: params.group } : {}),
...(params.status !== undefined ? { status: params.status } : {}),
- ...(params.memo !== undefined ? { memo: params.memo } : {})
+ ...(params.memo !== undefined ? { memo: params.memo } : {}),
+ ...(params.orderBy !== undefined ? { orderBy: params.orderBy } : {})
}
}
@@ -208,6 +217,17 @@
return request.get({ url: `/user/${id}` })
}
+async function fetchExportUserReport(payload = {}, options = {}) {
+ return fetch(`${import.meta.env.VITE_API_URL}/user/export`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ ...(options.headers || {})
+ },
+ body: JSON.stringify(payload)
+ })
+}
+
function fetchGetRoleList(params) {
return request.post({ url: '/role/page', params: buildRoleListParams(params) })
}
@@ -239,16 +259,54 @@
return request.get({ url: `/dictType/${id}` })
}
+function fetchGetDictDataDetail(id) {
+ return request.get({ url: `/dictData/${id}` })
+}
+
function fetchSaveDictType(params) {
return request.post({ url: '/dictType/save', params })
+}
+
+function fetchSaveDictData(params) {
+ return request.post({ url: '/dictData/save', params })
}
function fetchUpdateDictType(params) {
return request.post({ url: '/dictType/update', params })
}
+function fetchUpdateDictData(params) {
+ return request.post({ url: '/dictData/update', params })
+}
+
function fetchDeleteDictType(id) {
return request.post({ url: `/dictType/remove/${id}` })
+}
+
+function fetchDeleteDictData(id) {
+ return request.post({ url: `/dictData/remove/${id}` })
+}
+
+async function fetchExportDictTypeReport(payload = {}, options = {}) {
+ return fetch(`${import.meta.env.VITE_API_URL}/dictType/export`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ ...(options.headers || {})
+ },
+ body: JSON.stringify(payload)
+ })
+}
+
+async function fetchExportDictDataReport(payload = {}, options = {}) {
+ return fetch(`${import.meta.env.VITE_API_URL}/dictData/export`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ ...(options.headers || {})
+ },
+ body: JSON.stringify(payload)
+ })
}
function fetchWaveRulePage(params = {}) {
@@ -880,6 +938,7 @@
fetchResetUserPassword,
fetchUpdateUserStatus,
fetchGetUserDetail,
+ fetchExportUserReport,
fetchGetRoleList,
fetchOperationRecordPage,
fetchGetOperationRecordDetail,
@@ -901,9 +960,15 @@
fetchDeleteSerialRule,
fetchDictTypePage,
fetchGetDictTypeDetail,
+ fetchGetDictDataDetail,
fetchSaveDictType,
+ fetchSaveDictData,
fetchUpdateDictType,
+ fetchUpdateDictData,
fetchDeleteDictType,
+ fetchDeleteDictData,
+ fetchExportDictTypeReport,
+ fetchExportDictDataReport,
fetchDictDataPage,
fetchWaveRulePage,
fetchGetWaveRuleDetail,
--
Gitblit v1.9.1