调整二次按计划行车报错
This commit is contained in:
parent
c2c543503d
commit
119af19522
@ -289,7 +289,6 @@ class Jlmap {
|
||||
setUpdateMapDevice(list) {
|
||||
store.dispatch('map/updateMapDevice', list);
|
||||
(list || []).forEach(elem => {
|
||||
|
||||
const code = elem.code;
|
||||
const type = elem._type;
|
||||
if (elem.deviceType === 'TRAIN' && elem.type === 'HEAD') {
|
||||
|
@ -433,8 +433,14 @@ export default {
|
||||
let list = [];
|
||||
nameList.forEach(item => {
|
||||
if (this.$store.state.map.map[item] && this.$store.state.map.map[item].constructor === Array) {
|
||||
if (item === 'trainList') {
|
||||
this.$store.state.map.map[item].forEach(elem => {
|
||||
elem && list.push(elem);
|
||||
});
|
||||
} else {
|
||||
list = [...list, ...this.$store.state.map.map[item]];
|
||||
}
|
||||
}
|
||||
});
|
||||
this.$jlmap.updateShowStation(list, stationCode);
|
||||
!isTraining && this.setCenter(stationCode);
|
||||
|
Loading…
Reference in New Issue
Block a user