按钮防重复点击
This commit is contained in:
@@ -64,7 +64,7 @@ export default {
|
||||
pageNum:this.pageNum,
|
||||
pageSize:this.pageSize
|
||||
})
|
||||
if(result.code === 200){
|
||||
// if(result.code === 200){
|
||||
this.total=result.total
|
||||
if(this.pageNum == 1){// 第一页直接赋值
|
||||
this.vehicleList=result.data;
|
||||
@@ -73,20 +73,20 @@ export default {
|
||||
let arr = result.data;
|
||||
this.vehicleList = preList.concat(arr)
|
||||
}
|
||||
}
|
||||
// }
|
||||
},
|
||||
deleteItem(id){//删除车辆
|
||||
this.show=true
|
||||
this.id=id
|
||||
},
|
||||
async handleConfirm(){//调删除车辆接口
|
||||
let result= await deleteVehicle({
|
||||
await deleteVehicle({
|
||||
vehicleId:this.id
|
||||
})
|
||||
if(result.code === 200){
|
||||
// if(result.code === 200){
|
||||
this.$toast('删除成功');
|
||||
await this.getVehicleList();
|
||||
}
|
||||
await this.getVehicleList();
|
||||
// }
|
||||
},
|
||||
updateVehicle(item){//修改
|
||||
this.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user