|
|
@@ -10,7 +10,8 @@ import { Down, Up } from '@icon-park/react'
|
|
|
import { FlipOverEnum, useFlipOver } from '@/hooks/web/useFlipOver'
|
|
|
|
|
|
const Index = props => {
|
|
|
- const { dispatch, visible, dataId = '', shouldUpdate, orderIds = [] } = props
|
|
|
+ const { dispatch, visible, dataId = '', refresh, orderIds = [], updateKey = 'longle' } = props
|
|
|
+ const shouldUpdate = refresh[updateKey] || false
|
|
|
const [state, setState] = useState({
|
|
|
longle: {},
|
|
|
log: [],
|
|
|
@@ -26,7 +27,7 @@ const Index = props => {
|
|
|
if (shouldUpdate) {
|
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
|
- payload: 'longle'
|
|
|
+ payload: 'updateKey'
|
|
|
})
|
|
|
}
|
|
|
setState({ ...state, longle, log, longleLog })
|
|
|
@@ -86,8 +87,7 @@ const Index = props => {
|
|
|
clientId={state.longle.clientId}
|
|
|
keyNum={state.longle.keyNum}
|
|
|
logStatus={state.longle.status}
|
|
|
- // sellStatus={state.longle.sellStatus}
|
|
|
- // preserveStatus={state.longle.preserveStatus}
|
|
|
+ dataSource={changeCopInputData}
|
|
|
/>
|
|
|
<LockLowerList log={state.log} />
|
|
|
</Col>
|
|
|
@@ -99,6 +99,6 @@ const Index = props => {
|
|
|
|
|
|
// export default Index
|
|
|
export default connect(({ refresh, single }) => ({
|
|
|
- shouldUpdate: refresh.longle,
|
|
|
+ refresh,
|
|
|
visible: single.drawer.visible
|
|
|
}))(Index)
|