车辆管理,数据加载完之后隐藏掉加载中
This commit is contained in:
@ -109,7 +109,7 @@ export default {
|
||||
async getPermissions(){
|
||||
let res = await userOperationPermissions();
|
||||
this.permissonList = res.data
|
||||
console.log("车辆管理",this.permissonList.includes('vehicleAddBtn','vehicleModifyBtn'))
|
||||
// console.log("车辆管理",this.permissonList.includes('vehicleAddBtn','vehicleModifyBtn'))
|
||||
},
|
||||
deleteItem(id){//删除车辆
|
||||
this.show=true
|
||||
@ -131,17 +131,17 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
async handleScroll(){
|
||||
let num = Math.ceil( this.total / 10)
|
||||
if(num <= this.pageNum){
|
||||
// console.log("不在加载数据")
|
||||
|
||||
}else{
|
||||
this.pageNum++;
|
||||
await this.getVehicleList()
|
||||
}
|
||||
},
|
||||
|
||||
// async handleScroll(){
|
||||
// let num = Math.ceil( this.total / 10)
|
||||
// if(num <= this.pageNum){
|
||||
// // console.log("不在加载数据")
|
||||
//
|
||||
// }else{
|
||||
// this.pageNum++;
|
||||
// await this.getVehicleList()
|
||||
// }
|
||||
// },
|
||||
//
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user