|
@@ -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
|
|
|
})
|
|
|
|
|
|
// 弹窗相关的变量
|