大铁仿真 报运行图未加载调整

This commit is contained in:
fan 2022-11-30 09:34:45 +08:00
parent a274f4ef3b
commit db8793365f
2 changed files with 14 additions and 9 deletions

View File

@ -988,15 +988,15 @@ export default {
height: 100%;
position: absolute;
border-right: 1px #262626 solid;
left: 0px;
left: 0;
top: 0;
border-bottom: 1px #262626 solid;
border-left:0px;
border-top: 0px;
border-left:0;
border-top: 0;
}
.button_box.downActive::before{
border-right:0px;
border-bottom: 0px;
border-right:0;
border-bottom: 0;
border-left: 1px #262626 solid;
border-top: 1px #262626 solid;
}

View File

@ -35,15 +35,20 @@ export default {
},
height() {
return this.$store.state.app.height > 1080 ? 1080 : this.$store.state.app.height;
},
simType() {
return this.$route.query.simType;
}
},
watch: {
'$store.state.socket.runPlanReloadCount': function () {
if (this.simType === 'METRO') {
getSimulationInfoNew(this.group).then(res => {
this.$store.dispatch('runPlan/setRunPlanInfo', res.data.runPlan);
loadRunPlanData(this.group);
});
}
}
},
beforeDestroy() {
this.$store.dispatch('runPlan/setPlanData', []);