短信模板导出

This commit is contained in:
liuyu 2024-03-14 09:03:01 +08:00
parent c5f36ed4b2
commit 127b7987c0

View File

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