车辆管理,数据加载完之后隐藏掉加载中

This commit is contained in:
2023-09-13 10:37:06 +08:00
parent e9f9037eb0
commit e0ce710fed

View File

@ -109,7 +109,7 @@ export default {
async getPermissions(){ async getPermissions(){
let res = await userOperationPermissions(); let res = await userOperationPermissions();
this.permissonList = res.data this.permissonList = res.data
console.log("车辆管理",this.permissonList.includes('vehicleAddBtn','vehicleModifyBtn')) // console.log("车辆管理",this.permissonList.includes('vehicleAddBtn','vehicleModifyBtn'))
}, },
deleteItem(id){//删除车辆 deleteItem(id){//删除车辆
this.show=true this.show=true
@ -131,17 +131,17 @@ export default {
} }
}) })
}, },
async handleScroll(){ // async handleScroll(){
let num = Math.ceil( this.total / 10) // let num = Math.ceil( this.total / 10)
if(num <= this.pageNum){ // if(num <= this.pageNum){
// console.log("不在加载数据") // // console.log("不在加载数据")
//
}else{ // }else{
this.pageNum++; // this.pageNum++;
await this.getVehicleList() // await this.getVehicleList()
} // }
}, // },
//
} }
} }
</script> </script>