fix:修改endpointQuery pageSize 没有保存的问题

This commit is contained in:
zhangyu
2021-05-10 17:50:36 +08:00
parent 1477c3cffc
commit c09453c25c

View File

@@ -130,9 +130,9 @@ export default {
rightBox: { show: false }, rightBox: { show: false },
minusTime: 0, minusTime: 0,
searchTime: [new Date().setHours(new Date().getHours() - 1), new Date()], searchTime: [new Date().setHours(new Date().getHours() - 1), new Date()],
tableId: 'alertSilenceTable', tableId: 'endpointQueryTable',
pageObj: { pageObj: {
pageSize: 10, pageSize: 20,
pageNo: 1, pageNo: 1,
total: 0 total: 0
} }
@@ -463,7 +463,7 @@ export default {
this.$refs.endpointChart.endLoading() this.$refs.endpointChart.endLoading()
} }
setTimeout(() => { setTimeout(() => {
this.$refs.endpointChart.resize() // this.$refs.endpointChart.resize()
}, 100) }, 100)
}) })
}) })
@@ -541,7 +541,8 @@ export default {
}, },
created () { created () {
// this.getPanelData() // this.getPanelData()
this.pageObj.pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId) const pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId)
this.pageObj.pageSize = pageSize || 20
} }
} }
</script> </script>