feat: 字典配置前端代码.

This commit is contained in:
lijiahang
2023-10-20 17:07:53 +08:00
parent e0a6057515
commit 437614f026
33 changed files with 1175 additions and 237 deletions

View File

@@ -1,5 +1,6 @@
import axios from 'axios';
import qs from 'query-string';
import { DataGrid, Pagination } from '@/types/global';
import { TableData } from '@arco-design/web-vue/es/table/interface';
/**
@@ -19,6 +20,16 @@ export interface DictKeyUpdateRequest extends DictKeyCreateRequest {
id?: number;
}
/**
* 字典配置项查询请求
*/
export interface DictKeyQueryRequest extends Pagination {
searchValue?: string;
id?: number;
keyName?: string;
description?: string;
}
/**
* 字典配置项查询响应
*/
@@ -51,6 +62,13 @@ export function getDictKeyList() {
return axios.post<Array<DictKeyQueryResponse>>('/infra/dict-key/list');
}
/**
* 分页查询字典配置项
*/
export function getDictKeyPage(request: DictKeyQueryRequest) {
return axios.post<DataGrid<DictKeyQueryResponse>>('/infra/dict-key/query', request);
}
/**
* 删除字典配置项
*/