调整综合演练顶部菜单判断,增加哈尔滨项目 行调设备登陆显示指令模式
This commit is contained in:
parent
5b92e9125d
commit
31be09323b
@ -220,7 +220,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -229,7 +231,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -249,8 +251,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -282,8 +284,11 @@ export default {
|
|||||||
|
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = [...this.menuForce];
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
// ...this.menuSpeed
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.menu = menuConvert(this.menu);
|
// this.menu = menuConvert(this.menu);
|
||||||
@ -322,8 +327,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -338,8 +343,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -349,9 +354,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -361,9 +366,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -373,7 +378,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const operate = {
|
const operate = {
|
||||||
|
@ -133,7 +133,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -142,7 +144,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -162,8 +164,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -191,7 +193,11 @@ export default {
|
|||||||
this.menu = MenuContextHandler.covert(this.menuNormal);
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = [...this.menuForce, ...this.menuSpeed];
|
this.menu = [...this.menuForce, ...this.menuDirective, ...this.menuSpeed];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.menu = menuConvert(this.menu);
|
// this.menu = menuConvert(this.menu);
|
||||||
@ -229,8 +235,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -245,8 +251,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -256,9 +262,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -268,9 +274,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -280,7 +286,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const operate = {
|
const operate = {
|
||||||
|
@ -116,7 +116,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -125,7 +127,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -145,8 +147,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -173,7 +175,11 @@ export default {
|
|||||||
this.menu = MenuContextHandler.covert(this.menuNormal);
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = this.menuForce;
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -209,8 +215,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -225,8 +231,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -236,9 +242,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -248,9 +254,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -260,7 +266,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const operate = {
|
const operate = {
|
||||||
|
@ -125,7 +125,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -134,7 +136,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -154,8 +156,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -182,7 +184,11 @@ export default {
|
|||||||
this.menu = MenuContextHandler.covert(this.menuNormal);
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = this.menuForce;
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -219,8 +225,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -235,8 +241,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -246,9 +252,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -258,9 +264,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -270,7 +276,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const step = {
|
const step = {
|
||||||
|
@ -93,7 +93,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -102,7 +104,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -123,8 +125,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -164,8 +166,11 @@ export default {
|
|||||||
|
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = [...this.menuForce];
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
// ...this.menuSpeed
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -202,8 +207,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -218,8 +223,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -229,9 +234,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -241,9 +246,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -253,7 +258,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const step = {
|
const step = {
|
||||||
|
@ -64,7 +64,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -73,7 +75,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -94,8 +96,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -123,10 +125,13 @@ export default {
|
|||||||
if (this.operatemode === OperateMode.ADMIN) {
|
if (this.operatemode === OperateMode.ADMIN) {
|
||||||
this.menu = [...this.menu, ...this.menuForce, ...this.menuSpeed];
|
this.menu = [...this.menu, ...this.menuForce, ...this.menuSpeed];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = [...this.menuForce];
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -179,7 +184,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
nextStation() {
|
nextStation() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -191,7 +196,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
routeBlockRun() {
|
routeBlockRun() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -201,9 +206,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -213,9 +218,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -225,7 +230,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// // 添加列车识别号
|
// // 添加列车识别号
|
||||||
// addTrainId() {
|
// addTrainId() {
|
||||||
// const step = {
|
// const step = {
|
||||||
@ -326,8 +331,8 @@ export default {
|
|||||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
// this.$refs.trainSwitch.doShow(step, this.selected);
|
// this.$refs.trainSwitch.doShow(step, this.selected);
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -211,7 +211,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -280,7 +282,11 @@ export default {
|
|||||||
this.menu = MenuContextHandler.covert(this.menuNormal);
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = this.menuForce;
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
|
@ -114,7 +114,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -122,8 +124,8 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -176,11 +178,13 @@ export default {
|
|||||||
if (this.operatemode === OperateMode.ADMIN) {
|
if (this.operatemode === OperateMode.ADMIN) {
|
||||||
this.menu = [...this.menu, ...this.menuForce];
|
this.menu = [...this.menu, ...this.menuForce];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = [...this.menuForce];
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
// ...this.menuSpeed
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -387,9 +391,9 @@ export default {
|
|||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
// },
|
// },
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -399,9 +403,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -411,7 +415,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
undeveloped() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
@ -222,7 +222,9 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage
|
handler: this.cancelStoppage
|
||||||
},
|
}
|
||||||
|
],
|
||||||
|
menuDirective: [
|
||||||
{
|
{
|
||||||
label: '确认运行至前方站',
|
label: '确认运行至前方站',
|
||||||
handler: this.nextStation
|
handler: this.nextStation
|
||||||
@ -231,7 +233,7 @@ export default {
|
|||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '越引导信号行驶',
|
label: '越引导信号行驶',
|
||||||
handler: this.handleOverFuideSignal
|
handler: this.handleOverFuideSignal
|
||||||
},
|
},
|
||||||
@ -251,8 +253,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('training', [
|
...mapGetters('training', [
|
||||||
'mode',
|
'mode',
|
||||||
'operatemode',
|
'operatemode',
|
||||||
'memberList'
|
'memberList'
|
||||||
]),
|
]),
|
||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
@ -281,7 +283,11 @@ export default {
|
|||||||
}
|
}
|
||||||
// 故障模式菜单列表
|
// 故障模式菜单列表
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
this.menu = this.menuForce;
|
this.menu = [...this.menuForce, ...this.menuDirective];
|
||||||
|
}
|
||||||
|
// 指令模式列表
|
||||||
|
if (this.operatemode === OperateMode.DIRECTIVE) {
|
||||||
|
this.menu = [...this.menuDirective];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
@ -319,8 +325,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.nextStation, { code: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.nextStation, { code: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Ahead',
|
commandType: 'Drive_Ahead',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -335,8 +341,8 @@ export default {
|
|||||||
// commitOperate(menuOperate.Train.routeBlockRun, { code: this.selected.code }, 3).then(({valid, operate})=>{
|
// commitOperate(menuOperate.Train.routeBlockRun, { code: this.selected.code }, 3).then(({valid, operate})=>{
|
||||||
// }).catch((error) => {
|
// }).catch((error) => {
|
||||||
// this.$refs.noticeInfo.doShow(error.message);
|
// this.$refs.noticeInfo.doShow(error.message);
|
||||||
// });
|
// });
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Route_Block_Drive',
|
commandType: 'Route_Block_Drive',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -346,9 +352,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -358,9 +364,9 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
@ -370,7 +376,7 @@ export default {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 限速行驶
|
// 限速行驶
|
||||||
limitSpeed() {
|
limitSpeed() {
|
||||||
const operate = {
|
const operate = {
|
||||||
|
@ -47,7 +47,8 @@ export const TrainingMode = {
|
|||||||
export const OperateMode = {
|
export const OperateMode = {
|
||||||
ADMIN: '00',
|
ADMIN: '00',
|
||||||
NORMAL: '01',
|
NORMAL: '01',
|
||||||
FAULT: '02'
|
FAULT: '02',
|
||||||
|
DIRECTIVE: '03'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,12 +15,10 @@
|
|||||||
<!-- 运行图加载 -->
|
<!-- 运行图加载 -->
|
||||||
<el-button v-if="notScript && runing" size="small" :disabled="viewDisabled" @click="viewRunPlan">{{ $t('display.schema.previewRunDiagram') }}</el-button>
|
<el-button v-if="notScript && runing" size="small" :disabled="viewDisabled" @click="viewRunPlan">{{ $t('display.schema.previewRunDiagram') }}</el-button>
|
||||||
<el-button v-if="notScript && !runing" size="small" type="warning" @click="loadRunPlan">{{ $t('display.schema.loadRunDiagram') }}</el-button>
|
<el-button v-if="notScript && !runing" size="small" type="warning" @click="loadRunPlan">{{ $t('display.schema.loadRunDiagram') }}</el-button>
|
||||||
<el-button v-if="mode==OperateMode.FAULT" size="small" type="danger" @click="setFault">自动故障设置</el-button>
|
<el-button v-if="faultMode" size="small" type="danger" @click="setFault">自动故障设置</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<el-radio-group v-if="!isScheduling" v-model="mode" size="small" @change="changeOperateMode(mode)">
|
<el-button v-if="!isScheduling" size="small" :type="faultMode ? 'danger' : ''" @click="changeOperateMode()">故障模式</el-button>
|
||||||
<el-radio-button class="mode" :label="OperateMode.NORMAL">{{ $t('display.schema.normalOperation') }}</el-radio-button>
|
<!-- <el-button v-if="!isLocalStation" size="small" :type="faultMode ? 'danger' : ''" @click="changeDirectiveMode()">指令模式</el-button> -->
|
||||||
<el-radio-button class="mode" :label="OperateMode.FAULT">故障模式</el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<fault-choose v-if="isDemon || isScript" ref="faultChoose" :group="group" :offset="offset" />
|
<fault-choose v-if="isDemon || isScript" ref="faultChoose" :group="group" :offset="offset" />
|
||||||
@ -89,6 +87,7 @@ export default {
|
|||||||
swch: '02',
|
swch: '02',
|
||||||
showStationContent:'',
|
showStationContent:'',
|
||||||
isScriptCommand:false,
|
isScriptCommand:false,
|
||||||
|
faultMode: false,
|
||||||
swchList: [
|
swchList: [
|
||||||
{ value: '01', name: '现地' },
|
{ value: '01', name: '现地' },
|
||||||
{ value: '02', name: '行调' }
|
{ value: '02', name: '行调' }
|
||||||
@ -176,9 +175,22 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changeOperateMode(handle) {
|
changeOperateMode() {
|
||||||
this.$store.dispatch('training/changeOperateMode', { mode: handle });
|
this.faultMode = !this.faultMode;
|
||||||
|
let mode = OperateMode.NORMAL;
|
||||||
|
if (this.faultMode) {
|
||||||
|
mode = OperateMode.FAULT;
|
||||||
|
}
|
||||||
|
this.$store.dispatch('training/changeOperateMode', { mode: mode });
|
||||||
},
|
},
|
||||||
|
// changeDirectiveMode() { // 调整指令模式 (暂时不使用 等项目更新 在使用)
|
||||||
|
// this.directiveMode = !this.directiveMode;
|
||||||
|
// let mode = OperateMode.NORMAL;
|
||||||
|
// if (this.directiveMode) {
|
||||||
|
// mode = OperateMode.DIRECTIVE;
|
||||||
|
// }
|
||||||
|
// this.$store.dispatch('training/changeOperateMode', { mode: mode });
|
||||||
|
// },
|
||||||
setRuning(run) {
|
setRuning(run) {
|
||||||
this.runing = run;
|
this.runing = run;
|
||||||
},
|
},
|
||||||
|
@ -12,18 +12,12 @@
|
|||||||
{{ $t('joinTraining.runGraphLoading') }}</el-button><!-- 运行图加载 -->
|
{{ $t('joinTraining.runGraphLoading') }}</el-button><!-- 运行图加载 -->
|
||||||
</template>
|
</template>
|
||||||
<template v-if="isAdmin">
|
<template v-if="isAdmin">
|
||||||
<el-button v-if="mode==OperateMode.FAULT && !dataError" size="small" type="danger" @click="setFault">{{ $t('joinTraining.faultSetting') }}</el-button>
|
<el-button v-if="faultMode && !dataError" size="small" type="danger" @click="setFault">{{ $t('joinTraining.faultSetting') }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<el-radio-group
|
<el-button v-if="isAdmin && !dataError && !isScreen" size="small" :type="faultMode ? 'danger' : ''" @click="changeOperateMode()">故障模式</el-button>
|
||||||
v-if="isAdmin && !dataError && !isScreen"
|
<!-- isCenter && !dataError && !isAdmin 此判断用于以后(目前 暂时不用) -->
|
||||||
v-model="mode"
|
<el-button v-if="isShowDirective" size="small" :type="directiveMode ? 'primary' : ''" @click="changeDirectiveMode()">指令模式</el-button>
|
||||||
size="small"
|
|
||||||
@change="changeOperateMode(mode)"
|
|
||||||
>
|
|
||||||
<el-radio-button class="mode" :label="OperateMode.NORMAL">{{ $t('joinTraining.normalOperation') }}</el-radio-button>
|
|
||||||
<el-radio-button class="mode" :label="OperateMode.FAULT">{{ $t('joinTraining.faultOperation') }}</el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</div>
|
</div>
|
||||||
<join-run-plan-view v-if="runing && !dataError" ref="runPlanView" :group="group" />
|
<join-run-plan-view v-if="runing && !dataError" ref="runPlanView" :group="group" />
|
||||||
</div>
|
</div>
|
||||||
@ -34,6 +28,7 @@ import { mapGetters } from 'vuex';
|
|||||||
import { OperateMode } from '@/scripts/ConstDic';
|
import { OperateMode } from '@/scripts/ConstDic';
|
||||||
import { getByGroupStationList } from '@/api/jmap/map';
|
import { getByGroupStationList } from '@/api/jmap/map';
|
||||||
import { getEveryDayRunPlanNew } from '@/api/simulation';
|
import { getEveryDayRunPlanNew } from '@/api/simulation';
|
||||||
|
import { getSessionStorage } from '@/utils/auth';
|
||||||
import JoinRunPlanView from '@/views/newMap/displayNew/demon/runPlanView';
|
import JoinRunPlanView from '@/views/newMap/displayNew/demon/runPlanView';
|
||||||
export default {
|
export default {
|
||||||
name: 'MenuDemonSchema',
|
name: 'MenuDemonSchema',
|
||||||
@ -89,7 +84,9 @@ export default {
|
|||||||
kmRangeCoordMap: {},
|
kmRangeCoordMap: {},
|
||||||
runPlanData: {},
|
runPlanData: {},
|
||||||
runing: false,
|
runing: false,
|
||||||
userId: ''
|
userId: '',
|
||||||
|
faultMode: false,
|
||||||
|
directiveMode: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -98,6 +95,12 @@ export default {
|
|||||||
]),
|
]),
|
||||||
isScreen() {
|
isScreen() {
|
||||||
return this.$store.state.training.prdType === '07';
|
return this.$store.state.training.prdType === '07';
|
||||||
|
},
|
||||||
|
isCenter() {
|
||||||
|
return this.$store.state.training.prdType === '02';
|
||||||
|
},
|
||||||
|
isShowDirective() { // 哈尔滨项目 行调设备显示
|
||||||
|
return this.$route.query.type == 'CW' && getSessionStorage('project') == 'heb';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -147,8 +150,21 @@ export default {
|
|||||||
// initPlannedDriving(isDisable) {
|
// initPlannedDriving(isDisable) {
|
||||||
// this.isDisable = isDisable;
|
// this.isDisable = isDisable;
|
||||||
// },
|
// },
|
||||||
changeOperateMode(handle) {
|
changeOperateMode() {
|
||||||
this.$store.dispatch('training/changeOperateMode', { mode: handle });
|
this.faultMode = !this.faultMode;
|
||||||
|
let mode = OperateMode.NORMAL;
|
||||||
|
if (this.faultMode) {
|
||||||
|
mode = OperateMode.FAULT;
|
||||||
|
}
|
||||||
|
this.$store.dispatch('training/changeOperateMode', { mode: mode });
|
||||||
|
},
|
||||||
|
changeDirectiveMode() { // 调整指令模式
|
||||||
|
this.directiveMode = !this.directiveMode;
|
||||||
|
let mode = OperateMode.NORMAL;
|
||||||
|
if (this.directiveMode) {
|
||||||
|
mode = OperateMode.DIRECTIVE;
|
||||||
|
}
|
||||||
|
this.$store.dispatch('training/changeOperateMode', { mode: mode });
|
||||||
},
|
},
|
||||||
setFault() {
|
setFault() {
|
||||||
this.$emit('faultChooseShow');
|
this.$emit('faultChooseShow');
|
||||||
|
Loading…
Reference in New Issue
Block a user