增加 宁波三 实训部分配置,以及修改西安控制模式操作提示未知错误的问题

This commit is contained in:
lVAL 2021-01-22 18:58:01 +08:00
parent 4211651bcf
commit b5d69120ff
3 changed files with 1007 additions and 852 deletions

View File

@ -245,7 +245,6 @@ export default {
}
},
data() {
console.log(OperationEvent.Command.commandNingBo.line_stand)
return {
classA: -1,
classB: -1,
@ -1378,10 +1377,10 @@ export default {
EventBus.$emit('closeMenu');
});
},
handleArrangeRoute() {
handleArrangeRoute(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1391,10 +1390,10 @@ export default {
}
});
},
handleTrainDistributionRunLine() {
handleTrainDistributionRunLine(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1404,10 +1403,10 @@ export default {
}
});
},
handleTrainDistributionClass() {
handleTrainDistributionClass(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1417,10 +1416,10 @@ export default {
}
});
},
handleTrainDistributionBack() {
handleTrainDistributionBack(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1431,10 +1430,10 @@ export default {
});
},
// /
standOpenOrClose() {
standOpenOrClose(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1445,10 +1444,10 @@ export default {
});
},
//
setStandDetain() {
setStandDetain(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1458,10 +1457,10 @@ export default {
}
});
},
setIntervalStopNumber() {
setIntervalStopNumber(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1472,10 +1471,10 @@ export default {
});
},
//
setAllocateTime() {
setAllocateTime(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1486,10 +1485,10 @@ export default {
});
},
//
authorizeTransfer() {
authorizeTransfer(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1499,10 +1498,10 @@ export default {
}
});
},
showStandDetail() {
showStandDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1512,10 +1511,10 @@ export default {
}
});
},
setSwitchCommand() {
setSwitchCommand(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1526,10 +1525,10 @@ export default {
});
},
//
setBlockSwitch() {
setBlockSwitch(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Switch.block.button.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1541,10 +1540,10 @@ export default {
});
},
//
setUnblockSwitch() {
setUnblockSwitch(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Switch.unblock.button.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1555,10 +1554,10 @@ export default {
});
},
//
setSwitchActive() {
setSwitchActive(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) =>{
if (valid) {
@ -1569,10 +1568,10 @@ export default {
});
},
//
showSwitchDetail() {
showSwitchDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1583,10 +1582,10 @@ export default {
});
},
//
setSignalGuide() {
setSignalGuide(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1597,10 +1596,10 @@ export default {
}
});
},
setSignalCanBlock() {
setSignalCanBlock(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1612,10 +1611,10 @@ export default {
});
},
//
setRouteCommand() {
setRouteCommand(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1625,10 +1624,10 @@ export default {
}
});
},
handleOpenSection() {
handleOpenSection(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Section.unlock.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1638,10 +1637,10 @@ export default {
}
});
},
handleCloseSection() {
handleCloseSection(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Section.lock.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1651,10 +1650,10 @@ export default {
}
});
},
handleLimitSpeed() {
handleLimitSpeed(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1664,10 +1663,10 @@ export default {
}
});
},
handleSectionShow() {
handleSectionShow(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1677,10 +1676,10 @@ export default {
}
});
},
handleLock() {
handleLock(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1690,10 +1689,10 @@ export default {
}
});
},
handleUnLock() {
handleUnLock(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1703,10 +1702,10 @@ export default {
}
});
},
handleRestoration() {
handleRestoration(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1716,10 +1715,10 @@ export default {
}
});
},
handleSectionRestoration() {
handleSectionRestoration(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1729,10 +1728,10 @@ export default {
}
});
},
setSignalModel() {
setSignalModel(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1742,10 +1741,10 @@ export default {
}
});
},
handleSectionStopShow() {
handleSectionStopShow(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1755,10 +1754,10 @@ export default {
}
});
},
setSignalBlock() {
setSignalBlock(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Signal.lock.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1768,10 +1767,10 @@ export default {
}
});
},
setSignalCancelBlock() {
setSignalCancelBlock(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Signal.unlock.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1781,10 +1780,10 @@ export default {
}
});
},
showSignalDetail() {
showSignalDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1794,10 +1793,10 @@ export default {
}
});
},
setCbtcMode() {
setCbtcMode(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Command.mBar.cbtcMode.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1807,10 +1806,10 @@ export default {
}
});
},
setReserveMode() {
setReserveMode(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Command.mBar.reserveMode.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1820,10 +1819,10 @@ export default {
}
});
},
setSystemDetain() {
setSystemDetain(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1834,10 +1833,10 @@ export default {
}
});
},
setRunningInterval() {
setRunningInterval(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1847,10 +1846,10 @@ export default {
}
});
},
adjustStrategy() {
adjustStrategy(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1860,10 +1859,10 @@ export default {
}
});
},
setTrainDepart() {
setTrainDepart(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Train.setTrainDeparture.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1873,10 +1872,10 @@ export default {
}
});
},
breakAway() {
breakAway(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Train.breakAwayPlan.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1886,10 +1885,10 @@ export default {
}
});
},
setTrainReset() {
setTrainReset(item) {
const operate = {
type: 'bar',
operation: OperationEvent.Train.setTrainReset.menu.operation
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1899,10 +1898,10 @@ export default {
}
});
},
setJumpStop() {
setJumpStop(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -1912,10 +1911,10 @@ export default {
}
});
},
cancelDeviation() {
cancelDeviation(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1925,10 +1924,10 @@ export default {
}
});
},
updateDeviation() {
updateDeviation(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1938,10 +1937,10 @@ export default {
}
});
},
cancelCbtcRoute() {
cancelCbtcRoute(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1951,10 +1950,10 @@ export default {
}
});
},
setIdAssociated() {
setIdAssociated(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1964,10 +1963,10 @@ export default {
}
});
},
setOccupancyCorrelation() {
setOccupancyCorrelation(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1977,10 +1976,10 @@ export default {
}
});
},
modifyTrainNumber() {
modifyTrainNumber(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -1990,10 +1989,10 @@ export default {
}
});
},
setRunType() {
setRunType(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -2003,10 +2002,10 @@ export default {
}
});
},
showTrainDetail() {
showTrainDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
@ -2016,10 +2015,10 @@ export default {
}
});
},
showAllTrainDetail() {
showAllTrainDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {
@ -2029,10 +2028,10 @@ export default {
}
});
},
showRouteDetail() {
showRouteDetail(item) {
const operate = {
type: 'bar',
operation: ''
operation: item.operation
};
this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
if (valid) {

File diff suppressed because it is too large Load Diff

View File

@ -363,7 +363,7 @@ export default {
},
setStationControl() {
//
commitOperate(menuOperate.StationControl.requestStationControl, {stationCodes:[this.selected.code]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.requestStationControl, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/pushRequestList', {
@ -377,7 +377,7 @@ export default {
},
setCenterControl() {
//
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCodes:[this.selected.code]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.requestCentralControl, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/pushRequestList', {
@ -391,7 +391,7 @@ export default {
},
setEmergencyControl() {
//
commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCodes:[this.selected.code]}, 0).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.emergencyStationControl, {stationCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/pushRequestList', {