From 7a804937483ae1e86f23bfe862a1a0f648cfd6cf Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 16 Aug 2022 11:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=85=91=E6=8D=A2=E7=A0=81?= =?UTF-8?q?=20=E7=AB=8B=E5=87=8F=E9=87=91=20=E7=94=9F=E6=95=88=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BB=A5=E8=90=A5=E9=94=80=E8=AE=A1=E5=88=92=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=BA=E9=99=90=E5=88=B6=20=E3=80=82=E5=8E=9F?= =?UTF-8?q?=EF=BC=9A=E6=89=B9=E6=AC=A1=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/edit/edit.js | 8 -------- src/pages/exchangecode/list/list.js | 6 ++++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index bf313664..bf7256ae 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -771,14 +771,6 @@ export default class exchangedit extends React.Component { let model2 = this.state.codeInfo model2.date_time = e this.setState({ codeInfo: model2 }) - - sessionStorage.setItem( - 'knockGold_effectDate', - JSON.stringify({ - begin_time: model2.date_time[0], - end_time: model2.date_time[1] - }) - ) } //渲染范围列表数据以及数据转换 diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index adb136e4..7f84b043 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -233,8 +233,10 @@ export default class acclist extends React.Component { ] } ] - - sessionStorage.setItem('knockGold_effectDate', JSON.stringify(rowData)) + sessionStorage.setItem( + 'knockGold_effectDate', + JSON.stringify(rowData.keyBatch.plan) + ) sessionStorage.setItem('code_id', rowData.id) sessionStorage.setItem('breaknav', JSON.stringify(activerou)) sessionStorage.setItem('approval_id', rowData.approval_id)