From 638a9881f2bdc561b35090e24c5615409618778d Mon Sep 17 00:00:00 2001 From: jiayu Date: Thu, 25 Jul 2024 18:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E7=82=B9bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/projectEnd/InspectionRoute/inspectionPlan.vue | 11 +++++++++-- .../InspectionRoute/inspectionPointList.vue | 11 ++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/projectEnd/InspectionRoute/inspectionPlan.vue b/pages/projectEnd/InspectionRoute/inspectionPlan.vue index e9cd3def..b3a2db2d 100644 --- a/pages/projectEnd/InspectionRoute/inspectionPlan.vue +++ b/pages/projectEnd/InspectionRoute/inspectionPlan.vue @@ -959,7 +959,6 @@ content: '您确定要删除此项吗?', success: async (res) => { if(res.confirm) { - let that = this; let data = { projectSn: this.condition.projectSn, id: item.id @@ -971,7 +970,14 @@ success: res => { console.info(res, 'res') if (res.code == 200) { - that.showToast('删除成功'); + uni.showToast({ + title: "删除成功" + }) + setTimeout(() => { + this.condition.pageNo = 1; + this.listData = []; + this.getListData() + }, 1000); } } }) @@ -1017,6 +1023,7 @@ width: 100%; height: 100%; } + flex-shrink: 0; } .plan_path{ background-color: #5181F6; diff --git a/pages/projectEnd/InspectionRoute/inspectionPointList.vue b/pages/projectEnd/InspectionRoute/inspectionPointList.vue index 2b187899..08f4eddf 100644 --- a/pages/projectEnd/InspectionRoute/inspectionPointList.vue +++ b/pages/projectEnd/InspectionRoute/inspectionPointList.vue @@ -39,7 +39,7 @@ 责任企业: - {{item.enterpriseName}} + {{item.enterpriseName}} @@ -224,8 +224,10 @@ uni.showToast({ title: "删除成功" }) - this.condition.pageNo = 1 - this.getListData(true) + setTimeout(() => { + this.condition.pageNo = 1 + this.getListData(true) + }, 1000); } } }) @@ -373,6 +375,9 @@ text-align: left; white-space: nowrap; font-family: SourceHanSansSC-regular; + &.wrap { + white-space: pre-wrap; + } } .label { min-height: 40rpx;