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; });