代码调整

This commit is contained in:
joylink_cuiweidong 2022-07-25 09:58:40 +08:00
parent 7328ac596a
commit 808ce62c85

View File

@ -174,7 +174,7 @@ export default {
// }
// },
'$store.state.socket.simulationRoleList':function(list) {
if (list && list.length) { //
if (list && list.length && this.$route.query.lineCode == '16') { //
this.checkRoleChange(list);
}
}
@ -226,10 +226,11 @@ export default {
this.$store.dispatch('training/setRoleDeviceCode', item.deviceCode);
this.deviceCode = item.deviceCode;
this.setShowStation(item.deviceCode);
this.$store.dispatch('training/setPrdType', '01');
// this.setSimulationPrdType(this.centralizedStationMap[item.deviceCode]);
this.$nextTick(() => {
if (item.deviceCode && this.$store.state.training.prdType !== '09') { this.setCenter(item.deviceCode); }
});
// this.$nextTick(() => {
// if (item.deviceCode && this.$store.state.training.prdType !== '09') { this.setCenter(item.deviceCode); }
// });
}
});
},
@ -242,7 +243,9 @@ export default {
list.push(mapDevice[key]);
}
this.$jlmap.updateShowStation(list, showStation);
this.$jlmap.setCenter(showStation);
this.$nextTick(()=>{
this.$jlmap.setCenter(showStation);
});
},
setCentralizedstationList(map) {
this.centralizedstationList = [];