| | |
| | | ...(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 } : {}) |
| | | } |
| | | } |
| | | |
| | |
| | | ...(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 } : {}) |
| | | } |
| | | } |
| | | |
| | |
| | | ...(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 } : {}) |
| | | } |
| | | } |
| | | |
| | |
| | | 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) }) |
| | | } |
| | |
| | | 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 = {}) { |
| | |
| | | fetchResetUserPassword, |
| | | fetchUpdateUserStatus, |
| | | fetchGetUserDetail, |
| | | fetchExportUserReport, |
| | | fetchGetRoleList, |
| | | fetchOperationRecordPage, |
| | | fetchGetOperationRecordDetail, |
| | |
| | | fetchDeleteSerialRule, |
| | | fetchDictTypePage, |
| | | fetchGetDictTypeDetail, |
| | | fetchGetDictDataDetail, |
| | | fetchSaveDictType, |
| | | fetchSaveDictData, |
| | | fetchUpdateDictType, |
| | | fetchUpdateDictData, |
| | | fetchDeleteDictType, |
| | | fetchDeleteDictData, |
| | | fetchExportDictTypeReport, |
| | | fetchExportDictDataReport, |
| | | fetchDictDataPage, |
| | | fetchWaveRulePage, |
| | | fetchGetWaveRuleDetail, |