From 700e35d7ed2860944d16e6a2faa2734300d846dc Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 30 Aug 2023 15:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=8F=B8=E6=9C=BA=E7=AE=A1=E7=90=86=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/driverManage.vue | 5 +++-- src/views/index/vehicleManage.vue | 10 ++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/index/driverManage.vue b/src/views/index/driverManage.vue index e5ef76da..a4c106d2 100644 --- a/src/views/index/driverManage.vue +++ b/src/views/index/driverManage.vue @@ -83,12 +83,12 @@ export default { mounted() { const urlParams = new URLSearchParams(window.location.search); this.supplierType = urlParams.get('supplierType'); - this.getDriverList() + // this.getDriverList() }, methods:{ async onLoad(){ - this.pageNum++; await this.getDriverList() + this.pageNum++; // 加载状态结束 this.loading1 = false; // 数据全部加载完成 @@ -97,6 +97,7 @@ export default { } }, onRefresh() { + this.pageNum=1; this.getDriverList() setTimeout(() => { this.$toast('刷新成功'); diff --git a/src/views/index/vehicleManage.vue b/src/views/index/vehicleManage.vue index 691f4c70..459f11ad 100644 --- a/src/views/index/vehicleManage.vue +++ b/src/views/index/vehicleManage.vue @@ -69,12 +69,12 @@ export default { } }, mounted() { - this.getVehicleList(); + // this.getVehicleList(); }, methods:{ async onLoad(){ - this.pageNum++; await this.getVehicleList() + this.pageNum++; // 加载状态结束 this.loading1 = false; // 数据全部加载完成 @@ -83,6 +83,7 @@ export default { } }, onRefresh() { + this.pageNum=1 this.getVehicleList() setTimeout(() => { this.$toast('刷新成功'); @@ -111,12 +112,9 @@ export default { await deleteVehicle({ vehicleId:this.id }) - // if(result.code === 200){ this.$toast('删除成功'); this.pageNum=1 - // this.vehicleList=[] - await this.getVehicleList(); - // } + await this.getVehicleList(); }, updateVehicle(item){//修改 this.$router.push({