feat-wip(components): 数据字典相关页面代码提交

This commit is contained in:
2025-12-02 00:25:16 +08:00
parent a10efd3b7e
commit 0e2e512eda
14 changed files with 644 additions and 44 deletions

View File

@ -0,0 +1,45 @@
import { request } from '../../../request';
export function fetchPageDictionary(pageRequest: Api.Sys.Core.DictionaryQueryPageRequest) {
return request<Api.Common.PageResponse<Api.Sys.Core.Dictionary>>({
url: '/dictionary/page',
method: 'post',
data: pageRequest
});
}
export function fetchDictionaryAdd(dictionaryOp: Api.Sys.Core.DictionaryOp) {
return request({
url: '/dictionary/add',
method: 'post',
data: dictionaryOp
});
}
export function fetchDictionaryEdit(dictionaryOp: Api.Sys.Core.DictionaryOp) {
return request({
url: '/dictionary/edit',
method: 'post',
data: dictionaryOp
});
}
export function fetchDictionaryDelete(id: string) {
return request({
url: '/dictionary/delete',
method: 'post',
data: {
id
}
});
}
export function fetchDictionaryDeleteBatch(ids: string[]) {
return request({
url: '/dictionary/deleteBatch',
method: 'post',
data: {
ids
}
});
}