refactor:vue3 export function

This commit is contained in:
xingyu
2022-07-28 18:23:09 +08:00
parent 4825e3a2e3
commit e16f8abc3a
14 changed files with 18 additions and 78 deletions

View File

@ -19,11 +19,6 @@
})
const { getList, setSearchParams, delList, exportList } = methods
// 导出操作
const handleExport = async () => {
await exportList('数据.xls')
}
// ========== CRUD 相关 ==========
const actionLoading = ref(false) // 遮罩层
const actionType = ref('') // 操作按钮的类型
@ -103,7 +98,7 @@
type="warning"
v-hasPermi="['${permissionPrefix}:export']"
:loading="tableObject.exportLoading"
@click="handleExport"
@click="exportList('数据.xls')"
>
<Icon icon="ep:download" class="mr-5px" /> {{ t('action.export') }}
</el-button>