diff --git a/src/views/system/mail/account/index.vue b/src/views/system/mail/account/index.vue
index f6e9f5cd9..d03c270f6 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 76907b8e5..71bed39c1 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)