mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-22 22:22:51 +08:00
chore: 🔨 导出文件时,如勾选,只导出勾选项 (#207)
This commit is contained in:
parent
a6018edb87
commit
d28d7e9a18
@ -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
|
||||||
},
|
},
|
||||||
//获取数据
|
//获取数据
|
||||||
|
Loading…
x
Reference in New Issue
Block a user