diff --git a/src/views/baseapi/param/SystemParam.api.ts b/src/views/baseapi/param/SystemParam.api.ts index 54465fe1..b5205182 100644 --- a/src/views/baseapi/param/SystemParam.api.ts +++ b/src/views/baseapi/param/SystemParam.api.ts @@ -83,7 +83,7 @@ export interface SystemParam extends BaseEntity { // 参数名称 name?: string // 参数键名 - key?: string + paramKey?: string // 参数值 value?: string // 参数类型 diff --git a/src/views/baseapi/param/SystemParamEdit.vue b/src/views/baseapi/param/SystemParamEdit.vue index aefbf389..c393d19e 100644 --- a/src/views/baseapi/param/SystemParamEdit.vue +++ b/src/views/baseapi/param/SystemParamEdit.vue @@ -29,7 +29,7 @@ @@ -112,14 +112,14 @@ formEditType, } = useFormEdit() const { existsByServer } = useValidate() - const { dictDropDownNumber } = useDict() + const { dictDropDown } = useDict() // 表单 const formRef = ref() let form = ref({ id: null, name: '', - key: '', + paramKey: '', value: '', enable: true, type: undefined, @@ -145,7 +145,7 @@ initFormEditType(editType) resetForm() getInfo(id, editType) - dictDropDownNumber('ParamType').then((res) => (paramTypeList.value = res)) + dictDropDown('ParamType').then((res) => (paramTypeList.value = res)) } // 获取信息 function getInfo(id, editType: FormEditType) { @@ -181,8 +181,15 @@ } // 校验key值 async function validateKey() { - const { key, id } = form.value - return existsByServer(key, id, formEditType.value, existsByKey, existsByKeyNotId, '该Key已存在') + const { paramKey, id } = form.value + return existsByServer( + paramKey, + id, + formEditType.value, + existsByKey, + existsByKeyNotId, + '该Key已存在', + ) } defineExpose({ init, diff --git a/src/views/baseapi/param/SystemParamList.vue b/src/views/baseapi/param/SystemParamList.vue index 5b02a430..91b83886 100644 --- a/src/views/baseapi/param/SystemParamList.vue +++ b/src/views/baseapi/param/SystemParamList.vue @@ -28,7 +28,7 @@ > - +