wenlele 2 years ago
parent
commit
89603de5c9
  1. 7
      web/client/src/sections/problem/components/tableData.jsx
  2. 2
      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; break;
case 'videoAbnormal': case 'videoAbnormal':
// dispatch(problem.getAlarmDataGroup()).then((res) => {
// if (res.success) { }
// })
break; break;
default: default:
dispatch(problem.getAlarmDataGroup()).then((res) => { dispatch(problem.getAlarmDataGroup()).then((res) => {
@ -108,7 +113,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
}, [query, search]) }, [query, search])
console.log(query);
return ( return (
<> <>
<div style={{ backgroundColor: '#FFFFFF', paddingTop: 8 }}> <div style={{ backgroundColor: '#FFFFFF', paddingTop: 8 }}>

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

@ -345,6 +345,8 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => {
selected={selected} selected={selected}
setSelected={setSelected} setSelected={setSelected}
setGenre={setGenre} setGenre={setGenre}
query={query}
setQuery={setQuery}
/> />
{setup ? ( {setup ? (
<Setup <Setup

Loading…
Cancel
Save