进路序列、股道视图调整
This commit is contained in:
parent
19f2b8c290
commit
1bdfe33623
@ -157,6 +157,10 @@ export default {
|
|||||||
const offset = val ? 162 : 0;
|
const offset = val ? 162 : 0;
|
||||||
EventBus.$emit('setMenuButtonPosition', offset);
|
EventBus.$emit('setMenuButtonPosition', offset);
|
||||||
},
|
},
|
||||||
|
'$store.state.socket.simulationReset': function (val) {
|
||||||
|
this.sequenceMap = {};
|
||||||
|
this.sequenceList = [];
|
||||||
|
},
|
||||||
'$store.state.socket.railCtcStatusMsg': function (val) {
|
'$store.state.socket.railCtcStatusMsg': function (val) {
|
||||||
if (val && val.length) {
|
if (val && val.length) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
@ -169,6 +173,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (item && item.routeSequence && item.routeSequence.deletedLineIds && item.routeSequence.deletedLineIds.length) {
|
||||||
|
item.routeSequence.deletedLineIds.forEach(elem => {
|
||||||
|
delete this.sequenceMap[elem];
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.sequenceList = [];
|
this.sequenceList = [];
|
||||||
for (const key in this.sequenceMap) {
|
for (const key in this.sequenceMap) {
|
||||||
|
@ -331,7 +331,6 @@ export default {
|
|||||||
{label: '发车报点', value: 'DEPARTURE'},
|
{label: '发车报点', value: 'DEPARTURE'},
|
||||||
{label: '流程终止', value: 'FINISH'}
|
{label: '流程终止', value: 'FINISH'}
|
||||||
],
|
],
|
||||||
stationDataMap: {},
|
|
||||||
sequenceMap: {},
|
sequenceMap: {},
|
||||||
sequenceList: [],
|
sequenceList: [],
|
||||||
readOnlyMap: {},
|
readOnlyMap: {},
|
||||||
@ -346,6 +345,13 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
'$store.state.socket.simulationReset': function (val) {
|
||||||
|
this.sequenceMap = {};
|
||||||
|
this.sequenceList = [];
|
||||||
|
this.readOnlyMap = {};
|
||||||
|
this.standTrackSectionMap = {};
|
||||||
|
this.trackList = [];
|
||||||
|
},
|
||||||
'$store.state.socket.railCtcStatusMsg': function (val) {
|
'$store.state.socket.railCtcStatusMsg': function (val) {
|
||||||
if (val && val.length) {
|
if (val && val.length) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
@ -375,6 +381,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (item && item.trackView && item.trackView.deletedMap) {
|
||||||
|
for (const key in item.trackView.deletedMap) {
|
||||||
|
if (this.standTrackSectionMap[key] && item.trackView.deletedMap[key] && item.trackView.deletedMap[key].length) {
|
||||||
|
const sectionMap = this.standTrackSectionMap[key];
|
||||||
|
item.trackView.deletedMap[key].forEach(trainCode => {
|
||||||
|
delete sectionMap[trainCode];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (item && item.trackView && item.trackView.sectionOccupiedMap) {
|
if (item && item.trackView && item.trackView.sectionOccupiedMap) {
|
||||||
for (const key in item.trackView.sectionOccupiedMap) {
|
for (const key in item.trackView.sectionOccupiedMap) {
|
||||||
if (this.standTrackSectionMap[key]) {
|
if (this.standTrackSectionMap[key]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user