From 9ef85e144ca29ee7b1a3b92e06235c8714cc5ae5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 8 Mar 2023 23:38:07 +0800 Subject: [PATCH] =?UTF-8?q?vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AE=A1=E7=90=86=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=A1=A8?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/config/index.ts | 2 +- src/views/infra/config/form.vue | 66 ++++++++++++++++---------------- src/views/infra/config/index.vue | 8 ++-- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/api/infra/config/index.ts b/src/api/infra/config/index.ts index 84ded9aa..6924c251 100644 --- a/src/api/infra/config/index.ts +++ b/src/api/infra/config/index.ts @@ -32,7 +32,7 @@ export const getConfigPage = (params: ConfigPageReqVO) => { } // 查询参数详情 -export const getConfigApi = (id: number) => { +export const getConfig = (id: number) => { return request.get({ url: '/infra/config/get?id=' + id }) } diff --git a/src/views/infra/config/form.vue b/src/views/infra/config/form.vue index ad924825..e4481dce 100644 --- a/src/views/infra/config/form.vue +++ b/src/views/infra/config/form.vue @@ -1,50 +1,53 @@ diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 3cde9385..e7f20a53 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -3,7 +3,7 @@ 新增 @@ -160,7 +160,7 @@ const queryParams = reactive({ type: undefined, createTime: [] }) -const queryForm = ref() // 搜索的表单 +const queryFormRef = ref() // 搜索的表单 /** 搜索按钮操作 */ const handleQuery = () => { @@ -182,7 +182,7 @@ const getList = async () => { /** 重置按钮操作 */ const resetQuery = () => { - queryForm.value.resetFields() + queryFormRef.value.resetFields() handleQuery() }