Merge branch 'qzc-dev'
commit
2a80649ab0
|
|
@ -13,12 +13,12 @@ export default function TuLi() {
|
||||||
return (
|
return (
|
||||||
<div className='homePage_tuli'>
|
<div className='homePage_tuli'>
|
||||||
<div className='homePage_tuli_title'>图例</div>
|
<div className='homePage_tuli_title'>图例</div>
|
||||||
<div className='homePage_tuli_row'>
|
{/* <div className='homePage_tuli_row'>
|
||||||
<div className='homePage_tuli_row_text1' style={{width:'40%',marginTop:'-2px'}}>
|
<div className='homePage_tuli_row_text1' style={{width:'40%',marginTop:'-2px'}}>
|
||||||
<img width={20} height={20} src={`${process.env.PUBLIC_URL}/assets/xyt/fxdd/dm.png`} alt="" />
|
<img width={20} height={20} src={`${process.env.PUBLIC_URL}/assets/xyt/fxdd/dm.png`} alt="" />
|
||||||
</div>
|
</div>
|
||||||
<div className='homePage_tuli_row_text3' style={{width:'60%'}}>断面</div>
|
<div className='homePage_tuli_row_text3' style={{width:'60%'}}>断面</div>
|
||||||
</div>
|
</div> */}
|
||||||
|
|
||||||
<div className='homePage_tuli_row'>
|
<div className='homePage_tuli_row'>
|
||||||
<div className='homePage_tuli_row_text1' style={{width:'40%',marginTop:'-2px'}}>
|
<div className='homePage_tuli_row_text1' style={{width:'40%',marginTop:'-2px'}}>
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ export default function Page({isHome}) {
|
||||||
const [openSl, setOpenSl] = useState(false)
|
const [openSl, setOpenSl] = useState(false)
|
||||||
const [openWy, setOpenWy] = useState(false)
|
const [openWy, setOpenWy] = useState(false)
|
||||||
const [openDm, setOpenDm] = useState(false)
|
const [openDm, setOpenDm] = useState(false)
|
||||||
|
const myWidth = window.innerWidth
|
||||||
|
const myHeight = window.innerHeight
|
||||||
|
|
||||||
const [modalData, setModalData] = useState({})
|
const [modalData, setModalData] = useState({})
|
||||||
|
|
||||||
|
|
@ -97,9 +99,9 @@ export default function Page({isHome}) {
|
||||||
<div className='gcaqjc_bzt'>
|
<div className='gcaqjc_bzt'>
|
||||||
<TransformWrapper
|
<TransformWrapper
|
||||||
limitToBounds={false}
|
limitToBounds={false}
|
||||||
initialScale={1}
|
initialScale={0.7}
|
||||||
initialPositionX={isHome?-220:-450}
|
initialPositionX={((myWidth-660)/2)-(isHome?450:750)}
|
||||||
initialPositionY={isHome?10:20}
|
initialPositionY={((myHeight-60)/2)-(isHome?500:430)}
|
||||||
maxScale={100}
|
maxScale={100}
|
||||||
minScale={0.5}
|
minScale={0.5}
|
||||||
>
|
>
|
||||||
|
|
@ -213,9 +215,9 @@ export default function Page({isHome}) {
|
||||||
</div>:null
|
</div>:null
|
||||||
}
|
}
|
||||||
|
|
||||||
{/* <div style={{position:'absolute',left:'30px',top:'calc( 100vh - 300px )'}}>
|
<div style={{position:'absolute',left:'30px',top:'calc( 100vh - 300px )'}}>
|
||||||
<TuLi/>
|
<TuLi/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<Modal width={1000} wrapClassName='home_modal' bodyStyle={{padding:0}} title={null} closable={false} footer={null} open={openSy} onCancel={()=>setOpenSy(false)} destroyOnClose={true}>
|
<Modal width={1000} wrapClassName='home_modal' bodyStyle={{padding:0}} title={null} closable={false} footer={null} open={openSy} onCancel={()=>setOpenSy(false)} destroyOnClose={true}>
|
||||||
<ShenYa id={modalData.stationCode} data={modalData} dispatch={dispatch} record={modalData} onCancel={()=>setOpenSy(false)}/>
|
<ShenYa id={modalData.stationCode} data={modalData} dispatch={dispatch} record={modalData} onCancel={()=>setOpenSy(false)}/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue