Browse Source

远程模式修改

master
wenlele 1 year ago
parent
commit
6c07c1e0e9
  1. BIN
      web/client/assets/images/electrical/fault.png
  2. 8
      web/client/src/sections/bigScreen/components/electrity/realTimeStatus.js

BIN
web/client/assets/images/electrical/fault.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

8
web/client/src/sections/bigScreen/components/electrity/realTimeStatus.js

@ -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>

Loading…
Cancel
Save