|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-06-24 14:39:38
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-30 22:37:34
|
|
|
|
|
* @LastEditTime: 2022-06-30 22:42:19
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -118,8 +118,10 @@ export default {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
this.list = this.list.concat(result.records);
|
|
|
|
|
// 如果当前页数据为空,且不是最后一页则再查一次下一页,因过滤条件后端接口无法实现分页。所以这么做的。
|
|
|
|
|
if(result.records.length == 0 && this.pageIndex < result.pages){
|
|
|
|
|
this.next();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(this.pageIndex === result.pages){
|
|
|
|
|
this.loading = 'nomore'
|
|
|
|
|