fix: 增加选择时间

This commit is contained in:
zhangds 2024-04-26 15:56:46 +08:00
parent 8a28e32add
commit 55cc5bd928
1 changed files with 4 additions and 1 deletions

View File

@ -291,7 +291,10 @@ export default class settlementList extends React.Component {
let params = {}
//
if (this.state.selectionData.length > 0) {
let { combinedValue } = this.state
params.ids = this.state.selectionData.map((item) => item.id)
params.begin_time = combinedValue[0]
params.end_time = combinedValue[1]
} else {
let { page, limit, search, combinedValue } = this.state
let { key, key_batch_id, plan_id, reseller_id, type, settlement_no } = search
@ -318,7 +321,7 @@ export default class settlementList extends React.Component {
let res = await createExportTask(params)
if (res.code === 200) {
Notify.success("创建导出任务成功!");
Notify.success("创建导出任务成功!")
this.props.history.push("/home/bm-download-orderlist")
} else {
Notify.error(res.message)