From 97320237c36ae9eedf8c8ee6e822467ee53f49a5 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Wed, 24 Jun 2020 18:38:46 +0800
Subject: [PATCH 01/24] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=B8=89=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E9=81=93=E5=B2=94=E6=B7=BB=E5=8A=A0=20=E9=81=93?=
=?UTF-8?q?=E5=B2=94=E9=92=A9=E9=94=81=E6=93=8D=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../theme/components/utils/menuOperate.js | 5 +
.../xian_01/menus/dialog/switchHookLock.vue | 156 ++++++++++++++++++
.../theme/xian_01/menus/menuSwitch.vue | 22 +++
src/scripts/cmdPlugin/CommandEnum.js | 4 +-
src/scripts/cmdPlugin/OperationHandler.js | 15 ++
5 files changed, 201 insertions(+), 1 deletion(-)
create mode 100644 src/jmapNew/theme/xian_01/menus/dialog/switchHookLock.vue
diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js
index b3b834b51..e43dc5796 100644
--- a/src/jmapNew/theme/components/utils/menuOperate.js
+++ b/src/jmapNew/theme/components/utils/menuOperate.js
@@ -210,6 +210,11 @@ export const menuOperate = {
// 计轴预复位
operation: OperationEvent.Switch.axlePreReset.menu.operation,
cmdType: CMD.Switch.CMD_SWITCH_AXIS_PRE_RESET
+ },
+ hookLock:{
+ // 道岔钩锁
+ operation: OperationEvent.Switch.hookLock.menu.operation,
+ cmdType: CMD.Switch.CMD_SWITCH_HOOK_LOCK
}
},
StationStand:{
diff --git a/src/jmapNew/theme/xian_01/menus/dialog/switchHookLock.vue b/src/jmapNew/theme/xian_01/menus/dialog/switchHookLock.vue
new file mode 100644
index 000000000..e1ab8b36b
--- /dev/null
+++ b/src/jmapNew/theme/xian_01/menus/dialog/switchHookLock.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
钩锁位置
+
+
+ 定位
+ 反位
+
+
+
+
+
+ 确定
+
+
+ 取 消
+
+
+
+
+
+
diff --git a/src/jmapNew/theme/xian_01/menus/menuSwitch.vue b/src/jmapNew/theme/xian_01/menus/menuSwitch.vue
index c1c766dbb..1b76db36b 100644
--- a/src/jmapNew/theme/xian_01/menus/menuSwitch.vue
+++ b/src/jmapNew/theme/xian_01/menus/menuSwitch.vue
@@ -4,6 +4,7 @@
+
@@ -15,11 +16,13 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import SwitchCmdControl from './dialog/switchCmdControl';
import SpeedCmdControl from './dialog/speedCmdControl';
+import SwitchHookLock from './dialog/switchHookLock';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
+
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
export default {
@@ -30,6 +33,7 @@ export default {
SwitchCmdControl,
SpeedCmdControl,
NoticeInfo,
+ SwitchHookLock,
SetFault
},
props: {
@@ -99,6 +103,11 @@ export default {
label: '道岔取消限速',
handler: this.cancelSpeed,
cmdType:CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED
+ },
+ {
+ label: '道岔钩锁',
+ handler: this.hookLock,
+ cmdType:CMD.Switch.CMD_SWITCH_HOOK_LOCK
}
],
Center: [
@@ -151,6 +160,11 @@ export default {
label: '取消限速',
handler: this.cancelSpeed,
cmdType:CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED
+ },
+ {
+ label: '道岔钩锁',
+ handler: this.hookLock,
+ cmdType:CMD.Switch.CMD_SWITCH_HOOK_LOCK
}
]
},
@@ -319,6 +333,14 @@ export default {
this.$refs.speedCmdControl.doShow(operate, this.selected);
}
});
+ },
+ // 道岔钩锁
+ hookLock() {
+ commitOperate(menuOperate.Switch.hookLock, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
+ if (valid) {
+ this.$refs.switchHookLock.doShow(operate, this.selected);
+ }
+ });
}
}
};
diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js
index 165da3044..e6eea90a0 100644
--- a/src/scripts/cmdPlugin/CommandEnum.js
+++ b/src/scripts/cmdPlugin/CommandEnum.js
@@ -45,7 +45,9 @@ export default {
/** 道岔区段封锁 */
CMD_SWITCH_SECTION_BLOCK: {value: 'Switch_Section_Block', label: '道岔区段封锁'},
/** 道岔区段解封 */
- CMD_SWITCH_SECTION_UNBLOCK: {value: 'Switch_Section_Unblock', label: '道岔区段解封'}
+ CMD_SWITCH_SECTION_UNBLOCK: {value: 'Switch_Section_Unblock', label: '道岔区段解封'},
+ /** 道岔钩锁 **/
+ CMD_SWITCH_HOOK_LOCK:{value:'Switch_Hook_Lock', label:'道岔钩锁'}
},
// 控制模式操作
diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js
index 0ec11058f..bb9951369 100644
--- a/src/scripts/cmdPlugin/OperationHandler.js
+++ b/src/scripts/cmdPlugin/OperationHandler.js
@@ -541,6 +541,21 @@ export const OperationEvent = {
operation: '1174',
domId: '_Tips-Switch-Alxe-Effective-Confirm-2'
}
+ },
+ // 道岔钩锁
+ hookLock:{
+ menu: {
+ operation: '118',
+ domId: '_Tips-Switch-Hook-Lock'
+ },
+ choose1: {
+ operation: '1181',
+ domId: '_Tips-Switch-Hook-Lock-Choose-1'
+ },
+ confirm: {
+ operation: '1182',
+ domId: '_Tips-Switch-Hook-Lock-Confirm'
+ }
}
},
From b5a22e2dd1397d4c7fb7fa892d0a49c8d79b29ba Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Wed, 24 Jun 2020 18:39:49 +0800
Subject: [PATCH 02/24] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=9B=E5=B1=B1?=
=?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=AE=9A=E4=B9=89=E6=93=8D=E4=BD=9C=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../foshan_01/menus/dialog/switchUnLock.vue | 28 +++++++++++--
.../theme/foshan_01/operationConfig.js | 41 +++++++------------
2 files changed, 39 insertions(+), 30 deletions(-)
diff --git a/src/jmapNew/theme/foshan_01/menus/dialog/switchUnLock.vue b/src/jmapNew/theme/foshan_01/menus/dialog/switchUnLock.vue
index f9fee96fd..d00c91b50 100644
--- a/src/jmapNew/theme/foshan_01/menus/dialog/switchUnLock.vue
+++ b/src/jmapNew/theme/foshan_01/menus/dialog/switchUnLock.vue
@@ -89,16 +89,36 @@ export default {
return this.dialogShow && !this.$store.state.menuOperation.break;
},
domIdChoose() {
- return this.dialogShow ? OperationEvent.Switch.unlock.choose.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.choose.domId; // 道岔解锁
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.choose.domId; // 道岔解封
+ }
+ return '';
},
confirmId1() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm1.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm1.domId; // 道岔解锁
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm1.domId; // 道岔解封
+ }
+ return '';
},
confirmId2() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm2.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm2.domId; // 道岔解锁
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm2.domId; // 道岔解封
+ }
+ return '';
},
domIdConfirm() {
- return this.dialogShow ? OperationEvent.Switch.unlock.confirm.domId : '';
+ if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
+ return OperationEvent.Switch.unlock.confirm.domId; // 道岔解锁
+ } else if (this.operation == OperationEvent.Switch.unblock.menu.operation) {
+ return OperationEvent.Switch.unblock.confirm.domId; // 道岔解封
+ }
+ return '';
},
title() {
if (this.operation == OperationEvent.Switch.unlock.menu.operation) {
diff --git a/src/jmapNew/theme/foshan_01/operationConfig.js b/src/jmapNew/theme/foshan_01/operationConfig.js
index 16051d026..b9caa7f5e 100644
--- a/src/jmapNew/theme/foshan_01/operationConfig.js
+++ b/src/jmapNew/theme/foshan_01/operationConfig.js
@@ -213,7 +213,7 @@ export default {
{ deviceType: '06', orderNum: 4, operateCode: '510', tip: '鼠标左键点击【确认】按钮' }
]
},
- { // 无法生成实训
+ { // 暂不生成实训
maxDuration: 15,
minDuration: 8,
operateType:CMD.Stand.CMD_STAND_EARLY_DEPART.value,
@@ -276,10 +276,10 @@ export default {
]
},
- { // 无法生成实训
+ {
maxDuration: 15,
minDuration: 8,
- operateType:CMD.Switch.CMD_SWITCH_CUT_OFF.value,
+ operateType:CMD.Switch.CMD_SWITCH_BLOCK.value,
skinCode: '08',
trainingName: '道岔封闭({7} 道岔)',
trainingRemark: '道岔封闭功能',
@@ -290,10 +290,10 @@ export default {
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' }
]
},
- { // 无法生成实训
+ {
maxDuration: 15,
minDuration: 8,
- operateType:CMD.Switch.CMD_SWITCH_ACTIVE.value,
+ operateType:CMD.Switch.CMD_SWITCH_UNBLOCK.value,
skinCode: '08',
trainingName: '道岔解封({7} 道岔)',
trainingRemark: '道岔解封功能',
@@ -301,13 +301,16 @@ export default {
productTypes: ['02'],
stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔解封】' },
- { deviceType: '02', orderNum: 2, operateCode: '106', tip: '鼠标左键点击【确定】按钮' }
+ { deviceType: '02', orderNum: 2, operateCode: '1063', tip: '鼠标左键点击【确定】'},
+ { deviceType: '02', orderNum: 3, operateCode: '1066', tip: '鼠标左键点击【{7}】', val: '{17}'},
+ { deviceType: '02', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确定】'},
+ { deviceType: '02', orderNum: 5, operateCode: '1062', tip: '鼠标左键点击【关闭】'}
]
},
- { // 无法生成实训
+ {
maxDuration: 15,
minDuration: 8,
- operateType:CMD.Switch.CMD_SWITCH_CUT_OFF.value,
+ operateType:CMD.Switch.CMD_SWITCH_BLOCK.value,
skinCode: '08',
trainingName: '道岔封闭({7} 道岔)',
trainingRemark: '道岔封闭功能',
@@ -318,10 +321,10 @@ export default {
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【道岔】', codeType:'SWITCH' }
]
},
- { // 无法生成实训
+ {
maxDuration: 15,
minDuration: 8,
- operateType:CMD.Switch.CMD_SWITCH_ACTIVE.value,
+ operateType:CMD.Switch.CMD_SWITCH_UNBLOCK.value,
skinCode: '08',
trainingName: '道岔解封({7} 道岔)',
trainingRemark: '道岔解封功能',
@@ -477,7 +480,7 @@ export default {
{ deviceType: '04', orderNum: 2, operateCode: '303', tip: '鼠标左键点击【确定】按钮' }
]
},
- { // 生成实训步骤有问题
+ {
maxDuration: 8,
minDuration: 5,
operateType:CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE.value,
@@ -549,7 +552,7 @@ export default {
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' }
]
},
- { // 无法生成实训
+ { // 暂不生成实训
maxDuration: 8,
minDuration: 5,
operateType:CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE.value,
@@ -605,19 +608,5 @@ export default {
{ deviceType: '04', orderNum: 2, operateCode: '312', tip: '鼠标左键点击【确定】按钮' }
]
}
- // {
- // maxDuration: 8,
- // minDuration: 5,
- // operateType:CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE.value,
- // skinCode: '08',
- // trainingName: '总取消({3} 进路)',
- // trainingRemark: '总取消',
- // trainingType:'Signal',
- // productTypes: ['01'],
- // stepVOList: [
- // { deviceType: '04', orderNum: 1, operateCode: '2994', tip: '鼠标左键点击【总取消】' },
- // { deviceType: '04', orderNum: 2, operateCode: '2294', tip: '鼠标左键点击选择该信号机', codeType:'SIGNAL'}
- // ]
- // }
]
};
From dea44817839089e052d94c634a1b7c41350dbb92 Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Sun, 28 Jun 2020 10:38:34 +0800
Subject: [PATCH 03/24] =?UTF-8?q?=E5=8C=97=E4=BA=AC=E4=B8=80=E5=8F=B7?=
=?UTF-8?q?=E7=BA=BF=E7=8E=B0=E5=9C=B0=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/theme/beijing_01/menus/menuBar.vue | 12 ++++++++----
src/jmapNew/theme/beijing_01/menus/menuButton.vue | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/jmapNew/theme/beijing_01/menus/menuBar.vue b/src/jmapNew/theme/beijing_01/menus/menuBar.vue
index bcbd910fa..e48eae102 100644
--- a/src/jmapNew/theme/beijing_01/menus/menuBar.vue
+++ b/src/jmapNew/theme/beijing_01/menus/menuBar.vue
@@ -110,6 +110,8 @@ import ManageUser from './menuDialog/manageUser';
import HelpAbout from './menuDialog/helpAbout';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import { EventBus } from '@/scripts/event-bus';
+import { State2SimulationMap } from '@/scripts/cmdPlugin/Config';
+import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
export default {
name: 'MenuBar',
@@ -141,7 +143,7 @@ export default {
valid: true,
menu: [],
menuNormal: {
- local: [
+ Local: [
{
title: '系统',
operate: OperationEvent.Command.mBar.system,
@@ -386,7 +388,7 @@ export default {
]
}
],
- central: [
+ Center: [
{
title: '系统',
operate: OperationEvent.Command.mBar.system,
@@ -699,8 +701,10 @@ export default {
return list;
},
initMenu(menu) {
- if (this.menu[2]) {
- this.menu[2].children = this.initStationList();
+ const type = State2SimulationMap[this.$store.state.training.prdType];
+ this.menu = MenuContextHandler.menuBarConvert(this.menuNormal[type], this.$store.state.training.operatemode);
+ if (this.menu[3]) {
+ this.menu[3].children = this.initStationList();
}
this.clickEvent();
this.closeMenu(true);
diff --git a/src/jmapNew/theme/beijing_01/menus/menuButton.vue b/src/jmapNew/theme/beijing_01/menus/menuButton.vue
index a03bfa71c..d8c2e523d 100644
--- a/src/jmapNew/theme/beijing_01/menus/menuButton.vue
+++ b/src/jmapNew/theme/beijing_01/menus/menuButton.vue
@@ -1,5 +1,5 @@
-
+