diff --git a/src/pages/order/list/list.js b/src/pages/order/list/list.js index 9024bbed..a562f525 100644 --- a/src/pages/order/list/list.js +++ b/src/pages/order/list/list.js @@ -227,7 +227,12 @@ export default class orderlist extends React.Component{ data.key_word=key_word; } } - + if(this.state.selectiondata&&this.state.selectiondata.length>0){ + console.log(this.state.selectiondata); + let orders=this.state.selectiondata; + let orderNum=orders.map(item=>item.order_number); + data.order_numbers=orderNum.join(','); + } Sweetalert.confirm({ type:'warning', closeBtn:true, @@ -374,6 +379,7 @@ export default class orderlist extends React.Component{ //page pageChange(e){ this.setState({page:e}); + this.setState({'selectiondata':[]}) setTimeout(() => { this.getOrderFn(); }, 0); @@ -382,6 +388,7 @@ export default class orderlist extends React.Component{ //limit countChange(e){ this.setState({page:1,limit:e}); + this.setState({'selectiondata':[]}) setTimeout(() => { this.getOrderFn(); }, 0);