diff --git a/src/jmapNew/theme/chengdu_01/menus/passiveDialog/timeout.vue b/src/jmapNew/theme/chengdu_01/menus/passiveDialog/timeout.vue index 1e7701890..cfb4ff862 100644 --- a/src/jmapNew/theme/chengdu_01/menus/passiveDialog/timeout.vue +++ b/src/jmapNew/theme/chengdu_01/menus/passiveDialog/timeout.vue @@ -43,18 +43,20 @@ export default { if (elem && (elem.hasOwnProperty('success') || elem.hasOwnProperty('timeout'))) { const operate = this.$store.state.training.operate; const control = this.$store.getters['map/getDeviceByCode'](elem.stationControlCode); - const station = this.$store.getters['map/getDeviceByCode'](control.stationCode); - const newOperate = { - type: operate.type, - name: station.name - }; + if (control && control.stationCode) { + const station = this.$store.getters['map/getDeviceByCode'](control.stationCode); + const newOperate = { + type: operate.type, + name: station.name + }; - if (elem.timeout) { - newOperate['msg'] = '请求超时'; - this.doShow(newOperate); - } else if (!elem.success) { - newOperate['msg'] = '请求拒绝'; - this.doShow(newOperate); + if (elem.timeout) { + newOperate['msg'] = '请求超时'; + this.doShow(newOperate); + } else if (!elem.success) { + newOperate['msg'] = '请求拒绝'; + this.doShow(newOperate); + } } } }