feat(web-admin): add archive data-and-attachments ZIP export menu.
Extend ListExportDropdown with additional items and wire archive_zip on the plan-archive page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d5c2e1f1a4
commit
2f3756eab8
2 files changed
+56
-7
No files matched your search
@@ -40,6 +40,7 @@
|
||||
:get-filter-params="getPlanArchiveExportFilterParams"
|
||||
:has-selection="true"
|
||||
:selected-ids="selectedRows.map((r) => r.id)"
|
||||
:additional-menu-items="archiveZipMenuItems"
|
||||
filename="计划归档.xlsx"
|
||||
/>
|
||||
<el-dropdown trigger="click" @command="handleBatchErpCommand">
|
||||
@@ -1088,6 +1089,21 @@ function getPlanArchiveExportFilterParams() {
|
||||
return { exportFormat: 'archive', ...buildListQueryParams() }
|
||||
}
|
||||
|
||||
const archiveZipMenuItems = [
|
||||
{
|
||||
command: 'filtered-zip',
|
||||
label: '导出筛选结果(数据及附件 ZIP)',
|
||||
withIds: false,
|
||||
payloadExtra: { exportFormat: 'archive_zip' }
|
||||
},
|
||||
{
|
||||
command: 'selected-zip',
|
||||
label: '导出已选(数据及附件 ZIP)',
|
||||
withIds: true,
|
||||
payloadExtra: { exportFormat: 'archive_zip' }
|
||||
}
|
||||
]
|
||||
|
||||
const viewingPlan = ref<Plan | null>(null)
|
||||
|
||||
function syncViewingPlanFromList() {
|
||||
|
||||
Reference in new issue
Block a user