短信模板导出

pull/420/head
liuyu 2024-03-14 09:03:01 +08:00
parent c5f36ed4b2
commit 127b7987c0
1 changed files with 11 additions and 2 deletions

View File

@ -11,6 +11,14 @@
v-hasPermi="['system:sms-channel:create']"
@click="handleCreate()"
/>
<!-- 操作导出 -->
<XButton
type="warning"
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['system:sms-template:export']"
@click="exportList('短信模板.xls')"
/>
</template>
<template #actionbtns_default="{ row }">
<XTextButton
@ -120,10 +128,11 @@ const { t } = useI18n() // 国际化
const message = useMessage() //
//
const [registerTable, { reload, deleteData }] = useXTable({
const [registerTable, { reload, deleteData, exportList }] = useXTable({
allSchemas: allSchemas,
getListApi: SmsTemplateApi.getSmsTemplatePageApi,
deleteApi: SmsTemplateApi.deleteSmsTemplateApi
deleteApi: SmsTemplateApi.deleteSmsTemplateApi,
exportListApi: SmsTemplateApi.exportSmsTemplateApi
})
//