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)