Browse Source

翻页问题

cxmo 1 year ago
parent
commit
196a557441
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/dataEntry_manage/databaseList.vue

+ 2 - 2
src/views/dataEntry_manage/databaseList.vue

@@ -871,7 +871,7 @@ export default {
 				if(res.Data){
 					this.chartList = this.CurrentIndex===1?res.Data.List:[...this.chartList,...res.Data.List]
 					this.Total = res.Data.Paging.Totals||0
-					this.IsListEnd = !(this.CurrentIndex<res.Data.Paging.pages)
+					this.IsListEnd = res.Data.Paging.IsEnd
 				}
 
 
@@ -882,7 +882,7 @@ export default {
 			let scrollTop = this.$refs.listRef.scrollTop;
 			let clientHeight = this.$refs.listRef.clientHeight;
 			let scrollHeight = this.$refs.listRef.scrollHeight;
-			if(scrollTop + clientHeight >= scrollHeight-10 && this.IsListEnd){
+			if(scrollTop + clientHeight >= scrollHeight-10 && !this.IsListEnd){
 				this.CurrentIndex++;
 				this.getEdbChartList();
 			}