数据处理
This commit is contained in:
@@ -212,7 +212,9 @@ export default {
|
||||
},
|
||||
async onLoad(){
|
||||
await this.getDriverList()
|
||||
this.pageNum++;
|
||||
if (this.total>10){
|
||||
this.pageNum++;
|
||||
}
|
||||
// 加载状态结束
|
||||
this.loading = false;
|
||||
// 数据全部加载完成
|
||||
@@ -238,7 +240,6 @@ export default {
|
||||
}
|
||||
},
|
||||
async getDriverList(){
|
||||
this.driverList=[]
|
||||
let res = await driverList({
|
||||
pageNum:this.pageNum,
|
||||
pageSize:this.pageSize,
|
||||
|
||||
@@ -250,7 +250,9 @@ export default {
|
||||
},
|
||||
async onLoad(){
|
||||
await this.getVehicleList()
|
||||
this.pageNum++;
|
||||
if(this.total>10){
|
||||
this.pageNum++;
|
||||
}
|
||||
// 加载状态结束
|
||||
this.loading = false;
|
||||
// 数据全部加载完成
|
||||
|
||||
Reference in New Issue
Block a user