车辆管理下拉加载bug修复

This commit is contained in:
2023-09-13 11:31:01 +08:00
parent 742d568043
commit 5fd2d21d1f
2 changed files with 6 additions and 8 deletions

View File

@ -20,7 +20,7 @@
</div>
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
<van-list
v-model="loading1"
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
@ -76,7 +76,7 @@ export default {
supplierType:'',
count: 0,
isLoading: false,
loading1: false,
loading: false,
finished: false,
permissonList:[],
}
@ -92,7 +92,7 @@ export default {
await this.getDriverList()
this.pageNum++;
// 加载状态结束
this.loading1 = false;
this.loading = false;
// 数据全部加载完成
if (this.driverList.length >= this.total) {
this.finished = true;

View File

@ -20,7 +20,7 @@
</div>
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
<van-list
v-model="loading1"
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
@ -43,7 +43,6 @@
</van-list>
</van-pull-refresh>
<van-dialog v-model="show" title="确定删除吗" show-cancel-button @confirm="handleConfirm"></van-dialog>
<!-- <div >加载中...最后加</div>-->
</div>
</template>
@ -62,9 +61,8 @@ export default {
pageNum:1,
pageSize:10,
total:'',
// loading:false,
isLoading: false,
loading1: false,
loading: false,
finished: false,
permissonList:[],
}
@ -78,7 +76,7 @@ export default {
await this.getVehicleList()
this.pageNum++;
// 加载状态结束
this.loading1 = false;
this.loading = false;
// 数据全部加载完成
if (this.vehicleList.length >= this.total) {
this.finished = true;