diff --git a/src/api/infra/config/index.ts b/src/api/infra/config/index.ts index 3bb039c8..c6d3772e 100644 --- a/src/api/infra/config/index.ts +++ b/src/api/infra/config/index.ts @@ -30,7 +30,7 @@ export const getConfig = (id: number) => { } // 根据参数键名查询参数值 -export const getConfigKeyApi = (configKey: string) => { +export const getConfigKey = (configKey: string) => { return request.get({ url: '/infra/config/get-value-by-key?key=' + configKey }) } @@ -45,7 +45,7 @@ export const updateConfig = (data: ConfigVO) => { } // 删除参数 -export const deleteConfigApi = (id: number) => { +export const deleteConfig = (id: number) => { return request.delete({ url: '/infra/config/delete?id=' + id }) } diff --git a/src/views/infra/config/form.vue b/src/views/infra/config/form.vue index 157917db..d9071e36 100644 --- a/src/views/infra/config/form.vue +++ b/src/views/infra/config/form.vue @@ -45,7 +45,7 @@ const message = useMessage() // 消息弹窗 const modelVisible = ref(false) // 弹窗的是否展示 const modelTitle = ref('') // 弹窗的标题 -const formLoading = ref(false) // 表单的 Loading 加载:1)修改时的数据加载;2)提交的按钮禁用 +const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = reactive({ id: undefined, diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index a67368ed..4e8b64b6 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -59,7 +59,6 @@ - 导出 + + + @@ -123,7 +126,7 @@ 删除 @@ -137,11 +140,13 @@