浏览代码

翻页问题

cxmo 1 年之前
父节点
当前提交
196a557441
共有 1 个文件被更改,包括 2 次插入2 次删除
  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();
 			}