From 01254a001539b80858f39f9dfa382355a89c5708 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 26 Jul 2025 22:14:05 +0800 Subject: [PATCH] =?UTF-8?q?reactor=EF=BC=9A=E3=80=90SYSTEM=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E3=80=91=E9=82=AE=E7=AE=B1=E6=97=A5?= =?UTF-8?q?=E5=BF=97=EF=BC=8C=E9=87=8D=E6=9E=84=E6=88=90=20element-plus=20?= =?UTF-8?q?=E6=A0=87=E5=87=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/mail/account/index.vue | 28 +----------------------- src/views/system/mail/template/index.vue | 26 ---------------------- 2 files changed, 1 insertion(+), 53 deletions(-) diff --git a/src/views/system/mail/account/index.vue b/src/views/system/mail/account/index.vue index f6e9f5cd..d03c270f 100644 --- a/src/views/system/mail/account/index.vue +++ b/src/views/system/mail/account/index.vue @@ -56,16 +56,7 @@ @click="handleDeleteBatch" v-hasPermi="['system:mail-account:delete']" > - 批量删除 - - 导出 + 批量删除 @@ -134,7 +125,6 @@ import { DICT_TYPE } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as MailAccountApi from '@/api/system/mail/account' -import download from '@/utils/download' import MailAccountForm from './MailAccountForm.vue' defineOptions({ name: 'SystemMailAccount' }) @@ -153,7 +143,6 @@ const queryParams = reactive({ username: '', createTime: [] }) -const exportLoading = ref(false) // 导出的加载中 /** 查询列表 */ const getList = async () => { @@ -216,21 +205,6 @@ const handleDeleteBatch = async () => { } catch {} } -/** 导出按钮操作 */ -const handleExport = async () => { - try { - // 导出的二次确认 - await message.exportConfirm() - // 发起导出 - exportLoading.value = true - const data = await MailAccountApi.exportMailAccount(queryParams) - download.excel(data, '邮箱账号.xls') - } catch { - } finally { - exportLoading.value = false - } -} - /** 初始化 **/ onMounted(() => { getList() diff --git a/src/views/system/mail/template/index.vue b/src/views/system/mail/template/index.vue index 76907b8e..71bed39c 100644 --- a/src/views/system/mail/template/index.vue +++ b/src/views/system/mail/template/index.vue @@ -89,15 +89,6 @@ > 批量删除 - - 导出 - @@ -206,7 +197,6 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as MailTemplateApi from '@/api/system/mail/template' import * as MailAccountApi from '@/api/system/mail/account' -import download from '@/utils/download' import MailTemplateForm from './MailTemplateForm.vue' import MailTemplateSendForm from './MailTemplateSendForm.vue' @@ -228,7 +218,6 @@ const queryParams = reactive({ status: undefined, createTime: [] }) -const exportLoading = ref(false) // 导出的加载中 const accountList = ref([]) // 邮箱账号列表 /** 查询列表 */ @@ -298,21 +287,6 @@ const handleDeleteBatch = async () => { } catch {} } -/** 导出按钮操作 */ -const handleExport = async () => { - try { - // 导出的二次确认 - await message.exportConfirm() - // 发起导出 - exportLoading.value = true - const data = await MailTemplateApi.exportMailTemplate(queryParams) - download.excel(data, '邮件模板.xls') - } catch { - } finally { - exportLoading.value = false - } -} - /** 获取邮箱账号名称 */ const getAccountMail = (accountId: number) => { const account = accountList.value.find((account) => account.id === accountId)