wenlele 2 years ago
parent
commit
89603de5c9
  1. 7
      web/client/src/sections/problem/components/tableData.jsx
  2. 6
      web/client/src/sections/problem/containers/dataAlarm.jsx

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

@ -48,6 +48,11 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
})
break;
case 'videoAbnormal':
// dispatch(problem.getAlarmDataGroup()).then((res) => {
// if (res.success) { }
// })
break;
default:
dispatch(problem.getAlarmDataGroup()).then((res) => {
@ -108,7 +113,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
}, [query, search])
console.log(query);
return (
<>
<div style={{ backgroundColor: '#FFFFFF', paddingTop: 8 }}>

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

@ -187,7 +187,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => {
<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>
})
})
}
</>
@ -345,6 +345,8 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => {
selected={selected}
setSelected={setSelected}
setGenre={setGenre}
query={query}
setQuery={setQuery}
/>
{setup ? (
<Setup
@ -400,7 +402,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => {
}}
>
<div style={{ display: 'flex', paddingLeft: 20 }}>
<span style={{ display: 'inline-block', width: 78 }}>确认信息:</span>
<span style={{ display: 'inline-block', width: 78 }}>确认信息:</span>
<TextArea maxCount={500} showClear onChange={(e) => setContent(e)} />
</div>
</Modal> : ""}

Loading…
Cancel
Save