From a1cb9e71753fb52e752a533fe5490a077d3feb07 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Sun, 28 Nov 2021 10:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=A2=E5=8D=95=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E8=AE=A2=E5=8D=95=E5=8F=B7=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/list/list.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);