From 812300cc04050ee0357a0ceea11ec7d5e377909f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 20 Mar 2023 08:53:28 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9AREVIEW=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/errorCode/form.vue | 2 -- src/views/system/errorCode/index.vue | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/views/system/errorCode/form.vue b/src/views/system/errorCode/form.vue index 5e6a0bc8..9544c6ab 100644 --- a/src/views/system/errorCode/form.vue +++ b/src/views/system/errorCode/form.vue @@ -74,8 +74,6 @@ defineExpose({ openModal }) // 提供 openModal 方法,用于打开弹窗 /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 - -/** 提交按钮 */ const submitForm = async () => { // 校验表单 if (!formRef) return diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue index 8f7dac33..fc152903 100644 --- a/src/views/system/errorCode/index.vue +++ b/src/views/system/errorCode/index.vue @@ -1,7 +1,13 @@ @@ -194,6 +206,7 @@ const handleDelete = async (id: number) => { await getList() } catch {} } + /** 导出按钮操作 */ const handleExport = async () => { try { @@ -202,7 +215,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ErrorCodeApi.excelErrorCodeApi(queryParams) - download.excel(data, '参数配置.xls') + download.excel(data, '错误码.xls') } catch { } finally { exportLoading.value = false