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