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