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 = []