车辆服务刷新问题

This commit is contained in:
2025-09-11 09:48:53 +08:00
parent 3a7c06ff2f
commit ab7593ae2d

View File

@ -177,7 +177,6 @@ export default {
}
},
mounted() {
// this.getVehicleList();
this.getPermissions();
},
methods:{
@ -238,11 +237,12 @@ export default {
// 数据全部加载完成
if (this.vehicleList.length >= this.total) {
this.finished = true;
} else {
this.finished = false;
}
},
onRefresh() {
this.pageNum=1
// this.getVehicleList()
async onRefresh() {
await this.resetHandler()
setTimeout(() => {
this.$toast('刷新成功');
this.isLoading = false;
@ -284,10 +284,11 @@ export default {
await this.getVehicleList();
},
async resetHandler() {
// debounce(async () => {
this.pageNum=1
this.finished = false;
this.total = 0;
// this.vehicleList = [];
await this.getVehicleList();
// }, 1000)
},
updateVehicle(item){//修改
if( this.permissonList.includes('vehicleModifyBtn') ) {