|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-06-21 16:51:03
|
|
|
|
* @Date: 2022-06-21 16:51:03
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-06-30 22:18:01
|
|
|
|
* @LastEditTime: 2022-06-30 22:40:31
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -87,6 +87,11 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if(!HandleApiError(error, 'getList')){
|
|
|
|
if(!HandleApiError(error, 'getList')){
|
|
|
|
this.list = this.list.concat(result.records);
|
|
|
|
this.list = this.list.concat(result.records);
|
|
|
|
|
|
|
|
// 如果当前页数据为空,且不是最后一也则再查一次下一也
|
|
|
|
|
|
|
|
if(result.records.length == 0 && this.pageIndex < result.pages){
|
|
|
|
|
|
|
|
this.next();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
// 标记是否为最后一页
|
|
|
|
// 标记是否为最后一页
|
|
|
|
// if(result.records.length < this.pageSize){
|
|
|
|
// if(result.records.length < this.pageSize){
|
|
|
|
if(result.pages == this.pageIndex){
|
|
|
|
if(result.pages == this.pageIndex){
|
|
|
|