|
|
@ -4,7 +4,7 @@ import { Select } from 'antd'; |
|
|
|
import '../basis.less'; |
|
|
|
import './right_1.less'; |
|
|
|
|
|
|
|
export default function Right_1 ({ data, siteList, pumpInformation, setPumpInformation, strucId, setStrucId, POWER_STATIONS, setInformation }) { |
|
|
|
export default function Right_1({ data, siteList, pumpInformation, setPumpInformation, strucId, setStrucId, POWER_STATIONS, setInformation }) { |
|
|
|
|
|
|
|
const renderSelect = () => { |
|
|
|
return <Select |
|
|
@ -15,7 +15,7 @@ export default function Right_1 ({ data, siteList, pumpInformation, setPumpInfor |
|
|
|
options={siteList} |
|
|
|
onSelect={(v, option) => { |
|
|
|
setStrucId(v); |
|
|
|
setInformation(pumpInformation?.map(f => f.structureId == v) || {}) |
|
|
|
setInformation(Object.values(pumpInformation)?.map(f => f.structId == v) || {}) |
|
|
|
}} |
|
|
|
/> |
|
|
|
} |
|
|
@ -29,21 +29,21 @@ export default function Right_1 ({ data, siteList, pumpInformation, setPumpInfor |
|
|
|
<div className='detail'> |
|
|
|
<div className='detail-item'> |
|
|
|
<div className='item pump-models'> |
|
|
|
<div className='pump-models-value'>{data?.waterType}</div> |
|
|
|
<div className='pump-models-value'>{data?.water_type}</div> |
|
|
|
<div className='pump-models-key' >水泵型号</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className='detail-item'> |
|
|
|
<div className='item'> |
|
|
|
<div className='key'>电动机型号:</div> |
|
|
|
<div className='value'>{data?.elcType}</div> |
|
|
|
<div className='value'>{data?.elc_type}</div> |
|
|
|
</div> |
|
|
|
<div className='line' /> |
|
|
|
</div> |
|
|
|
<div className='detail-item'> |
|
|
|
<div className='item'> |
|
|
|
<div className='key'>变压器型号:</div> |
|
|
|
<div className='value'>{data?.byType}</div> |
|
|
|
<div className='value'>{data?.by_type}</div> |
|
|
|
</div> |
|
|
|
<div className='line' /> |
|
|
|
</div> |
|
|
@ -58,7 +58,7 @@ export default function Right_1 ({ data, siteList, pumpInformation, setPumpInfor |
|
|
|
<div className='vertical-line' /> |
|
|
|
<div className='item'> |
|
|
|
<div className='key'>泵站规模:</div> |
|
|
|
<div className='value'>{data?.scale} (kw)</div> |
|
|
|
<div className='value'>{data?.power} (kw)</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className='bottom-item'> |
|
|
@ -69,13 +69,13 @@ export default function Right_1 ({ data, siteList, pumpInformation, setPumpInfor |
|
|
|
<div className='vertical-line' /> |
|
|
|
<div className='item'> |
|
|
|
<div className='key'>泵站建成时间:</div> |
|
|
|
<div className='value'>{data?.startTime}</div> |
|
|
|
<div className='value'>{data?.year?.split(',')[0] || ''}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className='bottom-item'> |
|
|
|
<div className='item'> |
|
|
|
<div className='key'>泵站除险加固时间:</div> |
|
|
|
<div className='value'>{data?.reinforceTime}</div> |
|
|
|
<div className='value'>{data?.year?.split(',')[1].indexOf('空') !== -1 ? '-' : data?.year?.split(',')[1]}</div> |
|
|
|
</div> |
|
|
|
<div className='vertical-line' /> |
|
|
|
<div className='item'> |
|
|
|