feat: 带查询参数的导出

This commit is contained in:
dap
2024-10-07 17:11:08 +08:00
parent 0f31c8df57
commit 81e2fa856a
11 changed files with 77 additions and 11 deletions

View File

@@ -151,7 +151,13 @@ emitter.on('rowClick', async (value) => {
<Space>
<a-button
v-access:code="['system:dict:export']"
@click="downloadExcel(dictDataExport, '字典数据', {})"
@click="
downloadExcel(
dictDataExport,
'字典数据',
tableApi.formApi.form.values,
)
"
>
{{ $t('pages.common.export') }}
</a-button>

View File

@@ -197,7 +197,13 @@ function handleSyncTenantDict() {
</Dropdown>
<a-button
v-access:code="['system:dict:export']"
@click="downloadExcel(dictTypeExport, '字典类型数据', {})"
@click="
downloadExcel(
dictTypeExport,
'字典类型数据',
tableApi.formApi.form.values,
)
"
>
{{ $t('pages.common.export') }}
</a-button>