From 512c5ca9a76623e8bc5fcde5b700aaca2e52b9dc Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 20 Oct 2023 16:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E8=AE=A1=E5=88=92=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/device/inspectionPlan/index.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 7494e84..88c6bb9 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -20,7 +20,7 @@ @@ -736,13 +736,6 @@ export default { created() { this.setWorkCenter(); this.getList(); - for (let i = 0; i < this.planList.length; i++) { - for (let j = 0; j < this.workCenterList.length; j++) { - if (this.planList[i].planWorkshop == this.workCenterList[j].factoryCode) { - this.planList[i].workCenterName = this.workCenterList[j].factoryName; - } - } - } }, methods: { // 改变巡检周期事件 @@ -1003,13 +996,7 @@ export default { this.setWorkCenter(); listPlan(this.queryParams).then(response => { this.planList = response.rows; - for (let i = 0; i < this.planList.length; i++) { - for (let j = 0; j < this.workCenterList.length; j++) { - if (this.planList[i].planWorkshop == this.workCenterList[j].factoryCode) { - this.planList[i].workCenterName = this.workCenterList[j].factoryName; - } - } - } + this.total = response.total; this.loading = false; });