From ef1f30129226b1fcb6f03b72ff9c694b765839cb Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 31 Dec 2019 15:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=BD=AE=E7=81=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/map.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/store/modules/map.js b/src/store/modules/map.js index ac0d7a954..7e1c3aed6 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -256,7 +256,7 @@ const map = { trainDetails: null, // 地图'列车详情'显示 deleteCount: 0, // 绘图快捷删除标识 updateCount: 0, // 绘图快捷修改标识 - mousemove: 0 // 实训战场图移动标识 + mousemove: 0 // 实训战场图移动标识 }, getters: { @@ -486,10 +486,10 @@ const map = { getStationControlByStationCode: (state) => (code) => { let device = null; if (code && - state.map && - state.map.stationList && state.map.stationList.length) { - state.map.stationList.forEach(elem => { - if (elem.code == code) { + state.map && + state.map.stationControlList && state.map.stationControlList.length) { + state.map.stationControlList.forEach(elem => { + if (elem.stationCode == code) { device = state.mapDevice[elem.code]; } }); @@ -604,7 +604,7 @@ const map = { }, setMousemove: (state) => { state.mousemove++; - }, + } }, actions: { @@ -726,7 +726,7 @@ const map = { setMousemove: ({ commit }) => { commit('setMousemove'); - }, + } } };