46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
import React from 'react'
|
|
import { makeStyles } from '@material-ui/core';
|
|
import HDChart from './HDChart';
|
|
import { Grid } from '@material-ui/core';
|
|
import useDescStyle from '../_/descstyle';
|
|
|
|
|
|
|
|
|
|
function RealHDTip({ record, dispatch }) {
|
|
const classes = useDescStyle();
|
|
const viewInfo = () => {
|
|
dispatch?.runtime.setInfoDlg({ layerId: 'GqbzLayer', properties: record })
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<div className="boxhead"></div>
|
|
<div className="featuretip-title">
|
|
<div className="name">{record.pustName}</div>
|
|
<div className="extra cursor-pointer" onClick={viewInfo}>详细</div>
|
|
</div>
|
|
<div style={{ width: '25rem' }} className='f_14'>
|
|
<Grid container>
|
|
<Grid item className={classes.title}>站点编号:</Grid>
|
|
<Grid item className={classes.value}>{record.pustCode}</Grid>
|
|
<Grid item className={classes.title}>设计流量:</Grid>
|
|
<Grid item className={classes.value}>{record.updserRsn?? '--'}m³/s</Grid>
|
|
<Grid item className={classes.title}>设计扬程:</Grid>
|
|
<Grid item className={classes.value}>{record.updserRsn?? '--'}m</Grid>
|
|
<Grid item className={classes.title}>机组台数:</Grid>
|
|
<Grid item className={classes.value}>{record.pumpSetNum}台</Grid>
|
|
<Grid item className={classes.title}>设计装机总容量:</Grid>
|
|
<Grid item className={classes.value}>{record.totInsCap}kw</Grid>
|
|
<Grid item className={classes.title}>管理单位:</Grid>
|
|
<Grid item className={classes.value}>{record.engManCode_dictText}</Grid>
|
|
</Grid>
|
|
</div>
|
|
|
|
<div className="boxfoot"></div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default React.memo(RealHDTip);
|