Browse Source

debug 告警数据展示异常

dev
巴林闲侠 2 years ago
parent
commit
6473d6dbaf
  1. 20
      web/client/src/sections/problem/components/tableData.jsx

20
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 <Table
columns={exhibition}
dataSource={route == 'useAbnormal' || route == 'videoAbnormal' ? tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || [] : tableData}
dataSource={
route == 'useAbnormal' || route == 'videoAbnormal' ?
tableData.slice(query.page * query.limit, (query.page + 1) * query.limit) || []
: tableData
}
bordered={false}
empty={<div><img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据</div>}
empty={
<div>
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据
</div>
}
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 });
}}
/>
</div> : ""}
@ -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 {

Loading…
Cancel
Save