Compare commits

..

2 Commits

Author SHA1 Message Date
xielei d3a55d163b Merge branch 'master' of http://10.0.41.100:3000/lishenfeng/tsg-web 2024-10-17 13:29:39 +08:00
xielei d774f4e449 页面搭建 2024-10-17 13:29:33 +08:00
4 changed files with 15 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import moment from "moment"
import ToolBar from './toolbar'; import ToolBar from './toolbar';
import TableData from './TableData' import TableData from './TableData'
import drpOption from './drpOption'; import drpOption from './drpOption';
import '../TangYanBa.less'
function ShenYa({ id, data, dispatch, onCancel }) { function ShenYa({ id, data, dispatch, onCancel }) {
console.log('SY',data); console.log('SY',data);
@ -96,7 +97,7 @@ function ShenYa({ id, data, dispatch, onCancel }) {
<div style={{padding:'0 20px'}}> <div style={{padding:'0 20px'}}>
<ToolBar search={(tms)=>getData(tms,data.stationCode)} setTabVal={setTabVal}/> <ToolBar search={(tms)=>getData(tms,data.stationCode)} setTabVal={setTabVal}/>
</div> </div>
<div className='homeModal2_content'> <div className='homeModal2_content' >
{ {
tabVal==='1'? tabVal==='1'?
tableData.length>0? tableData.length>0?

View File

@ -103,6 +103,7 @@
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
// float: right;
} }
} }
} }
@ -111,3 +112,13 @@
border-radius: 10px; border-radius: 10px;
} }
} }
.homeModal2{
display: flex;
flex-direction: column;
.homeModal2_content{
height: 504px;
display: flex;
padding: 5px 20px 20px 20px;
}
}

View File

@ -317,13 +317,13 @@ export default function Xmzlmb() {
columns={columns1} columns={columns1}
key="inx" key="inx"
dataSource={dataSources} dataSource={dataSources}
pagination={{pageSize:5}}
scroll={{ x: width, y: 250, scrollToFirstRowOnChange: true }} scroll={{ x: width, y: 250, scrollToFirstRowOnChange: true }}
onRow={record => { onRow={record => {
return { return {
onClick:() => {echartsRef.current.getEchartsInstance().setOption(jrxOption(record,dbType))} onClick:() => {echartsRef.current.getEchartsInstance().setOption(jrxOption(record,dbType))}
} }
}} }}
pagination={false}
/> />
</div> </div>
</div> </div>

View File

@ -66,7 +66,7 @@ const Page = () => {
> >
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width:'72%',height:'98%',}}> <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width:'72%',height:'98%',}}>
<Image src={url} id="img" preview={false} /> <Image src={url} id="img" style={{margin:'auto',margin:'20px',height:'750px'}} preview={false} />
</div> </div>
</Rnd> </Rnd>