diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx index 5eb1177..4393be6 100644 --- a/web/client/src/sections/problem/components/tableData.jsx +++ b/web/client/src/sections/problem/components/tableData.jsx @@ -379,12 +379,23 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition placeholder={SkeletonScreen()} > {(() => { - // console.log(tableData); + console.log(tableData); + console.log(route == 'useAbnormal' || route == 'videoAbnormal' ? + tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || [] + : tableData); return 暂无告警数据} + empty={ +
+ 暂无告警数据 +
+ } style={{}} pagination={false} onRow={(record, index) => { @@ -457,7 +468,6 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition pageSizeOpts={[10, 20, 30, 40]} onChange={(currentPage, pageSize) => { setQuery({ limit: pageSize, page: currentPage - 1 }); - }} /> : ""} @@ -472,7 +482,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition } -function mapStateToProps(state) { +function mapStateToProps (state) { const { auth, global, members } = state; // console.log(global); return {