车辆管理下拉加载bug修复
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user