实训列表调整
This commit is contained in:
parent
13f16e5570
commit
954ee991fa
@ -58,9 +58,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initLoadPage() {
|
initLoadPage() {
|
||||||
const trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : '';
|
let trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : '';
|
||||||
|
trainingType = trainingType ? trainingType.toLowerCase() : null;
|
||||||
// labels: ['车站', '控制权']
|
// labels: ['车站', '控制权']
|
||||||
const data = {mapId: this.mapId, type: trainingType.toLowerCase()};
|
const data = {mapId: this.mapId, type: trainingType};
|
||||||
if (this.$route.query.labels) {
|
if (this.$route.query.labels) {
|
||||||
const labels = this.$route.query.labels.split('-');
|
const labels = this.$route.query.labels.split('-');
|
||||||
const labelMap = { loc: '现地', dis: '行调', section: '区段', signal: '信号机', switch: '道岔', stand: '站台', station: '车站', control: '控制权' };
|
const labelMap = { loc: '现地', dis: '行调', section: '区段', signal: '信号机', switch: '道岔', stand: '站台', station: '车站', control: '控制权' };
|
||||||
|
Loading…
Reference in New Issue
Block a user