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

Former-commit-id: 4fa9912380d3d25836c3baea6e3a0b48c4febf36
This commit is contained in:
haoxr
2023-04-14 12:30:57 +08:00
parent f05dda3c7e
commit 9d646a85c9
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"