fix: 增加选择时间
This commit is contained in:
parent
8a28e32add
commit
55cc5bd928
|
@ -291,7 +291,10 @@ export default class settlementList extends React.Component {
|
||||||
let params = {}
|
let params = {}
|
||||||
// 如果是选择
|
// 如果是选择
|
||||||
if (this.state.selectionData.length > 0) {
|
if (this.state.selectionData.length > 0) {
|
||||||
|
let { combinedValue } = this.state
|
||||||
params.ids = this.state.selectionData.map((item) => item.id)
|
params.ids = this.state.selectionData.map((item) => item.id)
|
||||||
|
params.begin_time = combinedValue[0]
|
||||||
|
params.end_time = combinedValue[1]
|
||||||
} else {
|
} else {
|
||||||
let { page, limit, search, combinedValue } = this.state
|
let { page, limit, search, combinedValue } = this.state
|
||||||
let { key, key_batch_id, plan_id, reseller_id, type, settlement_no } = search
|
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)
|
let res = await createExportTask(params)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
Notify.success("创建导出任务成功!");
|
Notify.success("创建导出任务成功!")
|
||||||
this.props.history.push("/home/bm-download-orderlist")
|
this.props.history.push("/home/bm-download-orderlist")
|
||||||
} else {
|
} else {
|
||||||
Notify.error(res.message)
|
Notify.error(res.message)
|
||||||
|
|
Loading…
Reference in New Issue