From b8fde7dd7452b85f89ec20623fb29a59b7dd12c5 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 22 Dec 2020 15:18:10 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=98=E5=9B=BE?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4=20=E6=88=90=E9=83=BD?= =?UTF-8?q?=E4=B8=89=E5=8F=B7=E7=BA=BF=20=E8=A1=8C=E8=B0=83=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=AB=99=20=E6=8C=87=E4=BB=A4=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/shape/Line/index.js | 7 ------- .../menus/dialog/routeHandControl.vue | 2 +- .../theme/chengdu_03/menus/menuSignal.vue | 7 +++++-- .../theme/chengdu_03/menus/menuStationStand.vue | 2 +- .../theme/chengdu_03/menus/menuTrain.vue | 1 - .../components/menus/dialog/routeControl.vue | 17 +++++++++-------- 6 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/jmapNew/shape/Line/index.js b/src/jmapNew/shape/Line/index.js index 8ff14a647..f6f13d4c6 100644 --- a/src/jmapNew/shape/Line/index.js +++ b/src/jmapNew/shape/Line/index.js @@ -42,7 +42,6 @@ export default class Line2 extends Group { } }); this.add(this.segment); - console.log(model.points); } } @@ -55,12 +54,6 @@ export default class Line2 extends Group { } } - getBoundingRect() { - if (this.segment) { - return this.segment.getBoundingRect().clone(); - } - } - setState(model) { if (!this.isShowShape) return; this.setLineType(model.type); diff --git a/src/jmapNew/theme/chengdu_03/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/chengdu_03/menus/dialog/routeHandControl.vue index 47280b180..a9736ae94 100644 --- a/src/jmapNew/theme/chengdu_03/menus/dialog/routeHandControl.vue +++ b/src/jmapNew/theme/chengdu_03/menus/dialog/routeHandControl.vue @@ -116,7 +116,7 @@ export default { }, title() { if (this.operation == OperationEvent.Signal.humanControl.menu.operation) { - return '进路交人工控'; + return '进路收人工控'; } else if (this.operation == OperationEvent.Signal.atsAutoControl.menu.operation) { return '进路交自动控'; } diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue b/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue index 9baaf3e24..9ba6d5bf9 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSignal.vue @@ -336,10 +336,13 @@ export default { this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - if (data.operation === OperationEvent.Signal.guide.menu.operation) { + switch (data.operation) { + case OperationEvent.Signal.guide.menu.operation: this.$refs.routeGuide.doShow(data, data.selected, data.routesList); - } else if (data.operation === OperationEvent.Signal.humanTrainRoute.menu.operation) { + break; + case OperationEvent.Signal.humanTrainRoute.menu.operation: this.$refs.routeControl.doShow(data, data.selected); + break; } } }); diff --git a/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue b/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue index 2afed3890..7e681d07b 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuStationStand.vue @@ -85,7 +85,7 @@ export default { cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME }, { - label: '属性', + label: '显示站台信息', handler: this.detail, cmdType: CMD.Stand.CMD_STAND_VIEW_STATUS } diff --git a/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue b/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue index 8f46178e1..c6c2803b9 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuTrain.vue @@ -187,7 +187,6 @@ export default { this.menu = [...this.menuDirective]; } } - }, doShow(point) { this.clickEvent(); diff --git a/src/jmapNew/theme/components/menus/dialog/routeControl.vue b/src/jmapNew/theme/components/menus/dialog/routeControl.vue index b122c7831..4a9b5d40e 100644 --- a/src/jmapNew/theme/components/menus/dialog/routeControl.vue +++ b/src/jmapNew/theme/components/menus/dialog/routeControl.vue @@ -262,14 +262,15 @@ export default { }, // 信号封锁 lock() { - switch (this.popClass) { - case 'chengdou-03__systerm': - this.sendCommandNext(menuOperate.Signal.lock).then(operate => { - this.$refs.password.doShow(operate); - }); - break; - default: this.sendCommand(menuOperate.Signal.lock); - } + // switch (this.popClass) { + // case 'chengdou-03__systerm': + // this.sendCommandNext(menuOperate.Signal.lock).then(operate => { + // this.$refs.password.doShow(operate); + // }); + // break; + // default: this.sendCommand(menuOperate.Signal.lock); + // } + this.sendCommand(menuOperate.Signal.lock); }, // 信号解封 unlock() { From 580c24e78586fcd9b3824f0e07858198294eab01 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 22 Dec 2020 17:08:05 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A5=BF=E5=AE=89?= =?UTF-8?q?=E4=BA=8C=E5=8F=B7=E7=BA=BF=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Switch/index.js | 3 +- .../theme/xian_02/menus/menuRequest.vue | 22 +- .../theme/xian_02/menus/menuSignal.vue | 16 +- .../theme/xian_02/menus/menuSwitch.vue | 26 +- src/jmapNew/theme/xian_02/operationConfig.js | 498 +++--------------- src/scripts/cmdPlugin/OperationHandler.js | 4 +- 6 files changed, 109 insertions(+), 460 deletions(-) diff --git a/src/jmapNew/shape/Switch/index.js b/src/jmapNew/shape/Switch/index.js index fe38cd6e5..8f3b60099 100644 --- a/src/jmapNew/shape/Switch/index.js +++ b/src/jmapNew/shape/Switch/index.js @@ -159,7 +159,8 @@ export default class Switch extends Group { _subType: 'enabled', // 标识 style: { x: nameTextX, - y: nameTextY + directy * 20, + // y: nameTextY + directy * 20, + y: nameTextY + 20, fontSize: 12, text: 'E', textAlign: 'center', diff --git a/src/jmapNew/theme/xian_02/menus/menuRequest.vue b/src/jmapNew/theme/xian_02/menus/menuRequest.vue index f1267f9b6..b828e5a5a 100644 --- a/src/jmapNew/theme/xian_02/menus/menuRequest.vue +++ b/src/jmapNew/theme/xian_02/menus/menuRequest.vue @@ -19,14 +19,14 @@ 撤销 - - +
+
发送请求 - - +
+
取消请求 - - +
+
@@ -132,7 +132,7 @@ export default { this.$store.dispatch('training/updateMapState', [deviceStatus]); } else { operate = { - send: true, + over: true, operation: eachCmd.operation.code, cmdType: eachCmd.cmdType, param: eachCmd.param // 请求栈中参数配置 @@ -168,10 +168,8 @@ export default { height: auto; position: absolute; bottom: 10px; - left: 50%; - background: #fff; + left: calc(50% - 300px); z-index: 10; - transform: translateX(-300px); background: #518E86; .title-box{ @@ -233,6 +231,8 @@ export default { } } .button-bottom-left{ + overflow: hidden; + float: left; .el-button{ width: 60px; padding: 0; @@ -247,6 +247,8 @@ export default { } } .button-bottom-right{ + overflow: hidden; + float: right; .el-button{ width: 60px; padding: 0; diff --git a/src/jmapNew/theme/xian_02/menus/menuSignal.vue b/src/jmapNew/theme/xian_02/menus/menuSignal.vue index 82b1bb97a..ffe346bbf 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSignal.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSignal.vue @@ -336,7 +336,7 @@ export default { this.resetRouteSignal(); this.$store.dispatch('menuOperation/pushRequestList', { device: this.routeData[routeCode], - operation: { code: OperationEvent.Signal.arrangementRoute.menu.operation, name: '排列进路'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '排列进路'}, cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, param: step.param }); @@ -363,7 +363,7 @@ export default { this.resetRouteSignal(); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.arrangementRoute.menu.operation, name: '取消进路'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '取消进路'}, cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, param: step.param }); @@ -388,7 +388,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号封锁'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '终端信号封锁'}, param: {signalCode: this.selected.code}, cmdType: CMD.Signal.CMD_SIGNAL_BLOCK }); @@ -414,7 +414,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.lock.menu.operation, name: '终端信号解封'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '终端信号解封'}, ciConfirm: true, param: {signalCode: this.selected.code} }); @@ -440,7 +440,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.guide.menu.operation, name: '引导信号'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '引导信号'}, cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, param: step.param }); @@ -471,7 +471,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.humanControl.menu.operation, name: '关闭自动进路'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '关闭自动进路'}, cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING, param: step.param }); @@ -503,7 +503,7 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.atsAutoControl.menu.operation, name: '开放自动进路'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '开放自动进路'}, cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING, param: step.param }); @@ -539,7 +539,7 @@ export default { enabledConfirm() { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Signal.unlock.menu.operation, name: '终端信号解封'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '终端信号解封'}, cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK, param: { signal: this.selected.code diff --git a/src/jmapNew/theme/xian_02/menus/menuSwitch.vue b/src/jmapNew/theme/xian_02/menus/menuSwitch.vue index 9379c8b3d..101f4a587 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSwitch.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSwitch.vue @@ -253,7 +253,7 @@ export default { if (valid) { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Switch.locate.menu.operation, name: '道岔定位'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '道岔定位'}, cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION, param: operate.param }); @@ -266,7 +266,7 @@ export default { if (valid) { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Switch.reverse.menu.operation, name: '道岔反位'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '道岔反位'}, cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION, param: operate.param }); @@ -280,20 +280,20 @@ export default { if (valid) { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Switch.lock.menu.operation, name: '道岔单锁'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '道岔单锁'}, cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, param: operate.param }); } }); }, - // 道岔解锁 + // 道岔单解 unlock() { commitOperate(menuOperate.Switch.unlock, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Switch.unlock.menu.operation, name: '道岔解锁'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '道岔解锁'}, // cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK, ciConfirm: true, param: operate.param @@ -317,14 +317,14 @@ export default { // } // }); // }, - // 设置临时限速 - setSpeed() { - commitOperate(menuOperate.Switch.setSpeed, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ - if (valid) { - this.$refs.speedLimitControl.doShow(operate, this.selected); - } - }); - }, + // // 设置临时限速 + // setSpeed() { + // commitOperate(menuOperate.Switch.setSpeed, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ + // if (valid) { + // this.$refs.speedLimitControl.doShow(operate, this.selected); + // } + // }); + // }, enabledConfirm() { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, diff --git a/src/jmapNew/theme/xian_02/operationConfig.js b/src/jmapNew/theme/xian_02/operationConfig.js index bafec53e0..cce4eef47 100644 --- a/src/jmapNew/theme/xian_02/operationConfig.js +++ b/src/jmapNew/theme/xian_02/operationConfig.js @@ -4,63 +4,35 @@ export default { maxDuration: 8, minDuration: 5, operateType: 'Stand_Set_Hold_Train', - skinCode: '06', + skinCode: '09', trainingName: '扣车({10}-{12} 站台)', trainingRemark: '设置扣车功能', trainingType: 'Stand', productTypes: ['01', '02'], // 产品类型 01 现地 02 行调 stepVOList: [ { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '06', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 8, minDuration: 5, operateType: 'Stand_Cancel_Hold_Train', - skinCode: '06', + skinCode: '09', trainingName: '取消扣车({10}-{12} 站台)', trainingRemark: '取消扣车功能', trainingType: 'Stand', productTypes: ['01', '02'], // 产品类型 01 现地 02 行调 stepVOList: [ { deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '06', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, // { - // maxDuration: 8, - // minDuration: 5, - // operateType: 'Stand_Set_Hold_Train_Batch', - // skinCode: '06', - // trainingName: '批量扣车({10}-{12} 站台)', - // trainingRemark: '批量扣车功能', - // trainingType: 'Stand', - // productTypes: ['02'], // 产品类型 01 现地 02 行调 - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '515', tip: '鼠标右键菜单选择【批量扣车】' }, - // { deviceType: '06', orderNum: 2, operateCode: '515', tip: '鼠标左键点击【确定】按钮' } - // ] - // }, - // { - // maxDuration: 8, - // minDuration: 5, - // operateType: 'Stand_Cancel_Hold_Train_Batch', - // skinCode: '06', - // trainingName: '取消批量扣车({10}-{12} 站台)', - // trainingRemark: '取消批量扣车功能', - // trainingType: 'Stand', - // productTypes: ['02'], // 产品类型 01 现地 02 行调 - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '516', tip: '鼠标右键菜单选择【取消批量扣车】' }, - // { deviceType: '06', orderNum: 2, operateCode: '516', tip: '鼠标左键点击【确定】按钮' } - // ] - // }, - // { // maxDuration: 15, // minDuration: 8, // operateType: 'Stand_Early_Depart', - // skinCode: '06', + // skinCode: '09', // trainingName: '提前发车({10}-{12}站台)', // trainingRemark: '提前发车功能', // trainingType: 'Stand', @@ -74,35 +46,35 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Stand_Set_Jump_Stop', - skinCode: '06', + skinCode: '09', trainingName: '设置跳停({10}-{12}站台)', trainingRemark: '设置跳停功能', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ { deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' }, - { deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '06', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Stand_Cancel_Jump_Stop', - skinCode: '06', + skinCode: '09', trainingName: '取消跳停({10}-{12}站台)', trainingRemark: '设置取消跳停功能', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ { deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' }, - { deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '06', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, // { // maxDuration: 15, // minDuration: 8, // operateType: 'Stand_Set_Park_Time', - // skinCode: '06', + // skinCode: '09', // trainingName: '设置停站时间({10}-{12}站台)', // trainingRemark: '设置停站时间(自动, 一直有效)', // trainingType: 'Stand', @@ -117,7 +89,7 @@ export default { // maxDuration: 15, // minDuration: 8, // operateType: 'Stand_Set_Park_Time', - // skinCode: '06', + // skinCode: '09', // trainingName: '设置停站时间({10}-{12}站台)', // trainingRemark: '设置停站时间(人工, 20秒, 一直有效)', // trainingType: 'Stand', @@ -133,7 +105,7 @@ export default { // maxDuration: 15, // minDuration: 8, // operateType: 'Stand_Set_Park_Time', - // skinCode: '06', + // skinCode: '09', // trainingName: '设置停站时间({10}-{12}站台)', // trainingRemark: '设置停站时间(人工, 20秒, 一次有效)', // trainingType: 'Stand', @@ -146,72 +118,11 @@ export default { // { deviceType: '06', orderNum: 5, operateCode: '509', tip: '鼠标左键点击【确认】按钮' } // ] // }, - // { - // maxDuration: 15, - // minDuration: 8, - // operateType: 'Stand_Set_Run_Time', - // skinCode: '06', - // trainingName: '设置运行等级({10}-{12} 站台)', - // trainingRemark: '设置运行等级(设置区间 运行等级1,运行时间为115,一直有效)', - // trainingType: 'Stand', - // productTypes: ['02'], - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, - // { deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击,选择【1】', val: '1' }, - // { deviceType: '06', orderNum: 3, operateCode: '5101', tip: '鼠标左键点击,选择【115】', val: '115' }, - // { deviceType: '06', orderNum: 4, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' }, - // { deviceType: '06', orderNum: 5, operateCode: '510', tip: '鼠标左键点击【确认】按钮' } - // ] - // }, - // { - // maxDuration: 15, - // minDuration: 8, - // operateType: 'Stand_Set_Run_Time', - // skinCode: '06', - // trainingName: '设置运行等级({10}-{12} 站台)', - // trainingRemark: '设置运行等级(设置区间 运行等级自动,一直有效)', - // trainingType: 'Stand', - // productTypes: ['02'], - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, - // { deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击,选择【自动】', val: '0' }, - // { deviceType: '06', orderNum: 3, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' }, - // { deviceType: '06', orderNum: 4, operateCode: '510', tip: '鼠标左键点击【确认】按钮' } - // ] - // }, - // { - // maxDuration: 15, - // minDuration: 8, - // operateType: 'Stand_Set_Hold_Train_Auto', - // skinCode: '06', - // trainingName: '区间列车数量限制({10}-{12}站台)', - // trainingRemark: '区间列车数量限制', - // trainingType: 'Stand', - // productTypes: ['02'], - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '517', tip: '鼠标右键菜单选择【区间列车数量限制】' }, - // { deviceType: '06', orderNum: 2, operateCode: '517', tip: '鼠标左键点击【确认】按钮' } - // ] - // }, - // { - // maxDuration: 15, - // minDuration: 8, - // operateType: 'Stand_Cancel_Hold_Train_Auto', - // skinCode: '06', - // trainingName: '取消区间列车数量限制({10}-{12}站台)', - // trainingRemark: '取消区间列车数量限制', - // trainingType: 'Stand', - // productTypes: ['02'], - // stepVOList: [ - // { deviceType: '06', orderNum: 1, operateCode: '518', tip: '鼠标右键菜单选择【取消区间列车数量限制】' }, - // { deviceType: '06', orderNum: 2, operateCode: '518', tip: '鼠标左键点击【确认】按钮' } - // ] - // }, { maxDuration: 8, minDuration: 5, operateType: 'Stand_View_Status', - skinCode: '06', + skinCode: '09', trainingName: '站台详细信息({10}-{12}站台)', trainingRemark: '站台详细信息功能', trainingType: 'Stand', @@ -226,7 +137,7 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Section_Fault_Unlock', - skinCode: '06', + skinCode: '09', trainingName: '区段故障解锁({8}{9})', trainingRemark: '区段故障解锁', trainingType: 'Section', @@ -243,35 +154,35 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Section_Cut_Off', - skinCode: '06', + skinCode: '09', trainingName: '区段跟踪切除({8}{9})', trainingRemark: '区段跟踪切除', trainingType: 'Section', - productTypes: ['01', '02'], + productTypes: ['01'], stepVOList: [ { deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【区段跟踪切除】' }, - { deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Section_Active', - skinCode: '06', + skinCode: '09', trainingName: '区段跟踪激活({8}{9})', trainingRemark: '区段跟踪激活功能', trainingType: 'Section', - productTypes: ['01', '02'], + productTypes: ['01'], stepVOList: [ { deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【区段跟踪激活】' }, - { deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Section_Set_Limit_Speed', - skinCode: '06', + skinCode: '09', trainingName: '设置临时限速({8}{9})', trainingRemark: '设置临时限速功能(限速值:5)', trainingType: 'Section', @@ -290,7 +201,7 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Section_Set_Limit_Speed', - skinCode: '06', + skinCode: '09', trainingName: '设置临时限速({8}{9})', trainingRemark: '设置临时限速功能-取消临时限速(限速值:不限速)', trainingType: 'Section', @@ -309,49 +220,29 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Section_Block', - skinCode: '06', + skinCode: '09', trainingName: '区段封锁({8}{9})', trainingRemark: '区段封锁功能', trainingType: 'Section', - productTypes: ['01'], + productTypes: ['01', '02'], stepVOList: [ { deviceType: '03', orderNum: 1, operateCode: '403', tip: '鼠标右键菜单选择【区段封锁】' }, - { deviceType: '03', orderNum: 2, operateCode: '403', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Section_Unblock', - skinCode: '06', + skinCode: '09', trainingName: '区段解封({8}{9})', trainingRemark: '区段解封功能', trainingType: 'Section', - productTypes: ['01'], + productTypes: ['01', '02'], stepVOList: [ { deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' }, - { deviceType: '03', orderNum: 2, operateCode: '4043', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '4046', tip: '鼠标左键选择({8}{9})区段', val: '{19}' }, - { deviceType: '03', orderNum: 4, operateCode: '4044', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '4042', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Section_Confirm_Axis_Valid', - skinCode: '06', - trainingName: '确认计轴有效({8}{9})', - trainingRemark: '确认计轴有效功能', - trainingType: 'Section', - productTypes: ['02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' }, - { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' }, - { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{20}', val: '{22}' }, - { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({8}{9})', val: '{19}' }, - { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' } + { deviceType: '03', orderNum: 2, operateCode: '4042', tip: '鼠标左键点击【是】按钮' }, + { deviceType: '03', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, @@ -359,174 +250,58 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Switch_Normal_Position', - skinCode: '06', + skinCode: '09', trainingName: '定操({7})', trainingRemark: '定操({7})', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '101', tip: '鼠标左键菜单选择【定操】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '02', orderNum: 1, operateCode: '101', tip: '鼠标左键菜单选择【道岔定位】' }, + { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, - operateType: 'Switch_Reverse_Position', // 0313 新增定位字典 - skinCode: '06', + operateType: 'Switch_Reverse_Position', + skinCode: '09', trainingName: '反操({7})', trainingRemark: '反操({7})', trainingType: 'Switch', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '102', tip: '鼠标右键菜单选择【反操】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Cut_Off', - skinCode: '06', - trainingName: '区段切除({7})', - trainingRemark: '区段切除', - trainingType: 'Switch', - productTypes: ['02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Active', - skinCode: '06', - trainingName: '区段激活({7})', - trainingRemark: '区段激活功能', - trainingType: 'Switch', - productTypes: ['02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Confirm_Axis_Valid', - skinCode: '06', - trainingName: '确认计轴有效({8}{9})', - trainingRemark: '确认计轴有效功能', - trainingType: 'Switch', - productTypes: ['02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '412', tip: '鼠标右键菜单选择【确认计轴有效】' }, - { deviceType: '03', orderNum: 2, operateCode: '4123', tip: '鼠标左键选择【确认】' }, - { deviceType: '03', orderNum: 3, operateCode: '4121', tip: '鼠标左键选择{21}', val: '{23}' }, - { deviceType: '03', orderNum: 4, operateCode: '4122', tip: '鼠标左键选择({25})', val: '{24}' }, - { deviceType: '03', orderNum: 5, operateCode: '4124', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '03', orderNum: 6, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' } + { deviceType: '02', orderNum: 1, operateCode: '102', tip: '鼠标右键菜单选择【道岔反位】' }, + { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Switch_Single_Lock', - skinCode: '06', + skinCode: '09', trainingName: '道岔单锁({7})', trainingRemark: '道岔单锁功能', trainingType: 'Switch', productTypes: ['01'], stepVOList: [ { deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Switch_Single_Unlock', - skinCode: '06', + skinCode: '09', trainingName: '道岔单解({7})', trainingRemark: '道岔单解功能', trainingType: 'Switch', productTypes: ['01'], stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【道岔单解】' }, - { deviceType: '03', orderNum: 2, operateCode: '1043', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '1046', tip: '鼠标左键选择({7})区段', val: '{17}' }, - { deviceType: '03', orderNum: 4, operateCode: '1044', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '1042', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Block', - skinCode: '06', - trainingName: '道岔封锁({7})', - trainingRemark: '道岔封锁功能', - trainingType: 'Switch', - productTypes: ['01'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔封锁】' }, - { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Unblock', - skinCode: '06', - trainingName: '道岔解封({7})', - trainingRemark: '道岔解封功能', - trainingType: 'Switch', - productTypes: ['01'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔解封】' }, - { deviceType: '03', orderNum: 2, operateCode: '1063', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '1066', tip: '鼠标左键选择({7})区段', val: '{17}' }, - { deviceType: '03', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '1062', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Set_Limit_Speed', - skinCode: '06', - trainingName: '设置临时限速({7})', - trainingRemark: '设置临时限速功能(限速值:10)', - trainingType: 'Switch', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' }, - { deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值5】', val: '10' }, - { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '10' }, - { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Switch_Set_Limit_Speed', - skinCode: '06', - trainingName: '设置临时限速({7})', - trainingRemark: '设置临时限速功能-取消临时限速(限速值:不限速)', - trainingType: 'Switch', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' }, - { deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值: 不限】', val: '0' }, - { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '0' }, - { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } + { deviceType: '02', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【道岔单解】' }, + { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }, + { deviceType: '02', orderNum: 3, operateCode: '104', tip: '鼠标右键点击【E】选择使能' }, + { deviceType: '02', orderNum: 4, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, @@ -534,7 +309,7 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Signal_Set_Route', - skinCode: '06', + skinCode: '09', trainingName: '排列进路({3})', trainingRemark: '排列进路', trainingType: 'Signal', @@ -549,7 +324,7 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Signal_Cancel_Route', - skinCode: '06', + skinCode: '09', trainingName: '取消进路({3})', trainingRemark: '取消进路', trainingType: 'Signal', @@ -559,131 +334,31 @@ export default { { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } ] }, - { - maxDuration: 8, - minDuration: 5, - operateType: 'Signal_Reopen_Signal', - skinCode: '06', - trainingName: '信号重开({3} 进路)', - trainingRemark: '信号重开功能', - trainingType: 'Signal', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, { maxDuration: 15, minDuration: 8, operateType: 'Signal_Open_Auto_Setting', - skinCode: '06', + skinCode: '09', trainingName: '进路交自动控({5})', trainingRemark: '进路交自动控', trainingType: 'Signal', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '315', tip: '鼠标右键菜单选择【进路交自动控】' }, - { deviceType: '04', orderNum: 2, operateCode: '3151', tip: '鼠标左键选择【{3}】进路', val: '{4}' }, - { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '04', orderNum: 1, operateCode: '315', tip: '鼠标右键菜单选择【开放自动进路】' }, + { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Signal_Close_Auto_Setting', - skinCode: '06', + skinCode: '09', trainingName: '进路交人工控({5})', trainingRemark: '进路交人工控', trainingType: 'Signal', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '314', tip: '鼠标右键菜单选择【进路交人工控】' }, - { deviceType: '04', orderNum: 2, operateCode: '3141', tip: '鼠标左键选择【{3}】进路', val: '{4}' }, - { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Set_CI_Auto', - skinCode: '06', - trainingName: '设置通过模式({5})', - trainingRemark: '设置通过模式', - trainingType: 'Signal', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【设置通过模式】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Set_CI_Auto', - skinCode: '06', - trainingName: 'Fleet进路办理({5})', - trainingRemark: 'Fleet进路办理', - trainingType: 'Signal', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【Fleet进路办理】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Cancel_CI_Auto', - skinCode: '06', - trainingName: '取消通过模式({5})', - trainingRemark: '取消通过模式', - trainingType: 'Signal', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【取消通过模式】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Cancel_CI_Auto', - skinCode: '06', - trainingName: 'Fleet进路取消({5})', - trainingRemark: 'Fleet进路取消', - trainingType: 'Signal', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【Fleet进路取消】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Cancel_Guide', - skinCode: '06', - trainingName: '人工解锁进路({5})', - trainingRemark: '人工解锁进路', - trainingType: 'Signal', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '318', tip: '鼠标右键菜单选择【人工解锁进路】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Set_Guide', - skinCode: '06', - trainingName: '信号机引导办理({5})', - trainingRemark: '信号机引导办理', - trainingType: 'Signal', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '308', tip: '鼠标右键菜单选择【信号机引导办理】' }, + { deviceType: '04', orderNum: 1, operateCode: '314', tip: '鼠标右键菜单选择【关闭自动进路】' }, { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } ] }, @@ -691,53 +366,52 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'Signal_Block', - skinCode: '06', + skinCode: '09', trainingName: '信号封锁({5})', trainingRemark: '信号封锁', trainingType: 'Signal', productTypes: ['01'], stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封锁】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, { maxDuration: 15, minDuration: 8, operateType: 'Signal_Unblock', - skinCode: '06', + skinCode: '09', trainingName: '信号解封({5})', trainingRemark: '信号解封功能', trainingType: 'Signal', productTypes: ['01'], stepVOList: [ { deviceType: '03', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' }, - { deviceType: '03', orderNum: 2, operateCode: '3073', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '3076', tip: '鼠标左键选择({5})区段', val: '{6}' }, - { deviceType: '03', orderNum: 4, operateCode: '3074', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '3072', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Find_Routes_Status', - skinCode: '06', - trainingName: '查询进路控制状态({5})', - trainingRemark: '查询进路控制状态', - trainingType: 'Signal', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '316', tip: '鼠标右键菜单选择【查询进路控制状态】' }, - { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + { deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }, + { deviceType: '03', orderNum: 3, operateCode: '307', tip: '鼠标右键点击【E】选择使能' }, + { deviceType: '03', orderNum: 4, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' } ] }, + // { + // maxDuration: 15, + // minDuration: 8, + // operateType: 'Signal_Find_Routes_Status', + // skinCode: '09', + // trainingName: '查询进路控制状态({5})', + // trainingRemark: '查询进路控制状态', + // trainingType: 'Signal', + // productTypes: ['01', '02'], + // stepVOList: [ + // { deviceType: '04', orderNum: 1, operateCode: '316', tip: '鼠标右键菜单选择【查询进路控制状态】' }, + // { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } + // ] + // }, { maxDuration: 20, minDuration: 15, operateType: 'CM_Apply_For_Center_Control', - skinCode: '06', + skinCode: '09', trainingName: '请求遥控({1})', trainingRemark: '控制权限转换,站控转中控', trainingType: 'ControlConvertMenu', @@ -751,7 +425,7 @@ export default { maxDuration: 15, minDuration: 8, operateType: 'CM_Apply_For_Station_Control', - skinCode: '06', + skinCode: '09', trainingName: '请求站控({1})', trainingRemark: '控制权限转换,中控转站控', trainingType: 'ControlConvertMenu', @@ -760,34 +434,6 @@ export default { { deviceType: 'button', orderNum: 1, operateCode: '202', tip: '鼠标右键菜单选择【请求站控】'}, { deviceType: '05', orderNum: 2, operateCode: '2023', tip: '鼠标左键点击【应用】' } ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Set_Auto_Turn_Back', - skinCode: '06', - trainingName: '设置自动折返进路({3})', - trainingRemark: '设置自动折返进路', - trainingType: 'Signal', - productTypes: ['02'], - stepVOList: [ - { deviceType: '05', orderNum: 1, operateCode: '900', tip: '鼠标右键菜单选择【设置自动折返】'}, - { deviceType: '05', orderNum: 2, operateCode: '900', tip: '鼠标左键点击【应用】' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: 'Signal_Cancel_Auto_Turn_Back', - skinCode: '06', - trainingName: ' 取消自动折返进路({3})', - trainingRemark: ' 取消自动折返进路', - trainingType: 'Signal', - productTypes: ['02'], - stepVOList: [ - { deviceType: '05', orderNum: 1, operateCode: '901', tip: '鼠标右键菜单选择【取消自动折返】'}, - { deviceType: '05', orderNum: 2, operateCode: '901', tip: '鼠标左键点击【应用】' } - ] } ] }; diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index 25acec429..1aa875b83 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -238,11 +238,11 @@ export const OperationEvent = { commandXian: { confirm: { operation: '009', - domId: '_Tips-commandXian-confirm{TOP}' + domId: '_Tips-commandXian-confirm{BOTTOM}' }, cancel: { operation: '0091', - domId: '_Tips-commandXian-cancel{TOP}' + domId: '_Tips-commandXian-cancel{BOTTOM}' } } }, From 8b2cd16fe9b9f53cd55d30cde98a62b3311bf574 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 22 Dec 2020 17:27:04 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/learn.js | 2 +- src/api/runplan.js | 16 ++- src/utils/baseUrl.js | 4 +- src/views/lesson/home.vue | 7 +- src/views/messageBoard/create.vue | 3 +- src/views/messageBoard/manage.vue | 1 - .../displayNew/dispatherContest/sceneList.vue | 11 +- .../newMap/newMapdraft/mapoperate/station.vue | 1 - src/views/planMonitor/editTool/index.vue | 8 +- src/views/planMonitor/editTool/menuBar.vue | 36 +++++- .../editTool/menus/gernaratePlanTrain.vue | 1 + .../editTool/menus/movePlaningTrain.vue | 107 ++++++++++++++++++ src/views/planMonitor/editTool/statusBar.vue | 30 ++++- src/views/planMonitor/newEditTool/index.vue | 7 +- src/views/planMonitor/newEditTool/menuBar.vue | 36 +++++- .../newEditTool/menus/movePlaningTrain.vue | 107 ++++++++++++++++++ .../planMonitor/newEditTool/statusBar.vue | 29 ++++- src/views/publish/runPlanCommon/draft.vue | 4 +- 18 files changed, 381 insertions(+), 29 deletions(-) create mode 100644 src/views/planMonitor/editTool/menus/movePlaningTrain.vue create mode 100644 src/views/planMonitor/newEditTool/menus/movePlaningTrain.vue diff --git a/src/api/learn.js b/src/api/learn.js index 6ba320312..465d9e54c 100644 --- a/src/api/learn.js +++ b/src/api/learn.js @@ -98,7 +98,7 @@ export function createPost(data) { data }); } -// 修改留言板 +// 修改留言板名称 export function updatePost(postId, data) { return request({ url: `/api/learn/${postId}`, diff --git a/src/api/runplan.js b/src/api/runplan.js index 23ce8838a..fcddb5f31 100644 --- a/src/api/runplan.js +++ b/src/api/runplan.js @@ -214,7 +214,21 @@ export function duplicateService(data) { data: data }); } - +// 平移计划 +export function movePlaningService(data) { + return request({ + url: `/api/runPlan/draft/${data.planId}/service/${data.serviceNumber}/move`, + method: 'put', + data: data + }); +} +// 清除数据 +export function clearPlaningData(planId) { + return request({ + url: `/api/runPlan/draft/${planId}/data`, + method: 'delete' + }); +} /** 增加任务*/ export function addPlanTrip(data) { return request({ diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index c0569ef83..798608c73 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.129:9000'; // 旭强 // BASE_API = 'http://192.168.8.119:9000'; // 张赛 - // BASE_API = 'http://192.168.8.110:9000'; // 杜康 + BASE_API = 'http://192.168.8.110:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 diff --git a/src/views/lesson/home.vue b/src/views/lesson/home.vue index 8a58d0fd8..bb93e6a53 100644 --- a/src/views/lesson/home.vue +++ b/src/views/lesson/home.vue @@ -3,8 +3,8 @@
草稿{{ $t('lesson.courseList') }}
- {{ $t('lesson.trainingRule') }} - {{ $t('lesson.trainingManage') }} + {{ $t('lesson.trainingRule') }} + {{ $t('lesson.trainingManage') }} {{ $t('lesson.createNewCoursesFromRelease') }} {{ $t('lesson.newConstruction') }}
@@ -137,6 +137,9 @@ export default { mapId() { return this.$route.params.mapId; }, + isAdmin() { + return this.$store.state.user.roles.includes('04') || this.$store.state.user.roles.includes('05'); + }, hasRelease() { return this.$store.state.user.roles.includes('04') || this.$store.state.user.roles.includes('05') || this.$store.state.user.roles.includes('03'); diff --git a/src/views/messageBoard/create.vue b/src/views/messageBoard/create.vue index 581d0e315..5b382007e 100644 --- a/src/views/messageBoard/create.vue +++ b/src/views/messageBoard/create.vue @@ -6,7 +6,7 @@ :before-close="handleClose" > - + @@ -99,6 +99,7 @@ export default { this.$emit('reloadTable'); this.handleClose(); }).catch((error) => { + console.error(error.message); if (error.code == '10012') { this.$message.error('本项目下的留言板已存在,请勿重复创建!'); } else { diff --git a/src/views/messageBoard/manage.vue b/src/views/messageBoard/manage.vue index eb864fa8f..ea0e9c9b5 100644 --- a/src/views/messageBoard/manage.vue +++ b/src/views/messageBoard/manage.vue @@ -9,7 +9,6 @@ import { queryPostPage } from '@/api/learn'; import { ProjectList} from '@/scripts/ProjectConfig'; import CreateDraft from './create'; - export default { name: 'Manage', components:{ diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue index 139676db3..d65ab4aa6 100644 --- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue +++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue @@ -87,8 +87,7 @@ export default { }); }, methods:{ - doShow(param) { - // this.operationType = param; + doShow() { this.dialogVisible = true; }, doClose() { @@ -106,8 +105,7 @@ export default { const notifyData = this.$notify({ title: res.data.name, dangerouslyUseHTMLString: true, - message: ` -

场景描述:${row.description}

`, + message: `

场景描述:${row.description}

`, customClass: 'notify_box', showClose: false, offset: 75, @@ -172,11 +170,6 @@ export default { member.label = '停车场信号楼' + (member.name ? member.name : ''); } } - // if (member.type === 'DISPATCHER') { - // this.memberId = member.id; - // (this.$store.state.training.memberData[member.id] || {}).userId = this.$store.state.user.id; - // (this.$store.state.training.memberData[member.id] || {}).disabled = true; - // } }); } if (res.data.mapLocation) { diff --git a/src/views/newMap/newMapdraft/mapoperate/station.vue b/src/views/newMap/newMapdraft/mapoperate/station.vue index 6cae3f473..a9352152a 100644 --- a/src/views/newMap/newMapdraft/mapoperate/station.vue +++ b/src/views/newMap/newMapdraft/mapoperate/station.vue @@ -282,7 +282,6 @@ export default { this.activeName = 'first'; this.editModel = deepAssign(this.editModel, selected); // 被控制的车站数据 - console.log(selected, selected.createTurnBack); const beCentralizedStation = {}; this.relStationList = JSON.parse(JSON.stringify(this.stationList)); this.stationList.forEach(data=>{ diff --git a/src/views/planMonitor/editTool/index.vue b/src/views/planMonitor/editTool/index.vue index d1f42e2d1..ecd8d0f9c 100644 --- a/src/views/planMonitor/editTool/index.vue +++ b/src/views/planMonitor/editTool/index.vue @@ -6,6 +6,7 @@ :run-plan-list="runPlanList" :load-run-plan-id="loadRunPlanId" @doClose="doClose" + @refresh="refresh" @dispatchDialog="dispatchDialog" @loadingRunPlan="loadingRunPlan" @checkIsLoadRunPlan="checkIsLoadRunPlan" @@ -17,7 +18,7 @@ :load-run-plan-id="loadRunPlanId" :load-run-plan-name="loadRunPlanName" /> - + @@ -30,6 +31,7 @@ + @@ -67,6 +69,7 @@ import ModifyingRouting from './menus/modifyingRouting'; import ModifyingBeginTime from './menus/modifyingBeginTime'; import EditStationBetweenTime from './menus/editStationBetweenTime'; import GernaratePlan from './menus/gernaratePlanTrain'; +import MovePlaningTrain from './menus/movePlaningTrain'; // import AddSmoothRunTime from './menus/addSmoothRunTime'; // import EditSmoothRunTime from './menus/editSmoothRunTime'; import ModifyingStationIntervalTime from './menus/modifyingStationIntervalTime'; @@ -103,7 +106,8 @@ export default { ModifyingStationStopTime, CreateEmptyPlan, EditPlanName, - GernaratePlan + GernaratePlan, + MovePlaningTrain }, data() { return { diff --git a/src/views/planMonitor/editTool/menuBar.vue b/src/views/planMonitor/editTool/menuBar.vue index 24075a0ec..711233b5b 100644 --- a/src/views/planMonitor/editTool/menuBar.vue +++ b/src/views/planMonitor/editTool/menuBar.vue @@ -117,7 +117,7 @@ import { mapGetters } from 'vuex'; import routeMap from './routingoperate/routeMap'; // import RunplanParams from './config/index'; -import { planEffectiveCheck, runPlanNotify } from '@/api/runplan'; +import { planEffectiveCheck, runPlanNotify, clearPlaningData } from '@/api/runplan'; import { launchFullscreen } from '@/utils/screen'; import { UrlConfig } from '@/scripts/ConstDic'; import { EventBus } from '@/scripts/event-bus'; @@ -230,6 +230,10 @@ export default { title: this.$t('planMonitor.deletePlan'), click: this.handleDeletePlanningTrain }, + { + title: '移动计划', + click: this.handleMovePlanningTrain + }, { title: this.$t('planMonitor.duplicatePlan'), click: this.handleDuplicateTrain @@ -252,6 +256,10 @@ export default { { title: '修改名称', click: this.modifyRunPlanName + }, + { + title: '清除数据', + click: this.handleClearData } // { // type: 'separator' @@ -509,6 +517,23 @@ export default { this.$messageBox(this.$t('tip.selectARunGraphFirst')); } }, + // 清除数据 + handleClearData() { + this.$confirm('本操作将清除本运行图数据!', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + center: true + }).then(() => { + clearPlaningData(this.$route.query.planId).then(resp => { + console.log('清除数据成功!'); + this.$emit('refresh'); + }).catch(() => { + this.$message.error('清除数据失败!'); + }); + }).catch(() => { + console.error('清除数据失败!'); + }); + }, // 删除计划 handleDeletePlanningTrain() { const serviceNumber = this.$store.state.runPlan.selected.serviceNumber; @@ -536,6 +561,15 @@ export default { this.$messageBox(this.$t('tip.selectAPlan')); } }, + // 移动计划 + handleMovePlanningTrain() { + const serviceNumber = this.$store.state.runPlan.selected.serviceNumber; + if (serviceNumber) { + this.$emit('dispatchDialog', { name: 'movePlaningTrain', params: { serviceNumber } }); + } else { + this.$messageBox(this.$t('tip.selectAPlan')); + } + }, // 复制计划 handleDuplicateTrain() { const serviceNumber = this.$store.state.runPlan.selected.serviceNumber; diff --git a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue index b46cfba5a..ad7be1b61 100644 --- a/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue +++ b/src/views/planMonitor/editTool/menus/gernaratePlanTrain.vue @@ -195,6 +195,7 @@ export default { }).catch(error => { console.log(error); this.doClose(); + this.$messageBox(error.message); }); }); } diff --git a/src/views/planMonitor/editTool/menus/movePlaningTrain.vue b/src/views/planMonitor/editTool/menus/movePlaningTrain.vue new file mode 100644 index 000000000..d90dbdfd1 --- /dev/null +++ b/src/views/planMonitor/editTool/menus/movePlaningTrain.vue @@ -0,0 +1,107 @@ + + + + diff --git a/src/views/planMonitor/editTool/statusBar.vue b/src/views/planMonitor/editTool/statusBar.vue index 502ef85c2..756fee8a0 100644 --- a/src/views/planMonitor/editTool/statusBar.vue +++ b/src/views/planMonitor/editTool/statusBar.vue @@ -6,10 +6,12 @@
{{ $t('planMonitor.gerneratePlan') }}
{{ $t('planMonitor.addPlan') }}
{{ $t('planMonitor.deletePlan') }}
+
平移计划
{{ $t('planMonitor.duplicatePlan') }}
{{ $t('planMonitor.addTask') }}
{{ $t('planMonitor.deleteTask') }}
{{ $t('planMonitor.modifyTask') }}
+
清除数据
    {{ $t('planMonitor.validityCheck') }}
    @@ -19,7 +21,7 @@ + diff --git a/src/views/planMonitor/newEditTool/statusBar.vue b/src/views/planMonitor/newEditTool/statusBar.vue index 55c0e4a2a..db8cb1fb5 100644 --- a/src/views/planMonitor/newEditTool/statusBar.vue +++ b/src/views/planMonitor/newEditTool/statusBar.vue @@ -8,10 +8,12 @@
    {{ $t('planMonitor.addPlan') }}
    {{ $t('planMonitor.deletePlan') }}
    +
    平移计划
    {{ $t('planMonitor.duplicatePlan') }}
    {{ $t('planMonitor.addTask') }}
    {{ $t('planMonitor.deleteTask') }}
    {{ $t('planMonitor.modifyTask') }}
    +
    清除数据
    @@ -22,7 +24,7 @@