调整现地列车显示
This commit is contained in:
parent
da62178c72
commit
289f1dbff0
@ -426,9 +426,6 @@ export default class Switch extends Group {
|
||||
setState(model) {
|
||||
if (!this.isShowShape) return;
|
||||
this.recover();
|
||||
if (model.name == 'P021208') {
|
||||
console.log(model);
|
||||
}
|
||||
if (model.normalPosition) {
|
||||
this.setLocationAction(model); /** 定位*/
|
||||
} else if (model.reversePosition) {
|
||||
|
@ -204,7 +204,8 @@ const map = {
|
||||
version: '', // 地图版本,
|
||||
trainListUpdate:0, // 列车列表更新标识,
|
||||
runPlanStatus:false, // 是否正处于按计划行车
|
||||
showCentralizedStationCode: '' // 现地分集中站显示(集中站code)
|
||||
showCentralizedStationCode: '', // 现地分集中站显示(集中站code)
|
||||
showCentralizedStationNum: 0 // 现地分集中站显示判断
|
||||
},
|
||||
|
||||
getters: {
|
||||
@ -718,6 +719,9 @@ const map = {
|
||||
},
|
||||
setShowCentralizedStationCode: (state, stationCode) => {
|
||||
state.showCentralizedStationCode = stationCode;
|
||||
},
|
||||
setShowCentralizedStationNum: (state) => {
|
||||
state.showCentralizedStationNum++;
|
||||
}
|
||||
},
|
||||
|
||||
@ -887,6 +891,9 @@ const map = {
|
||||
},
|
||||
setShowCentralizedStationCode: ({commit}, stationCode) => {
|
||||
commit('setShowCentralizedStationCode', stationCode);
|
||||
},
|
||||
setShowCentralizedStationNum: ({commit}) => {
|
||||
commit('setShowCentralizedStationNum');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -36,6 +36,7 @@
|
||||
:offset-bottom="offsetBottom"
|
||||
:group="group"
|
||||
:quest-id="questId"
|
||||
:show-station="showStation"
|
||||
@tryTime="tryTime"
|
||||
@hidepanel="hidepanel"
|
||||
@passflow="passflow"
|
||||
@ -589,6 +590,7 @@ export default {
|
||||
switchStationMode(val) {
|
||||
this.showStation = val;
|
||||
this.$store.dispatch('map/setShowCentralizedStationCode', this.showStation);
|
||||
this.$store.dispatch('map/setShowCentralizedStationNum');
|
||||
},
|
||||
setStationList(val) {
|
||||
this.stationList = [];
|
||||
|
@ -61,6 +61,12 @@ export default {
|
||||
default() {
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
showStation: {
|
||||
type: String,
|
||||
default() {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -164,6 +170,7 @@ export default {
|
||||
this.$store.dispatch('training/simulationStart').then(() => {
|
||||
this.$store.dispatch('map/setRunPlanStatus', true);
|
||||
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${model.initTime}`));
|
||||
this.$store.dispatch('map/setShowCentralizedStationNum');
|
||||
});
|
||||
}).catch(error => {
|
||||
this.isDisable = false;
|
||||
|
@ -137,8 +137,8 @@ export default {
|
||||
'$store.state.training.prdType': function (val) {
|
||||
this.changePrdType(val);
|
||||
},
|
||||
'$store.state.map.showCentralizedStationCode': function (val) {
|
||||
this.setShowStation(val);
|
||||
'$store.state.map.showCentralizedStationNum': function (val) {
|
||||
this.setShowStation(this.$store.state.map.showCentralizedStationCode);
|
||||
},
|
||||
'$store.state.training.offsetStationCode': function(code) {
|
||||
if (code && this.localStationShow && this.$store.state.training.prdType === '01') {
|
||||
|
Loading…
Reference in New Issue
Block a user