|
|
@ -14,9 +14,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition |
|
|
|
const { problem } = actions |
|
|
|
|
|
|
|
const [count, setCount] = useState(0) // |
|
|
|
// const [search, setSearch] = useState({}) |
|
|
|
const [checkAll, setCheckAll] = useState(true) //查询 |
|
|
|
|
|
|
|
const api = useRef(); |
|
|
|
const search = useRef({ |
|
|
|
state: '', keywordTarget: '', keyword: '', kindId: '', groupUnitId: '', |
|
|
@ -123,7 +121,8 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
if (location) { |
|
|
|
search.current = { ...search.current, ...location } |
|
|
|
search.current = { ...search.current, ...location, state: 'new' } |
|
|
|
api.current?.setValues({...location, state: 'new'}) |
|
|
|
} |
|
|
|
if (route !== 'videoAbnormal' && route !== 'useAbnormal') { |
|
|
|
dispatch(problem.getAlarmDataGroup()).then((res) => { |
|
|
@ -157,7 +156,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition |
|
|
|
} |
|
|
|
}, []) |
|
|
|
|
|
|
|
console.log(location); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|