工单报备按钮加防重复点击,提交报备做必填项的判断
This commit is contained in:
@ -67,7 +67,6 @@ export default {
|
||||
})
|
||||
if(result.code === 200){
|
||||
this.total=result.total
|
||||
//
|
||||
if(this.pageNum == 1){// 第一页直接赋值
|
||||
this.vehicleList=result.data;
|
||||
}else{// 第二页数据拼接
|
||||
@ -93,14 +92,13 @@ export default {
|
||||
}
|
||||
},
|
||||
async handleScroll(){
|
||||
// console.log("滑动")
|
||||
let num = Math.ceil( this.total / 10)
|
||||
if(num <= this.pageNum){
|
||||
console.log("不在加载数据")
|
||||
// console.log("不在加载数据")
|
||||
}else{
|
||||
this.pageNum++;
|
||||
await this.getVehicleList()
|
||||
console.log("111111111111")
|
||||
// console.log("111111111111")
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user