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

View File

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