diff --git a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue index 5689f93..6f3418f 100644 --- a/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue +++ b/PC/UI.WinIn.FasterZ.AgGridReport/src/components/AgTable/index.vue @@ -116,12 +116,15 @@ export default { }, // 总计 setTableTotal(gridApi) { + // 设置页码器 + let _pageData = this.getCurrentPageData(gridApi) + this.pageTotal = this.allPageData.length + // 设置底部汇总 if(!this.BottomFixedItem || this.BottomFixedItem.length <= 0)return let result = [{}] this.BottomFixedItem.forEach(item=>{ result[0][item] = 0 }) - let _pageData = this.getCurrentPageData(gridApi) _pageData.forEach((item,key) => { for(let o in item){ if(this.BottomFixedItem.indexOf(o) >= 0){ @@ -129,7 +132,6 @@ export default { } } }); - console.log(132,result) // 平均值的特殊处理 if(this.averageFixedItem){ for(let i in result[0]){ @@ -138,7 +140,6 @@ export default { } } } - this.pageTotal = this.allPageData.length this.gridApi.setPinnedBottomRowData(result); }, // 设置表格高度 @@ -151,6 +152,7 @@ export default { }, // 更新table值 updateTableData(data){ + this.currentPage = 1 this.gridApi.setRowData(data) this.setTableTotal(this.gridApi) this.gridApi.resetRowHeights();