|
|
@ -180,11 +180,11 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
name: v.name |
|
|
|
})} |
|
|
|
<div style={{ |
|
|
|
width: 58, height: 18, background: 'linear-gradient(rgb(235, 245, 255) 0%, rgb(235, 245, 255) 0%, rgb(211, 232, 255) 100%)', |
|
|
|
width: 58, height: 18, background: v.state == 'PMOS' ? 'linear-gradient(rgb(153, 199, 221) 0%, rgb(48, 72, 252) 100%)' : 'linear-gradient(rgb(235, 245, 255) 0%, rgb(235, 245, 255) 0%, rgb(211, 232, 255) 100%)', |
|
|
|
borderRadius: 2, display: "inline-block", marginLeft: 6 |
|
|
|
}}> |
|
|
|
<img src="/assets/images/install/icon_zhengque.png" style={{ display: "inline-block", width: 10 }} /> |
|
|
|
<span style={{ display: "inline-block", width: 48, fontSize: 12, textAlign: "center" }}>{v.state}</span> |
|
|
|
<img src={`/assets/images/install/${v.state == 'PMOS' ? 'icon_POMS' : 'icon_zhengque'}.png`} style={{ display: "inline-block", width: 10 }} /> |
|
|
|
<span style={{ display: "inline-block", color: v.state == 'PMOS' ? "rgb(255, 255, 255)" : "rgb(15, 126, 251)", width: 48, fontSize: 12, textAlign: "center" }}>{v.state}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
}) |
|
|
|