From c09453c25cad5380936bdc366a9ca4ae65663344 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 10 May 2021 17:50:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9endpointQuery=20pageSize?= =?UTF-8?q?=20=E6=B2=A1=E6=9C=89=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/table/special/endpointQueryTab.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue b/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue index 8c87873ce..e84fa153d 100644 --- a/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue +++ b/nezha-fronted/src/components/common/table/special/endpointQueryTab.vue @@ -130,9 +130,9 @@ export default { rightBox: { show: false }, minusTime: 0, searchTime: [new Date().setHours(new Date().getHours() - 1), new Date()], - tableId: 'alertSilenceTable', + tableId: 'endpointQueryTable', pageObj: { - pageSize: 10, + pageSize: 20, pageNo: 1, total: 0 } @@ -463,7 +463,7 @@ export default { this.$refs.endpointChart.endLoading() } setTimeout(() => { - this.$refs.endpointChart.resize() + // this.$refs.endpointChart.resize() }, 100) }) }) @@ -541,7 +541,8 @@ export default { }, created () { // 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 } }