From b1710844638a386707927912a9914e1da7af01bc Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 30 Sep 2022 15:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/problem/components/tableData.jsx | 6 +++--- web/client/src/sections/problem/containers/dataAlarm.jsx | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx index e7509ed..030707a 100644 --- a/web/client/src/sections/problem/components/tableData.jsx +++ b/web/client/src/sections/problem/components/tableData.jsx @@ -16,8 +16,8 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition const [search, setSearch] = useState({}) //查询 const [checkAll, setCheckAll] = useState(true) //查询 const api = useRef(); - let title = { dataLnterrupt:"数据中断详情", dataAbnormal: "数据异常详情", strategyHit: "策略命中详情", ideoAbnormal: "视频异常详情", useAbnormal: "应用异常详情", deviceAbnormal: "设备异常详情" } - + let title = { dataLnterrupt: "数据中断详情", dataAbnormal: "数据异常详情", strategyHit: "策略命中详情", ideoAbnormal: "视频异常详情", useAbnormal: "应用异常详情", deviceAbnormal: "设备异常详情" } + useEffect(() => { switch (route) { case 'useAbnormal': @@ -52,7 +52,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition if (res.success) { console.log(res); let tableDatas = res.payload.data?.map(v => ({ - key: v.AlarmId, + key: v.alarmId, // StructureName: v.StructureName, // projectName: v.pomsProject?.map(r => (r.name ? { name: r.name, state: 'PMOS' } : { // name: r.pepProject?.projectName, state: r.pepProject?.constructionStatus diff --git a/web/client/src/sections/problem/containers/dataAlarm.jsx b/web/client/src/sections/problem/containers/dataAlarm.jsx index 876d0e7..c7f79c2 100644 --- a/web/client/src/sections/problem/containers/dataAlarm.jsx +++ b/web/client/src/sections/problem/containers/dataAlarm.jsx @@ -424,7 +424,6 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { setTableData(data) setConfirm(false) console.log(data) - setQuery({ limit: query.limit, page: query.page }) } }) })