工单报备按钮加防重复点击,提交报备做必填项的判断

This commit is contained in:
2023-08-22 18:05:12 +08:00
parent 37e4b8d514
commit 2b5e3a7396
9 changed files with 104 additions and 46 deletions

View File

@ -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")
}
},