chore: 🔨 导出文件时,如勾选,只导出勾选项 (#207)

This commit is contained in:
nsnail 2024-11-16 12:44:32 +08:00 committed by GitHub
parent a6018edb87
commit d28d7e9a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -378,7 +378,7 @@ export default {
return return
} }
if (command === 'export') { if (command === 'export') {
this.exportData() await this.exportData()
return return
} }
if (command === 'edit') { if (command === 'edit') {
@ -439,6 +439,16 @@ export default {
delete reqData[config.request.pageSize] delete reqData[config.request.pageSize]
} }
Object.assign(reqData, this.tableParams) Object.assign(reqData, this.tableParams)
const ids = [...new Set(this.$refs.scTable.getSelectionRows().map((x) => x.idd))].filter((x) => !!x)
if (ids.length > 0) {
reqData.dynamicFilter = {
filters: [reqData.dynamicFilter],
field: 'id',
operator: 'Any',
value: ids,
}
}
return reqData return reqData
}, },
// //