Browse Source

项目后缀

dev
wenlele 2 years ago
parent
commit
c9bc66611c
  1. BIN
      web/client/assets/images/problem/icon_POMS.png
  2. 4
      web/client/src/sections/problem/components/tableData.jsx
  3. 6
      web/client/src/sections/problem/containers/dataAlarm.jsx

BIN
web/client/assets/images/problem/icon_POMS.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

4
web/client/src/sections/problem/components/tableData.jsx

@ -76,7 +76,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
let tableDatas = res.payload.data?.rows?.map(v => ({ let tableDatas = res.payload.data?.rows?.map(v => ({
key: v.AlarmId, key: v.AlarmId,
StructureName: v.StructureName, StructureName: v.StructureName,
projectName: v.pomsProject?.map(r => (r.name ? { name: r.name, state: '自定义' } : { projectName: v.pomsProject?.map(r => (r.name ? { name: r.name, state: 'PMOS' } : {
name: r.pepProject?.projectName, state: r.pepProject?.constructionStatus name: r.pepProject?.projectName, state: r.pepProject?.constructionStatus
}))?.filter(c => c), }))?.filter(c => c),
createTime: v.StartTime ? moment(v.StartTime).format("YYYY-MM-DD HH:mm:ss") : "", createTime: v.StartTime ? moment(v.StartTime).format("YYYY-MM-DD HH:mm:ss") : "",
@ -263,7 +263,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
<Button onClick={() => { <Button onClick={() => {
if (checkAll) { if (checkAll) {
setSelected(tableData?.map(v => { setSelected(tableData?.map(v => {
if (!v.confirmTime) { if (!(v.State > 2)) {
return v.key return v.key
} }
})?.filter(v => v)) })?.filter(v => v))

6
web/client/src/sections/problem/containers/dataAlarm.jsx

@ -180,11 +180,11 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => {
name: v.name name: v.name
})} })}
<div style={{ <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 borderRadius: 2, display: "inline-block", marginLeft: 6
}}> }}>
<img src="/assets/images/install/icon_zhengque.png" style={{ display: "inline-block", width: 10 }} /> <img src={`/assets/images/install/${v.state == 'PMOS' ? 'icon_POMS' : 'icon_zhengque'}.png`} style={{ display: "inline-block", width: 10 }} />
<span style={{ display: "inline-block", width: 48, fontSize: 12, textAlign: "center" }}>{v.state}</span> <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>
</div> </div>
}) })

Loading…
Cancel
Save