南京二号线计算行车间隔指令参数调整
This commit is contained in:
parent
6e5ceeeb66
commit
edc9fee0a7
@ -64,7 +64,7 @@ class CommandHandle {
|
||||
},
|
||||
Train_Calculate_Interval: {
|
||||
operate: 'Train_Calculate_Interval',
|
||||
paramList: [{name: 'trainNumber'}, {name: 'interval'}]
|
||||
paramList: [{name: 'calculateParam'}]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -249,12 +249,12 @@ export default {
|
||||
if (this.loadingProjectList.includes(this.project)) {
|
||||
this.$store.dispatch('app/transitionAnimations');
|
||||
}
|
||||
// if (this.currentPrdType === '02' && this.courseModel.lineCode === '14') {
|
||||
// this.$router.push({ path: `/displayBaSiDi/demon`, query: query });
|
||||
// } else {
|
||||
// this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
||||
// }
|
||||
this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
||||
if (this.currentPrdType === '02' && this.courseModel.lineCode === '14') {
|
||||
this.$router.push({ path: `/displayBaSiDi/demon`, query: query });
|
||||
} else {
|
||||
this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
||||
}
|
||||
// this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
|
||||
launchFullscreen();
|
||||
}).catch(error=>{
|
||||
if (error.code == 10003) {
|
||||
|
@ -352,9 +352,14 @@ export default {
|
||||
const step = {
|
||||
cmdType: CMD.Train.CMD_TRAIN_CALCULATE_INTERVAL,
|
||||
operate: 'Train_Calculate_Interval',
|
||||
param: { trainNumber: this.trainNumber, interval: this.trainInterval},
|
||||
param: { calculateParam: {}},
|
||||
over:true
|
||||
};
|
||||
if (this.intervalMode === 'trainNumber') {
|
||||
step.param.calculateParam.trainNumber = this.trainNumber;
|
||||
} else if (this.intervalMode === 'trainInterval') {
|
||||
step.param.calculateParam.interval = this.trainInterval;
|
||||
}
|
||||
this.$store.dispatch('training/nextNew', step).then(({valid, response}) => {
|
||||
if (valid) {
|
||||
this.trainInterval = response.data.intervalTime;
|
||||
|
Loading…
Reference in New Issue
Block a user