角色管理导出

This commit is contained in:
liuyu
2024-03-14 08:56:49 +08:00
parent 91c3ac062c
commit c5f36ed4b2

View File

@ -11,6 +11,14 @@
v-hasPermi="['system:role:create']"
@click="handleCreate()"
/>
<!-- 操作导出 -->
<XButton
type="warning"
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['system:role:export']"
@click="exportList('角色列表.xls')"
/>
</template>
<template #actionbtns_default="{ row }">
<!-- 操作编辑 -->
@ -174,10 +182,11 @@ defineOptions({ name: 'SystemRole' })
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
// 列表相关的变量
const [registerTable, { reload, deleteData }] = useXTable({
const [registerTable, { reload, deleteData, exportList }] = useXTable({
allSchemas: allSchemas,
getListApi: RoleApi.getRolePageApi,
deleteApi: RoleApi.deleteRoleApi
deleteApi: RoleApi.deleteRoleApi,
exportListApi: RoleApi.exportRole
})
// ========== CRUD 相关 ==========