宁波实训跳转集中站
This commit is contained in:
parent
e49f32d6b2
commit
e45ec364a5
@ -267,7 +267,7 @@ export default {
|
||||
const deviceModel = this.$store.getters['map/getDeviceByCode'](code);
|
||||
if (deviceModel._type == 'Section' || deviceModel._type == 'Switch' || deviceModel._type == 'Signal' || deviceModel._type == 'Switch') {
|
||||
const stationModel = this.$store.getters['map/getDeviceByCode'](deviceModel.stationCode);
|
||||
this.switchStationMode(stationModel.code);
|
||||
this.switchStationMode(stationModel.code, true);
|
||||
} else if (deviceModel._type === 'Station') {
|
||||
let stationModel = '';
|
||||
if (deviceModel.centralized) {
|
||||
@ -281,7 +281,7 @@ export default {
|
||||
});
|
||||
});
|
||||
}
|
||||
this.switchStationMode(stationModel.code);
|
||||
this.switchStationMode(stationModel.code, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -609,9 +609,9 @@ export default {
|
||||
panel.setAttribute('style', '');
|
||||
}
|
||||
},
|
||||
switchStationMode(val) {
|
||||
switchStationMode(val, isTraining) {
|
||||
this.showStation = val;
|
||||
this.$refs.mapCanvas && this.$refs.mapCanvas.setShowStation(this.showStation);
|
||||
this.$refs.mapCanvas && this.$refs.mapCanvas.setShowStation(this.showStation, isTraining);
|
||||
},
|
||||
setStationList(val) {
|
||||
this.stationList = [];
|
||||
|
@ -376,7 +376,7 @@ export default {
|
||||
});
|
||||
this.$jlmap.updateShowMode(list, showMode);
|
||||
},
|
||||
setShowStation(stationCode) {
|
||||
setShowStation(stationCode, isTraining) {
|
||||
const nameList = Object.keys(this.$store.state.map.map);
|
||||
let list = [];
|
||||
nameList.forEach(item => {
|
||||
@ -385,7 +385,7 @@ export default {
|
||||
}
|
||||
});
|
||||
this.$jlmap.updateShowStation(list, stationCode);
|
||||
this.setCenter(stationCode);
|
||||
!isTraining && this.setCenter(stationCode);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -165,8 +165,8 @@ export default {
|
||||
mapViewLoaded(loading) {
|
||||
this.$refs.jlmapVisual && this.$refs.jlmapVisual.mapViewLoaded(loading);
|
||||
},
|
||||
setShowStation(stationCode) {
|
||||
this.$refs.jlmapVisual && this.$refs.jlmapVisual.setShowStation(stationCode);
|
||||
setShowStation(stationCode, isTraining) {
|
||||
this.$refs.jlmapVisual && this.$refs.jlmapVisual.setShowStation(stationCode, isTraining);
|
||||
},
|
||||
setCenter(code) {
|
||||
this.$refs.jlmapVisual && this.$refs.jlmapVisual.setCenter(code);
|
||||
|
@ -111,8 +111,8 @@ export default {
|
||||
clearSubscribe() {
|
||||
clearSubscribe(`${displayTopic}\/${this.group}`);
|
||||
},
|
||||
setShowStation(stationCode) {
|
||||
this.$refs.mapCommon && this.$refs.mapCommon.setShowStation(stationCode);
|
||||
setShowStation(stationCode, isTraining) {
|
||||
this.$refs.mapCommon && this.$refs.mapCommon.setShowStation(stationCode, isTraining);
|
||||
},
|
||||
setCenter(code) {
|
||||
this.$refs.mapCommon && this.$refs.mapCommon.setCenter(code);
|
||||
|
Loading…
Reference in New Issue
Block a user