现地仿真实训显示问题调整

This commit is contained in:
fan 2021-10-27 17:51:27 +08:00
parent 36e4e72adf
commit ba38a19309

View File

@ -126,7 +126,15 @@ export default {
},
'$store.state.training.simulationUserList': function(val) {
const userInfo = this.$store.state.training.simulationUserList.find(user => user.userId == this.$store.state.user.id );
if (userInfo.type === 'STATION_SUPERVISOR') { this.$store.dispatch('map/setShowCentralizedStationCode', userInfo.deviceCode); }
if (userInfo.type === 'STATION_SUPERVISOR') {
this.$store.dispatch('map/setShowCentralizedStationCode', userInfo.deviceCode);
const mapDevice = this.$store.state.map.mapDevice;
const list = [];
for (const key in mapDevice) {
list.push(mapDevice[key]);
}
this.$jlmap.updateShowStation(list, userInfo.deviceCode);
}
},
async $route() {
loadTrainingInSimulation(this.group, this.$route.query.trainingId).then(resp => {