fix: 字典管理查询和新增问题修复

This commit is contained in:
haoxr 2023-04-14 12:30:57 +08:00
parent 118c5732e1
commit 4fa9912380
3 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ export function getDictFormData(id: number): AxiosPromise<DictForm> {
*/
export function addDict(data: DictForm) {
return request({
url: '/api/v1/dict/items',
url: '/api/v1/dict',
method: 'post',
data: data
});

View File

@ -3,9 +3,9 @@
*/
export interface DictTypeQuery extends PageQuery {
/**
*
* (/)
*/
name?: string;
keywords?: string;
}
/**

View File

@ -199,7 +199,7 @@ onMounted(() => {
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
<el-form-item label="关键字" prop="name">
<el-input
v-model="queryParams.name"
v-model="queryParams.keywords"
placeholder="字典类型名称/编码"
clearable
@keyup.enter="handleQuery"