wanyiwei
3 years ago
5 changed files with 160 additions and 146 deletions
@ -1,13 +1,32 @@ |
|||||
import React from 'react' |
import React, { useEffect, useState } from 'react' |
||||
import Left from './left' |
import Left from './left' |
||||
import Right from './right' |
import Right from './right' |
||||
|
import { connect } from 'react-redux' |
||||
|
import { getBusTierList } from '../../../actions/example' |
||||
|
|
||||
|
const Operation = (props) => { |
||||
|
|
||||
|
const [roadData, setRoadData] = useState() |
||||
|
const [loading, setLoading] = useState(true) |
||||
|
const { dispatch } = props |
||||
|
useEffect(() => { |
||||
|
dispatch(getBusTierList()).then(res => { |
||||
|
setLoading(false) |
||||
|
setRoadData(res.payload.data || {}) |
||||
|
}) |
||||
|
}, []) |
||||
|
|
||||
const Operation = () => { |
|
||||
return ( |
return ( |
||||
<div style={{ display: 'flex', width: '100%',height: '100%',justifyContent: 'space-between' }}> |
<div style={{ display: 'flex', width: '100%',height: '100%',justifyContent: 'space-between' }}> |
||||
<Left /> |
<Left roadData={roadData} loading={loading} /> |
||||
<Right /> |
<Right roadData={roadData} loading={loading} /> |
||||
</div> |
</div> |
||||
) |
) |
||||
} |
} |
||||
export default Operation |
function mapStateToProps(state) { |
||||
|
|
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
export default connect(mapStateToProps)(Operation) |
@ -0,0 +1,29 @@ |
|||||
|
.busList { |
||||
|
width: 100%; |
||||
|
height: 96%; |
||||
|
overflow-x: hidden; |
||||
|
overflow-y: auto; |
||||
|
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{ |
||||
|
background: none; |
||||
|
background-color: none !important; |
||||
|
border: 1px solid rgba(10, 114, 255, 1); |
||||
|
} |
||||
|
.ant-tree .ant-tree-node-content-wrapper &:hover { |
||||
|
background-color: none; |
||||
|
background: none; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.busList::-webkit-scrollbar-track { |
||||
|
background-color: rgba(3, 60, 158, 0.3); |
||||
|
border-radius: 1px |
||||
|
} |
||||
|
|
||||
|
.busList::-webkit-scrollbar { |
||||
|
width: 5px; |
||||
|
} |
||||
|
|
||||
|
.busList::-webkit-scrollbar-thumb { |
||||
|
background-color: rgba(28, 96, 254, 1); |
||||
|
border-radius: 1px |
||||
|
} |
Loading…
Reference in new issue