From fac40cb2dc0c4ea17fb5976b9fdc70eaaab3ffe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Sat, 28 Oct 2023 12:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationOperation/index.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index e8ab8c7..128272b 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -281,16 +281,18 @@ export default { this.$message.success({ content: 'Loaded!', key, duration: 2 }) } res.result.forEach((item) => { - arr.forEach((el) => { - if ( - parseInt(item.id) == el.stationId && - el.stationType != 'Nuclear Facility' && - el.stationType != 'NRL' - ) { - item.stationType = el.stationType - item.stationId = el.stationId - } - }) + if (object.prototype.toString.call(item) == '[object Object]') { + arr.forEach((el) => { + if ( + parseInt(item.id) == el.stationId && + el.stationType != 'Nuclear Facility' && + el.stationType != 'NRL' + ) { + item.stationType = el.stationType + item.stationId = el.stationId + } + }) + } }) this.orgStationList = res.result let arrA = []