|
@ -192,7 +192,7 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
onSelect={(v, option) => { |
|
|
onSelect={(v, option) => { |
|
|
setPumpId(v) |
|
|
setPumpId(v) |
|
|
setPumpName(option.label) |
|
|
setPumpName(option.label) |
|
|
setPumpOne(currentSix?.find(d => d.id == v) || {}) |
|
|
// setPumpOne(currentSix?.find(d => d.id == v) || {})
|
|
|
}} |
|
|
}} |
|
|
options={pumpList?.map(v => ({ value: v.id, label: v.name })) || []} |
|
|
options={pumpList?.map(v => ({ value: v.id, label: v.name })) || []} |
|
|
/> |
|
|
/> |
|
@ -202,7 +202,7 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
{pumpOne?.data ? <img src={`/assets/images/electrical/${[1, 3, 5].includes(pumpOne?.data[0]?.sMotor_State) |
|
|
{pumpOne?.data ? <img src={`/assets/images/electrical/${[1, 3, 5].includes(pumpOne?.data[0]?.sMotor_State) |
|
|
? 'close' : [2, 4, 6].includes(pumpOne?.data[0]?.sMotor_State) |
|
|
? 'close' : [2, 4, 6].includes(pumpOne?.data[0]?.sMotor_State) |
|
|
? 'open' : pumpOne?.data[0]?.sMotor_State == 7 |
|
|
? 'open' : pumpOne?.data[0]?.sMotor_State == 7 |
|
|
? '故障' : '无状态'}.png`} style={{ width: 98, height: 115 }} />
|
|
|
? 'fault' : '无状态'}.png`} style={{ width: 98, height: 115 }} />
|
|
|
: <img src={`/assets/images/electrical/open.png`} style={{ width: 98, height: 115 }} />} |
|
|
: <img src={`/assets/images/electrical/open.png`} style={{ width: 98, height: 115 }} />} |
|
|
<div style={{ width: 'calc(100% - 110px)', display: 'flex', flexDirection: "column", justifyContent: 'space-between' }}> |
|
|
<div style={{ width: 'calc(100% - 110px)', display: 'flex', flexDirection: "column", justifyContent: 'space-between' }}> |
|
|
<div style={{ |
|
|
<div style={{ |
|
@ -232,8 +232,8 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
<div style={{ marginLeft: 6 }}>远程模式:</div> |
|
|
<div style={{ marginLeft: 6 }}>远程模式:</div> |
|
|
<div style={{ marginRight: 6 }}> |
|
|
<div style={{ marginRight: 6 }}> |
|
|
{pumpOne?.data[0]?.sMotor_RunMode == 1 ? '就地手动' |
|
|
{pumpOne?.data[0]?.sMotor_RunMode == 1 ? '就地手动' |
|
|
: pumpOne?.data[0]?.sMotor_RunMode == 2 ? "平台手动" |
|
|
: pumpOne?.data[0]?.sMotor_RunMode == 3 ? "平台手动" |
|
|
: pumpOne?.data[0]?.sMotor_RunMode == 3 ? "平台液控" : "--"} |
|
|
: pumpOne?.data[0]?.sMotor_RunMode == 2 ? "平台液控" : "--"} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|