|
|
@ -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 { |
|
|
|