From 942510398aac84b7f8688c6aef0d2847589c012f Mon Sep 17 00:00:00 2001 From: joylink_zyy <1787816799@qq.com> Date: Sun, 10 May 2020 22:36:31 +0800 Subject: [PATCH 01/48] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A5=BF=E5=AE=89?= =?UTF-8?q?=E4=B8=89=E5=8F=B7=E7=BA=BF=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/deviceStyle.js | 2 +- src/jmapNew/config/skinCode/xian_03.js | 678 -------------- src/jmapNew/theme/factory.js | 2 +- .../childDialog/childDialog/noticeInfo.vue | 86 -- .../dialog/childDialog/confirmControl.vue | 361 -------- .../childDialog/confirmControlSpeed.vue | 144 --- .../childDialog/confirmSignalUnlock.vue | 126 --- .../menus/dialog/childDialog/confirmTrain.vue | 180 ---- .../xian_03/menus/dialog/routeCmdControl.vue | 450 ---------- .../xian_03/menus/dialog/routeControl.vue | 289 ------ .../xian_03/menus/dialog/routeDetail.vue | 164 ---- .../xian_03/menus/dialog/routeHandControl.vue | 335 ------- .../theme/xian_03/menus/dialog/routeLock.vue | 162 ---- .../xian_03/menus/dialog/routeSelection.vue | 235 ----- .../menus/dialog/sectionCmdControl.vue | 418 --------- .../xian_03/menus/dialog/sectionControl.vue | 153 ---- .../xian_03/menus/dialog/speedCmdControl.vue | 562 ------------ .../menus/dialog/standBackStrategy.vue | 238 ----- .../xian_03/menus/dialog/standControl.vue | 182 ---- .../xian_03/menus/dialog/standDetail.vue | 238 ----- .../menus/dialog/standDetainTrainAll.vue | 191 ---- .../xian_03/menus/dialog/standRunLevel.vue | 272 ------ .../xian_03/menus/dialog/standStopTime.vue | 243 ----- .../menus/dialog/stationCmdControl.vue | 403 --------- .../menus/dialog/stationHumanControlAll.vue | 123 --- .../dialog/stationSetRouteControlAll.vue | 145 --- .../xian_03/menus/dialog/switchCmdControl.vue | 482 ---------- .../xian_03/menus/dialog/switchControl.vue | 169 ---- .../xian_03/menus/dialog/trainControl.vue | 472 ---------- .../xian_03/menus/dialog/trainCreate.vue | 155 ---- .../xian_03/menus/dialog/trainDelete.vue | 167 ---- .../xian_03/menus/dialog/trainEditNumber.vue | 138 --- .../theme/xian_03/menus/dialog/trainMove.vue | 201 ----- .../xian_03/menus/dialog/trainSwitch.vue | 206 ----- src/jmapNew/theme/xian_03/menus/index.vue | 356 -------- src/jmapNew/theme/xian_03/menus/menuBar.vue | 813 ----------------- .../theme/xian_03/menus/menuCancel.vue | 130 --- .../childDialog/twoConfirmation.vue | 130 --- .../menus/menuDialog/childDialog/userAdd.vue | 172 ---- .../menuDialog/childDialog/userDelete.vue | 143 --- .../menus/menuDialog/childDialog/userEdit.vue | 189 ---- .../xian_03/menus/menuDialog/helpAbout.vue | 140 --- .../xian_03/menus/menuDialog/manageUser.vue | 309 ------- .../xian_03/menus/menuDialog/passwordBox.vue | 228 ----- .../menuDialog/stationControlConvert.vue | 472 ---------- .../xian_03/menus/menuDialog/trainAdd.vue | 179 ---- .../xian_03/menus/menuDialog/trainDelete.vue | 157 ---- .../menus/menuDialog/trainTranstalet.vue | 164 ---- .../xian_03/menus/menuDialog/viewDevice.vue | 166 ---- .../xian_03/menus/menuDialog/viewName.vue | 248 ----- .../xian_03/menus/menuDialog/viewTrainId.vue | 209 ----- .../theme/xian_03/menus/menuSection.vue | 272 ------ .../theme/xian_03/menus/menuSignal.vue | 378 -------- .../theme/xian_03/menus/menuStation.vue | 282 ------ .../theme/xian_03/menus/menuStationStand.vue | 324 ------- .../theme/xian_03/menus/menuSwitch.vue | 353 -------- src/jmapNew/theme/xian_03/menus/menuTrain.vue | 332 ------- .../xian_03/menus/passiveDialog/alarm.vue | 218 ----- .../xian_03/menus/passiveDialog/control.vue | 309 ------- .../xian_03/menus/passiveDialog/timeout.vue | 111 --- .../xian_03/menus/statusDownTrainDetail.vue | 25 - .../xian_03/menus/statusUpTrainDetail.vue | 26 - .../xian_03/menus/utils/menuItemStatus.js | 570 ------------ .../theme/xian_03/menus/utils/menuOperate.js | 302 ------- src/jmapNew/theme/xian_03/model.js | 73 -- src/jmapNew/theme/xian_03/operationConfig.js | 849 ------------------ .../theme/xian_03/operationConfigGlobal.js | 820 ----------------- src/jmapNew/theme/xian_03/planConvert.js | 325 ------- 68 files changed, 2 insertions(+), 18144 deletions(-) delete mode 100644 src/jmapNew/config/skinCode/xian_03.js delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/childDialog/childDialog/noticeInfo.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmSignalUnlock.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmTrain.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeCmdControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeDetail.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeHandControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeLock.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/routeSelection.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/sectionCmdControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/sectionControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/speedCmdControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standBackStrategy.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standDetail.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standDetainTrainAll.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standRunLevel.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/standStopTime.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/stationCmdControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/stationHumanControlAll.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/stationSetRouteControlAll.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/switchCmdControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/switchControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainControl.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainCreate.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainDelete.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainEditNumber.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainMove.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/dialog/trainSwitch.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/index.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuBar.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuCancel.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/twoConfirmation.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userAdd.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userDelete.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userEdit.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/helpAbout.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/manageUser.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/passwordBox.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/stationControlConvert.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/trainAdd.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/trainDelete.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/trainTranstalet.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/viewDevice.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/viewName.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuDialog/viewTrainId.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuSection.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuSignal.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuStation.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuStationStand.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuSwitch.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/menuTrain.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/passiveDialog/alarm.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/passiveDialog/control.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/passiveDialog/timeout.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/statusDownTrainDetail.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/statusUpTrainDetail.vue delete mode 100644 src/jmapNew/theme/xian_03/menus/utils/menuItemStatus.js delete mode 100644 src/jmapNew/theme/xian_03/menus/utils/menuOperate.js delete mode 100644 src/jmapNew/theme/xian_03/model.js delete mode 100644 src/jmapNew/theme/xian_03/operationConfig.js delete mode 100644 src/jmapNew/theme/xian_03/operationConfigGlobal.js delete mode 100644 src/jmapNew/theme/xian_03/planConvert.js diff --git a/src/jmapNew/config/deviceStyle.js b/src/jmapNew/config/deviceStyle.js index 2bcbd0735..3c8479f77 100644 --- a/src/jmapNew/config/deviceStyle.js +++ b/src/jmapNew/config/deviceStyle.js @@ -8,7 +8,7 @@ const mapDeviceStyle = { '08': 'foshan_01', '09': 'xian_02', '10': 'xian_01', - '11': 'xian_03' + '11': 'xian_01' }; export function selectLineCode(code) { diff --git a/src/jmapNew/config/skinCode/xian_03.js b/src/jmapNew/config/skinCode/xian_03.js deleted file mode 100644 index b4981bfc3..000000000 --- a/src/jmapNew/config/skinCode/xian_03.js +++ /dev/null @@ -1,678 +0,0 @@ -import defaultStyle from '../defaultStyle'; -import deviceType from '../../constant/deviceType'; - -class SkinCode extends defaultStyle { - constructor() { - super(); - this[deviceType.Section] = { - active: { - routeColor: false // 进路触发颜色 - }, - text: { - show: true, // 物理区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 18, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - logicText: { - show: true, // 逻辑区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 6, // 文字离区段距离 - fontSize: 8, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - standText: { - show: true, // 站台轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 30, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - reentryText: { - show: true, // 折返轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 30, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - transferText: { - show: true, // 转换轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 28, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - destinationText: { - show: true, // 目的码名称显示 - opposite: true, // 对称相反 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 10, // 文字离区段距离 - fontSize: 10, // 字体大小 - fontWeight: 'bold', // 字体粗细 - fontColor: 'yellow', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - line: { - width: 5, // 区段宽度 - beyondWidth: 1, // 区段宽超出宽度 - invadeColor: '#EF0C08', // 区段侵入颜色 - spareColor: '#3F3F3F', // 区段空闲颜色 - communicationOccupiedColor: '#FF329A', // 区段通信车占用颜色 - unCommunicationOccupiedColor: '#FE0000', // 区段非通讯车占用颜色 - routeLockColor: '#FFFFFF', // 区段路由锁定颜色 - faultLockColor: '#9B4A0A', // 区段故障锁定颜色 - undefinedColor: '#0071C1', // 区段未定义颜色 - protectionLockedColor: '#FEFF00', // 保护区段锁闭(未用) - blockColor: '#800080', // 区段封锁颜色 - atcExcisionColor: '#A0522D', // 区段atc切除颜色 - atsExcisionColor: '#A0522D', // 区段ats切除颜色 - timeReleaseColor: '#3F3F3F', // 区段延时释放颜色 - protectiveLockColor: '#FFFF00', // 区段保护锁闭 - protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁 - logicalColor: '#FFFF00', // 逻辑区段颜色 (未用) - logicalTextColor: '#FFFFFF' // 逻辑区段名称颜色 (未用) - }, - axle: {}, // 计轴 - speedLimit: { // 限速元素 - width: 1, // 限速线的宽短 - distance: 5, // 限速线距离区段距离 - lineColor: '#FFFF00', // 限速线颜色 - nameShow: false // 名称显示 - }, - separator: { - z: 6, // 分割符层级 - width: 1.2, // 分隔符宽度 - endWidth: 3.5, // 尽头分隔符宽度 - endColor: '#3F3F3F', // 尽头分隔符颜色 - color: '#3149C3', // 区段边界符颜色 - halfHeight: 5 // 区段分隔符高度的一半 - }, - block: { - special: false // 区段特殊显示 - }, - trainPosition:{ - display: false // 列车实时位置显示 - } - }; - - this[deviceType.Signal] = { - distance: 10, // 设备距离区段的距离 - post: { - standardLength: 6, // 高柱长度 - standardHeight: 6, // 灯柱高度 - standardColor: '#3149C3', // 灯珠颜色 - standardWidth: 2 // 灯珠宽度 - }, - text: { - show: true, // 信号机名称显示 - distance: 3, // 文字和灯杆的距离 - isAlignCenter: false, // 信号字体对其方式 - fontSize: 11, // 信号机名称字体大小 - fontWeight: 'bold', // 信号机名称字体粗细 - defaultColor: '#FFFFFF', // 信号灯字体默认色 - blockColor: '#EF0C08', // 信号灯字体锁定颜色 - checkColor: '#00FF00', // 信号字体 - nameBorderShow: true // 信号机名字边框显示 - }, - lamp: { - bgShow: false, // 是否被选中 - guidName: 'defult', // 默认引导类型 - stopWidth: 2, // 禁止线宽度 - borderWidth: 1, // 信号灯边框线宽度 - borderColor: '#3149C3', // 信号灯边框线颜色 - radiusR: 6, // 信号灯半径 - blockColor: '#EF0C08', // 信号灯锁闭 - grayColor: '#7F7F7F', // 信号灯灰色 - redColor: '#FF0000', // 信号灯红色 - greenColor: '#00FF00', // 信号灯绿色 - yellowColor: '#FFFF00', // 信号灯黄色 - whiteColor: '#FFFFFF', // 信号灯白色 - blueColor: '#0070C0' // 信号灯蓝色 - }, - route: { - direction: false, // 自动进路方向 - offset: { x: -4, y: 0 }, // 自动进路偏移量 - routeColor: '#00FF00' // 自动进路 - }, - auto: { - signalFrontTriangle: false, // 信号灯前三角展示 - direction: false, // 自动通过方向 - offset: { x: -4, y: 0}, // 自动通过偏移量 - width: 5, // 自动宽度 - autoRoute: '#00FF00', // 自动进路 - autoTrigger: '#FFFF00', // 自动触发 - manualControl: '#FFFF00', // 人工控制 - outConflict: '#C00808' // 出车冲突 - }, - delay: { - direction: true, // 延时解锁方向 - offset: { x: 15, y: -10}, // 延时解锁偏移量 - fontSize: 11, // 延迟解锁字体大小 - fontColor: '#FF0000', // 延迟解锁颜色 - fontWeight: 'bold' // 字体粗细 - }, - button: { - distance: 5, // 信号灯按钮距离区段的距离 - borderDashColor: '#FFFFFF', // 信号灯按钮边线 - buttonColor: 'darkgreen', // 信号灯按钮颜色 - buttonLightenColor: '#E4EF50' // 信号灯按钮闪烁颜色 - }, - lowButton:{ - display: false // 现地 信号机按钮 - } - }; - - this[deviceType.StationStand] = { - common: { // 通用属性 - textFontSize: 11, // 站台默认字体大小 - functionButtonShow: '03' // 功能灯按钮显示条件(01所有模式下显示 02 行调显示 03现地显示) - }, - safetyDoor: { // 屏蔽门 - height: 3, // 站台屏蔽门高度 - width: 60, - distance: 8, // 站台和屏蔽门之间的距离 - defaultColor: '#00FF00', // 屏蔽门默认颜色 - splitDoorColor: '#F61107' // 屏蔽门切除颜色 - }, - stand: { // 站台 - headFontSize: 11, // 站台首端字体大小 - spareColor: '#606060', // 站台空闲颜色 - stopColor: '#FEFE00', // 站台列车停站颜色 - jumpStopColor: '#9A99FF', // 站台跳停颜色 - designatedJumpStopColor: 'lightSkyBlue' // 站台指定列车跳停颜色 - }, - standEmergent: { // 紧急关闭 - mergentR: 4, // 站台紧急关闭半径 - mergentN: 4, // 站台紧急关闭边数 - insideOffset: { x: 0, y: 25 }, // 内站台紧急关闭偏移量 - outsideOffset: { x: 0, y: -25 }, // 外站台紧急关闭偏移量 - closeColor: '#F61107' // 站台紧急关闭颜色 - }, - reentry: { // 站台折返策略 - position: 0, // 折返方向 - offset: {x: -16, y: -15}, // 折返偏移量 - noHumanColor: '#0F16DA', // 站台无人折返 - autoChangeEndsColor: '#0BF400' // 站台自动换端 - }, - detainCar: { // 扣车 - text: 'H', // 扣车显示内容 - position: 1, // 扣车方向 - offset: {x: -8, y: -6}, // 扣车偏移量 - trainColor: '#E4EF50', // 车站扣车颜色 - centerTrainColor: '#FFFFFF', // 中心扣车颜色 - andCenterTrainColor: '#F61107', // 车站+中心扣车颜色 - detainTrainTextColor: '#E4EF50' // 车站扣除文字颜色 - }, - stopTime: { // 停站时间 - position: 1, // 运行时间方向 - offset: {x: -8, y: 26}, // 运行时间偏移量 - textColor: '#FFFFFF' // 停站时间字体颜色 - }, - level: { // 运行等级 - position: 1, // 运行等级方向 - offset: {x: -8, y: 6}, // 运行等级偏移量 - textColor: '#FFFFFF' // 停站等级字体颜色 - }, - trainStop: {}, // 停车标志 - trainDepart: {}, // 停车计时 - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - lampColor: '#5A5D5A' // 功能按钮颜色 - } - }; - - this[deviceType.StationCounter] = { - text: { - distance: 2, // 计数器名称和文字的距离 - fontColor: '#FFFFFF', // 计数器字体颜色 - borderColor: '#E4EF50' // 计数器边框颜色 - } - }; - - this[deviceType.StationDelayUnlock] = { - text: { - distance: 3, // 延迟解锁和设备之间的距离 - fontColor: '#FFFFFF', // 延时解锁字体颜色 - borderColor: '#FFFFFF' // 延迟解锁边框颜色 - } - }; - this[deviceType.AutoTurnBack] = { - // 是否显示 - visibleConditions: '03', - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - subtitleText: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 17 // 等于副标题距离 - }, - lamp: { - lineDash: null, // 灯的包围框 - borderShow: false, // 是否显示边框 - stroke: '#FFFFFF', // 框的颜色 - fill: 'rgba(0,0,0,0)', // 填充色 - radiusR: 6, // 控制灯大小 - controlColor: '#b5b3b3', // 控制灯颜色 (灰色) - lightUpColor: '#ffff00' // 点亮灯颜色 - }, - OutFrame: { - - } - }; - /** 引导总锁 */ - this[deviceType.GuideLock] = { - // 是否显示 - displayCondition: '03', // 显示条件 prdType - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - fill: 'rgba(0,0,0,0)', // 填充色 - radiusR: 6, // 控制灯大小 - controlColor: '#b5b3b3', // 控制灯颜色 (灰色) - lightUpColor: '#FF0000' // 点亮灯颜色 - } - }; - this[deviceType.Station] = { - // text: { - // show: true // 公里标名称显示 - // }, - kmPostShow: true, // 公里标显示 - kilometerPosition: 'up', // 公里标朝向 - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#FFFF00' // 控制灯颜色 - }, - turnBack: { // 按图折返 - lamp: 1, // 灯数量 - lampSpace: 60, // 灯间距 - textName: '按计划执行', - showLampBorder: true, - topText: true, - toptextDistance: 14, - lineDash: [0] - }, - StationControl:{ - text: { - distance: 3, // 灯和文字之间的距离 - fontSize: 11, // 字体大小 - fontFormat: 'consolas', // 字体格式 - fontColor: '#ffffff', // 字体颜色 - fontWeight: 'normal', // 字体粗细 - textAlign: 'middle', // 字体水平对齐 - textVerticalAlign: 'top', // 字体垂直对齐 - centerControlText: '中控', // 中控文字内容 - substationControlText: '站控', // 站控文字内容 - emergencyControlText:'紧急站控', // 紧急站控文字内容 - interconnectedControlText:'连锁控' // 连锁控文字内容 - // stationCenterControlText: '站中控', // 站中控文字内容 - // generalAlarmControlText: '总报警' // 总报警文字内容 - }, - lamp: { - count: 2, // 控制模式灯个数 - offset: {x: 0, y: 0}, // 控制模式灯偏移量 - radiusR: 4, // 控制模式灯的半径 - distance: 36, // 控制模式之间灯之间的距离 - grayColor: '#7F7F7F', // 控制模式灰色 - greenColor: '#00FF00', // 控制模式绿色 - redColor: '#FF0000', // 控制模式红色 - yellowColor: '#FFFF00', // 控制模式黄色 - emergencyControlShow: false, // 紧急站控显示 - centerControlShow: true, // 中控显示 - substationControlShow: true, // 站控按钮显示 - interconnectedControlShow: false, // 联锁控显示 - centerControlButtonShow: false // 中控显示 - }, - arrow: { - show: true // 控制模式箭头显隐 - }, - mouseOverStyle: { // 鼠标悬浮样式 - fontSize: null, - fontFormat: 'consolas', - fontColor: '#000', - fontWeight: 'normal', - textAlign: 'middle', - textVerticalAlign: 'top' - } - } - }; - - this[deviceType.Switch] = { - text: { - show: true, // 道岔名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - offset: {x: 0, y: 8}, // 道岔名称与区段距离 - fontSize: 11, // 字体大小 - fontColor: '#C0C0C0', // 道岔名称颜色 - fontWeight: 'bold', // 字体粗细 - borderColor: '#FE0000', // 道岔边框颜色 - lossColor: '#FFFFFF', // 道岔失去颜色 - locateColor: '#00FF00', // 道岔定位颜色 - inversionColor: '#9C9D09', // 道岔反位颜色 - monolockLocationColor: '#ea282c', // 道岔单锁'定位'颜色 - monolockInversionColor: '#ea282c', // 道岔单锁'反位'颜色 - block: true // 封锁名称 - }, - sectionAction: { - flag: false, // 道岔 关联区段显示 - spareColor: '#5b5b5b' // 区段显示颜色 - }, - core: { - length: 6 // 道岔单边长度 - }, - jointImg: { // 道岔 A B C D四元素属性配置 - trapezoidLength: 8, // 直角梯形元素默认长度 - block: false, // 联合图形封锁状态 - flashingColors: '#D600D5', // 联合图形封锁闪烁显示颜色 - fork: false, // 挤岔专用(如有挤岔操作 变为true) - forKColor: 'red' // 挤岔颜色 配合挤岔专用 - }, - arcBlcok: { // 圆形封锁图形 - show: false, // 显示 - arcBorderColor: 'green', // 默认边框颜色 - locationColor: 'green', // 定位封锁颜色 - inversionColor: '#FFFF00' // 反位封锁颜色 - }, - rectLock: { // 矩形封锁框图形 - rectWidth: 18, // 矩形框 宽高 - rectBorderColor: '#fff', // 矩形边框颜色 - monolock: false, // 单锁显示 - block: false // 封锁显示 - } - }; - - this[deviceType.Line] = { - lineColor: '#FFFFFF' // 线条颜色 - }; - - this[deviceType.LcControl] = { - text: { - fontSize: 10, // 灯字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 灯大小 - controlColor: '#FFFF00' // 灯颜色 - }, - mouseOverStyle: { - fontSize: 10, - fontFormat: 'consolas', - fontColor: '#FFF000', - fontWeight: 'normal', - textAlign: 'middle', - textVerticalAlign: 'top', - arcColor: '#00FFFF', - textColor: '#000000' - } - }; - this[deviceType.SwitchFault] = { - displayCondition: '01', // 显示条件 (01所有模式下显示 02 行调显示 03现地显示) - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#000000', // 控制灯颜色 - offColor: '#ff0000', - lineWidth: 2, - strokeColor: '#FFFFFF' // 控制灯描边样式 - } - }; - this[deviceType.ZcControl] = { - text: { - fontSize: 10, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 灯大小 - controlColor: '#00FF00' // 灯颜色 - }, - mouseOverStyle: { - fontSize: 10, - fontFormat: 'consolas', - fontColor: '#FFF000', - fontWeight: 'normal', - textAlign: 'middle', - textVerticalAlign: 'top', - arcColor: '#00FFFF', - textColor: '#000000' - } - }; - - this[deviceType.LimitControl] = { - text: { - fontSize: 10, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 灯大小 - controlColor: '#ECE9D8' // 灯颜色 - }, - mouseOverStyle: { - fontSize: 10, - fontFormat: 'consolas', - fontColor: '#FFF000', - fontWeight: 'normal', - textAlign: 'middle', - textVerticalAlign: 'top', - textColor: '#000000', - arcColor: '#00FFFF' - } - }; - this[deviceType.AutomaticRoute] = { - // 是否显示 - displayCondition: '03', // 显示条件 prdType - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - fill: 'rgba(0,0,0,0)', // 填充色 - radiusR: 6, // 控制灯大小 - controlColor: '#b5b3b3' // 控制灯颜色 (灰色) - } - }; - this[deviceType.TrainWindow] = { - lineColor: '#4DD43F', // 车次窗颜色 - lineDash: null, // 车次窗虚线间隔 - lineWidth: 1, // 车次窗线宽 - trainWindowSmooth: 0 // 车次窗矩形圆滑程度 - }; - this[deviceType.SplitStation] = { - lineLength: 15, // 箭头线长度 - lineWidth: 2, // 线宽 - height: 35, // 分隔整体高度 - strokeColor: '#00FF00', // 线颜色 - triangleFillColor: '#00FF00', // 三角填充颜色 - textFill: '#FFFFFF', // 文字颜色 - verticalDistance: 10, // 箭头三角垂直高度 - horizontalDistance: 7// 箭头三角水平高度 - }; - this[deviceType.Train] = { - trainBody: { - trainBodyLineWidth: 0, // 车身line宽 - changeTrainWidth: true, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度 - specialTrainType: [ - { - type: '03', - serviceNumber: 'MM', - nameFormat: 'serviceNumber:groupNumber' - }, - { - type: '02', - nameFormat: 'targetCode:groupNumber' - } - ], // 特殊列车类型需设置显示格式 - lrPadding: 1, // 两边间隔 - upPadding: 1, // 上边距离 - trainBodyFillColor: '#000000', // 列车车身填充颜色 - trainNameFormat: 'targetCode:serviceNumber:tripNumber'// 列车显示格式 - }, - directionArrow: { - }, - hsda: { - trainHSDATextFontSize: 8// 列车HDSA字号 - }, - trainNumber: { - targetCodePrefix: '000', // 目的地码前缀 - defaultTargetCode: 'AAA', // 默认目的地码 - trainTargetTextAlign: 'left', // 车次号文字显示位置 - trainNumberOffset: { x: 1, y: 1}// 目的地码偏移量 - }, - trainServer: { - serviceNumberPrefix: '00', // 服务号(表号)前缀 - defaultServiceNumber: 'BB', // 默认服务号(表号) - trainServerOffset: { x: 26, y: 1}// 列车服务号偏移 - }, - trainTarget: { - tripNumberPrefix: '0000', // 车次号前缀 - defaultDirectionCode: 'D', // 默认车次号1 - defaultTripNumber: 'CCC', // 默认车次号2 - trainTargetOffset: { x: 42, y: 1}// 列车车次号偏移 - }, - trainTargetNumber: { - groupNumberPrefix: '000', // 车组号前缀 - defaultGroupNumber: 'EEE', // 默认车组号 - trainTargetNumberOffset: {x: -1, y: 1}// 车组号偏移量 - }, - trainHead: { - trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框 - trainHeadTriangleFirst: { x: 0, y: 0}, // 列车车头三角坐标1偏移量 - trainHeadTriangleSecond: { x: 4, y: 7.5}, // 列车车头三角坐标2偏移量 - trainHeadTriangleThird: { x: 0, y: 15}, // 列车车头三角坐标3偏移量 - trainHeadRectHeight: 15, // 列车车头矩形高度 - trainConntWidth: 4, // 列车竖杠的宽度 - trainHeadFillColor: '#EF0C08'// 列车车头矩形填充颜色 - }, - common: { - trainHeight: 17, // 列车高度 - trainHeadDistance: 2, // 列车和车头之间的间距 - trainWidth: 76, // 列车长度 - trainTextFontSize: 15, // 列车字号 - fontFamily: 'consolas', // 默认字体 族类 - nameFontSize: 15, // 字体大小 - haveTextHSDA: false, // 是否需创建textHSDA对象 - haveArrowText: true, // 是否需创建arrowText对象 - haveTrainBorder: false, // 是否需创建trainBorder对象 - aspectRatio: 8 / 15, // 字体宽高比例(用以拼接text是计算位置) - textOffset: 1, // 字体偏移(用以控制字体据车头的距离) - trainWidthMoreText: 2, // 计算列车长度时--列车长比text多出尺寸 - displayPosition: 'margin', // 非同通信车在物理区段(有逻辑区段)上显示的位置 margin:行驶方向边缘车次窗 center: 中间位置车次窗 - trainTip:true // 鼠标悬停列车状态信息框是否显示 - }, - trainStatusStyle: { - destinationStatus: [ - {status: '01', showColor: '#FFFFFF'}, - {status: '02', showColor: '#00FF00'}, - {status: '03', showColor: '#3265FF'}, - {status: '04', showColor: '#9B4A09'}, - {status: '05', showColor: '#EF0C08'}, - {status: '06', showColor: '#FFFFFF'}, - {status: '07', showColor: '#FFFF00'} - ], // 目的地状态 01准点 02早点 03严重早点 04晚点 05严重晚点 06头码车 07ATP切除 - destinationStatusSetText: 'trainServer', // 目的地状态设置的对应哪个text的颜色 - directionType: [ - { - type: 1, - lineLShow: false, - lineRShow: false, - arrowLShow: false, - arrowRShow: true - }, - { - type: 0, - lineLShow: false, - lineRShow: false, - arrowLShow: true, - arrowRShow: false - } - ], // 运行方向状态类型对应车头显示状态 1从左往右 0从右往左 - directionStopType: [ - { - type: 1, - lineLShow: false, - lineRShow: true - }, - { - type: 0, - lineLShow: true, - lineRShow: false - } - ], // 列车停止方向类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - driveModeStatus: [ - { - status: 'AM', - trainLColor: '#00FF00', - trainRColor: '#00FF00' - }, - { - status: 'CM', - trainLColor: '#FFFF00', - trainRColor: '#FFFF00' - }, - { - status: 'RM', - trainLColor: '#EA700D', - trainRColor: '#EA700D' - }, - { - status: 'NRM', - trainLColor: '#A0522D', - trainRColor: '#A0522D' - } - ], // 列车运行模式对应车头颜色 ATO自动驾驶模式AM ATP监控下的人工驾驶模式CM 限制人工驾驶模式RM 非限制人工驾驶模式NRM - runControlStatus: [], // 设置运行控制状态类型 eg:{status: '01', hShow: false, sShow: false} - doorStatus: [], // 设置车门状态类型 - communicationStatus: [], // 设置通信状态 eg:{status: '01', trainColor:'#725A64'} - alarmStatus: [], // 设置报警状态 eg:{status: '01', aShow: false} - serverNoType: []// 服务号状态类型 eg:{type: '01', showColor: '#FFFFFF'} - } - }; - } -} - -export default new SkinCode(); diff --git a/src/jmapNew/theme/factory.js b/src/jmapNew/theme/factory.js index c7399cd00..f9b2178d6 100644 --- a/src/jmapNew/theme/factory.js +++ b/src/jmapNew/theme/factory.js @@ -13,7 +13,7 @@ class Theme { '08': 'foshan_01', '09': 'xian_02', '10': 'xian_01', - '11': 'xian_03' + '11': 'xian_01' }; this._localShowMode = { // 现地显示模式 '01': 'all', // 成都一 全显 diff --git a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/childDialog/noticeInfo.vue b/src/jmapNew/theme/xian_03/menus/dialog/childDialog/childDialog/noticeInfo.vue deleted file mode 100644 index 6df116961..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/childDialog/noticeInfo.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index 208f4a5f6..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index b9a863ecd..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index 50ac656d0..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmTrain.vue b/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmTrain.vue deleted file mode 100644 index 92342891c..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/childDialog/confirmTrain.vue +++ /dev/null @@ -1,180 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeCmdControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeCmdControl.vue deleted file mode 100644 index 33225b79b..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeCmdControl.vue +++ /dev/null @@ -1,450 +0,0 @@ - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeControl.vue deleted file mode 100644 index b47664af9..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeControl.vue +++ /dev/null @@ -1,289 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeDetail.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeDetail.vue deleted file mode 100644 index 3d5cbc403..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeDetail.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeHandControl.vue deleted file mode 100644 index a5617e325..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeHandControl.vue +++ /dev/null @@ -1,335 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeLock.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeLock.vue deleted file mode 100644 index d68020d00..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeLock.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/routeSelection.vue b/src/jmapNew/theme/xian_03/menus/dialog/routeSelection.vue deleted file mode 100644 index 92d949ef7..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/routeSelection.vue +++ /dev/null @@ -1,235 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/sectionCmdControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/sectionCmdControl.vue deleted file mode 100644 index bca025b72..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/sectionCmdControl.vue +++ /dev/null @@ -1,418 +0,0 @@ - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/sectionControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/sectionControl.vue deleted file mode 100644 index 616652fdb..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/sectionControl.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/speedCmdControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/speedCmdControl.vue deleted file mode 100644 index 4e46fba6c..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/speedCmdControl.vue +++ /dev/null @@ -1,562 +0,0 @@ - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standBackStrategy.vue b/src/jmapNew/theme/xian_03/menus/dialog/standBackStrategy.vue deleted file mode 100644 index a1d0c1e09..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standBackStrategy.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/standControl.vue deleted file mode 100644 index 54f372905..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standControl.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standDetail.vue b/src/jmapNew/theme/xian_03/menus/dialog/standDetail.vue deleted file mode 100644 index 4288140c1..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standDetail.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standDetainTrainAll.vue b/src/jmapNew/theme/xian_03/menus/dialog/standDetainTrainAll.vue deleted file mode 100644 index fae73b1f3..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standDetainTrainAll.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standRunLevel.vue b/src/jmapNew/theme/xian_03/menus/dialog/standRunLevel.vue deleted file mode 100644 index 203af8ff6..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standRunLevel.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/standStopTime.vue b/src/jmapNew/theme/xian_03/menus/dialog/standStopTime.vue deleted file mode 100644 index 13153e829..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/standStopTime.vue +++ /dev/null @@ -1,243 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/stationCmdControl.vue deleted file mode 100644 index 7e544c8f6..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/stationCmdControl.vue +++ /dev/null @@ -1,403 +0,0 @@ - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/xian_03/menus/dialog/stationHumanControlAll.vue deleted file mode 100644 index db9eedbdc..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/stationHumanControlAll.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/stationSetRouteControlAll.vue b/src/jmapNew/theme/xian_03/menus/dialog/stationSetRouteControlAll.vue deleted file mode 100644 index 2fbec35c2..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/stationSetRouteControlAll.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/switchCmdControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/switchCmdControl.vue deleted file mode 100644 index fe80a6eb4..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/switchCmdControl.vue +++ /dev/null @@ -1,482 +0,0 @@ - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/switchControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/switchControl.vue deleted file mode 100644 index ffa32c252..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/switchControl.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainControl.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainControl.vue deleted file mode 100644 index fdb3b740b..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainControl.vue +++ /dev/null @@ -1,472 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainCreate.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainCreate.vue deleted file mode 100644 index 661033719..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainCreate.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainDelete.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainDelete.vue deleted file mode 100644 index 2b08dc30d..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainDelete.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainEditNumber.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainEditNumber.vue deleted file mode 100644 index 2f9423a68..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainEditNumber.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainMove.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainMove.vue deleted file mode 100644 index f2309fd59..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainMove.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/dialog/trainSwitch.vue b/src/jmapNew/theme/xian_03/menus/dialog/trainSwitch.vue deleted file mode 100644 index 6a2eaf4fe..000000000 --- a/src/jmapNew/theme/xian_03/menus/dialog/trainSwitch.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/index.vue b/src/jmapNew/theme/xian_03/menus/index.vue deleted file mode 100644 index d92cd369d..000000000 --- a/src/jmapNew/theme/xian_03/menus/index.vue +++ /dev/null @@ -1,356 +0,0 @@ - - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuBar.vue b/src/jmapNew/theme/xian_03/menus/menuBar.vue deleted file mode 100644 index e59b47d55..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuBar.vue +++ /dev/null @@ -1,813 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuCancel.vue b/src/jmapNew/theme/xian_03/menus/menuCancel.vue deleted file mode 100644 index c977cd799..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuCancel.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/twoConfirmation.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/twoConfirmation.vue deleted file mode 100644 index d3d60b145..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/twoConfirmation.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userAdd.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userAdd.vue deleted file mode 100644 index c5dbef487..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userAdd.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userDelete.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userDelete.vue deleted file mode 100644 index a9549de27..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userDelete.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userEdit.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userEdit.vue deleted file mode 100644 index 75809453c..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/childDialog/userEdit.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/helpAbout.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/helpAbout.vue deleted file mode 100644 index 3040a30cd..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/helpAbout.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/manageUser.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/manageUser.vue deleted file mode 100644 index 1148a9d02..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/manageUser.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/passwordBox.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/passwordBox.vue deleted file mode 100644 index 3312655f7..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/passwordBox.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/stationControlConvert.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/stationControlConvert.vue deleted file mode 100644 index c42cb0f8b..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/stationControlConvert.vue +++ /dev/null @@ -1,472 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/trainAdd.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/trainAdd.vue deleted file mode 100644 index fd7486f6e..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/trainAdd.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/trainDelete.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/trainDelete.vue deleted file mode 100644 index 148e6cbc6..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/trainDelete.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/trainTranstalet.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/trainTranstalet.vue deleted file mode 100644 index 96a4c65da..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/trainTranstalet.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/viewDevice.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/viewDevice.vue deleted file mode 100644 index 3ed2c4e38..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/viewDevice.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/viewName.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/viewName.vue deleted file mode 100644 index 461a723df..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/viewName.vue +++ /dev/null @@ -1,248 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuDialog/viewTrainId.vue b/src/jmapNew/theme/xian_03/menus/menuDialog/viewTrainId.vue deleted file mode 100644 index a4e14b092..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuDialog/viewTrainId.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuSection.vue b/src/jmapNew/theme/xian_03/menus/menuSection.vue deleted file mode 100644 index 55131084b..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuSection.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuSignal.vue b/src/jmapNew/theme/xian_03/menus/menuSignal.vue deleted file mode 100644 index b1512d549..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuSignal.vue +++ /dev/null @@ -1,378 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuStation.vue b/src/jmapNew/theme/xian_03/menus/menuStation.vue deleted file mode 100644 index ca9705442..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuStation.vue +++ /dev/null @@ -1,282 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuStationStand.vue b/src/jmapNew/theme/xian_03/menus/menuStationStand.vue deleted file mode 100644 index 904d673f3..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuStationStand.vue +++ /dev/null @@ -1,324 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuSwitch.vue b/src/jmapNew/theme/xian_03/menus/menuSwitch.vue deleted file mode 100644 index 9a4783d30..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuSwitch.vue +++ /dev/null @@ -1,353 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/menuTrain.vue b/src/jmapNew/theme/xian_03/menus/menuTrain.vue deleted file mode 100644 index 7f215a543..000000000 --- a/src/jmapNew/theme/xian_03/menus/menuTrain.vue +++ /dev/null @@ -1,332 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/passiveDialog/alarm.vue b/src/jmapNew/theme/xian_03/menus/passiveDialog/alarm.vue deleted file mode 100644 index 88c45c4a5..000000000 --- a/src/jmapNew/theme/xian_03/menus/passiveDialog/alarm.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/passiveDialog/control.vue b/src/jmapNew/theme/xian_03/menus/passiveDialog/control.vue deleted file mode 100644 index aae10f32b..000000000 --- a/src/jmapNew/theme/xian_03/menus/passiveDialog/control.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - - diff --git a/src/jmapNew/theme/xian_03/menus/passiveDialog/timeout.vue b/src/jmapNew/theme/xian_03/menus/passiveDialog/timeout.vue deleted file mode 100644 index 9cfd45d1e..000000000 --- a/src/jmapNew/theme/xian_03/menus/passiveDialog/timeout.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - diff --git a/src/jmapNew/theme/xian_03/menus/statusDownTrainDetail.vue b/src/jmapNew/theme/xian_03/menus/statusDownTrainDetail.vue deleted file mode 100644 index ac712152d..000000000 --- a/src/jmapNew/theme/xian_03/menus/statusDownTrainDetail.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/statusUpTrainDetail.vue b/src/jmapNew/theme/xian_03/menus/statusUpTrainDetail.vue deleted file mode 100644 index bb1e0cee3..000000000 --- a/src/jmapNew/theme/xian_03/menus/statusUpTrainDetail.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_03/menus/utils/menuItemStatus.js b/src/jmapNew/theme/xian_03/menus/utils/menuItemStatus.js deleted file mode 100644 index 6263f872b..000000000 --- a/src/jmapNew/theme/xian_03/menus/utils/menuItemStatus.js +++ /dev/null @@ -1,570 +0,0 @@ -import store from '@/store/index_APP_TARGET'; -import deviceState from '@/jmap/constant/deviceState'; -import { OperateMode } from '@/scripts/ConstDic'; - -export function getCurrentStateObject() { - return store.getters['menuOperation/selected']; -} - -/** 系统类型 */ -export const State2SimulationMap = { - '01': 'local', // 现地工作站 - '02': 'central' // 中心调度工作站 -}; - -export const State2ControlMap = { - '01': 'center', // 中控 - '02': 'station', // 站控 - '03': 'station' -}; - -// 控制禁用 -export const MenuDisabledState = { - Section: { - // 故障解锁 - fault() { - }, - // 切除 - split() { - const device = getCurrentStateObject(); - if (device && device.cutOff != deviceState.Section.cutOff.Default) { - return true; - } - }, - // 激活 - active() { - const device = getCurrentStateObject(); - if (device && device.cutOff == deviceState.Section.cutOff.Default) { - return true; - } - }, - // 区段封锁 - lock() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Section.status.State06) { - return true; - } - }, - // 区段解禁 - unlock() { - const device = getCurrentStateObject(); - if (device && device.status != deviceState.Section.status.State06) { - return true; - } - }, - // 区段设置限速 - setSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit != deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 区段取消限速 - cancelSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit == deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 新建列车 - newTrain() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - Signal: { - // 进路选排 - arrangementRoute() { - - }, - // 进路取消 - cancelTrainRoute() { - }, - // 信号封闭 - lock() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Signal.status.State05) { - return true; - } - }, - // 信号解封 - unlock() { - const device = getCurrentStateObject(); - if (device && device.status != deviceState.Signal.status.State05) { - return true; - } - }, - // 信号重开 - reopenSignal() { - }, - // 进路引导 - guide() { - }, - // 设置联锁自动进路 - setAutoInterlock() { - }, - // 取消联锁自动进路 - cancelAutoInterlock() { - }, - // 设置联锁自动触发 - setAutoTrigger() { - }, - // 取消联锁自动触发 - cancelAutoTrigger() { - }, - // 关灯 - signalClose() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Signal.status.State01) { - return true; - } - }, - // 人工控 - humanControl() { - }, - // ats自动控 - atsAutoControl() { - }, - // 查询进路状态 - detail() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - Station: { - // 全站设置联锁自动触发 - setAutoTrigger() { - }, - // 全站取消联锁自动触发 - cancelAutoTrigger() { - }, - // 上电解锁 - powerUnLock() { - }, - // 执行关键操作测试 - execKeyOperationTest() { - }, - // 所有进路自排开 - atsAutoControlALL() { - }, - // 所有进路自排关 - humanControlALL() { - }, - // 设置ZC故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消ZC故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - StationControl: { - // 紧急站控 - emergencyStationControl() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.StationControl.status.State03) { - return true; - } - }, - // 请求站控 - requestStationControl() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.StationControl.status.State02) { - return true; - } - }, - // 强行站控 - forcedStationControl() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.StationControl.status.State02) { - return true; - } - }, - // 请求中控 - requestCentralControl() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.StationControl.status.State01) { - return true; - } - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - StationStand: { - // 设置扣车 - setDetainTrain() { - const device = getCurrentStateObject(); - if (store.state.training.prdType == '02') { // 中心行调模式 - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State04) { - return true; - } else if (device && device.holdStatus == deviceState.StationStand.holdStatus.State03) { - return true; - } - } else { // 现地模式 - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State04) { - return true; - } else if (device && device.holdStatus == deviceState.StationStand.holdStatus.State02) { - return true; - } - } - }, - // 取消扣车 - cancelDetainTrain() { - const device = getCurrentStateObject(); - if (store.state.training.prdType == '02') { - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State04) { - return false; - } else if (device && device.holdStatus != deviceState.StationStand.holdStatus.State03) { - return true; - } - } else { - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State04) { - return false; - } else if (device && device.holdStatus != deviceState.StationStand.holdStatus.State02) { - return true; - } - } - }, - // 强制取消扣车 - cancelDetainTrainForce() { - const device = getCurrentStateObject(); - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) { - return true; - } - }, - // 设置全站扣车 - cancelDetainTrainAll() { - }, - // 设置运行等级 - setRunLevel() { - }, - // 设置停站时间 - setStopTime() { - }, - // 设置跳停 - setJumpStop() { - const device = getCurrentStateObject(); - if (device && device.jumpStopStatus != deviceState.StationStand.jumpStopStatus.State01) { - return true; - } - }, - // 取消跳停 - cancelJumpStop() { - const device = getCurrentStateObject(); - if (device && device.jumpStopStatus == deviceState.StationStand.jumpStopStatus.State01) { - return true; - } - }, - // 提前发车 - earlyDeparture() { - }, - // 站台详细信息 - detail() { - }, - // 设置折返策略 - setBackStrategy() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - Switch: { - // 单锁 - lock() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Switch.status.State10) { - return true; - } - }, - // 解锁 - unlock() { - const device = getCurrentStateObject(); - if (device && device.status != deviceState.Switch.status.State10) { - return true; - } - }, - // 封锁 - block() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Switch.status.State14) { - return true; - } - }, - // 解封 - unblock() { - const device = getCurrentStateObject(); - if (device && device.status != deviceState.Switch.status.State14) { - return true; - } - }, - // 强扳 - switchTurnoutForce() { - }, - // 转动 - switchTurnout() { - }, - // 道岔故障解锁 - fault() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 道岔切除 - split() { - }, - // 道岔激活 - active() { - }, - // 道岔设置速度 - setSpeed() { - // const device = getCurrentStateObject(); - }, - // 道岔取消速度 - cancelSpeed() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - }, - Train: { - // 添加列车识别号 - addTrainId() { - }, - // 删除列车识别号 - delTrainId() { - }, - // 修改列车识别号 - editTrainId() { - }, - // 修改车组号 - editTrainNo() { - }, - // 移动列车识别号 - moveTrainId() { - }, - // 交换列车识别号 - switchTrainId() { - }, - // 设置限速 - limitSpeed() { - }, - // 设置通信故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消通信故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - } - } -}; - -export function checkOperationValidity() { - if (store.state.training.prdType == '02') { - return true; - } -} - -/** - * 将menu的disabled属性使用disabledCallback计算并返回 - * @param {Array} menu - */ -export function menuConvert(menu) { - if (menu.constructor === Array) { - menu.forEach(elem => { - if (elem.type === 'separator') { - elem.show = true; - return; - } - - if (elem.disabledCallback.constructor === Function) { - elem.disabled = elem.defaultDisabled; - if (!elem.defaultDisabled) { - elem.disabled = elem.disabledCallback(); - } - } - }); - } - return menu; -} - -/** - * 根据产品类型,返回对应的menuBar - * @param {*} menuObj - */ -export function menuBarConvert(menu, mode) { - if (menu) { - if (mode === OperateMode.NORMAL) { - menu.forEach(item => { - if (item.type === 'separator') { - item.show = true; - return; - } - - item.show = false; - if (!item.click) { - item.click = () => { }; - } - - if (!item.froce) { - item.show = true; - if (item.children && item.children.length > 0) { - menuBarConvert(item.children, mode); - } - } - }); - } else if (mode === OperateMode.ADMIN) { - menu.forEach(item => { - item.show = true; - if (!item.click) { - item.click = () => { }; - } - if (item.children && item.children.length > 0) { - menuBarConvert(item.children, mode); - } - }); - } - } - return menu || []; -} - -/** - * 将menu的show属性过滤返回 - * @param {Array} menu - */ -export function menuFiltration(menuObj) { - var selected = getCurrentStateObject(); - var control; - var menu = []; - - if (selected._type == 'StationStand') { - control = store.getters['map/getStationControlByStationCode'](selected.deviceStationCode); - } else if (selected._type == 'Station') { - control = store.getters['map/getStationControlByStationCode'](selected.code); - } else { - control = store.getters['map/getStationControlByStationCode'](selected.stationCode); - } - - if (control) { - if (store.state.training.prdType != '') { - const type = State2SimulationMap[store.state.training.prdType]; - const status = State2ControlMap[control.status]; - menu = [...menuObj[type]]; - if (menu.constructor === Array) { - menu.forEach(elem => { - if (elem.type === 'separator') { - elem.show = true; - return; - } - - if (elem.auth.constructor === Object) { - elem.show = true; - if (!elem.auth['station'] && !elem.auth['center']) { // 控制不显示 - elem.show = false; - } - elem.defaultDisabled = !elem.auth[status]; - } - }); - } - } - } - - return menu; -} - -/** - * 将train menu的show属性过滤返回 - */ -export function trainMenuFiltration(menuObj) { - var menu = []; - if (store.state.training.prdType != '') { - const type = State2SimulationMap[store.state.training.prdType]; - menu = [...menuObj[type]]; - if (menu.constructor === Array) { - menu.forEach(elem => { - if (elem.auth.constructor === Object) { - elem.show = true; - if (!elem.auth['station'] && !elem.auth['center']) { // 控制不显示 - elem.show = false; - } - } - }); - } - } - return menu; -} - diff --git a/src/jmapNew/theme/xian_03/menus/utils/menuOperate.js b/src/jmapNew/theme/xian_03/menus/utils/menuOperate.js deleted file mode 100644 index baf16b23e..000000000 --- a/src/jmapNew/theme/xian_03/menus/utils/menuOperate.js +++ /dev/null @@ -1,302 +0,0 @@ -import store from '@/store/index_APP_TARGET'; -import CMD from '@/scripts/cmdPlugin/CommandEnum'; -import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; - -// 操作 -export const menuOperate = { - Section:{ - split:{ - // 区段切除 - operation: OperationEvent.Section.split.menu.operation, - cmdType: CMD.Section.CMD_SECTION_CUT_OFF - }, - active:{ - // 区段激活 - operation: OperationEvent.Section.active.menu.operation, - cmdType: CMD.Section.CMD_SECTION_ACTIVE - }, - lock: { - // 区段封锁 - operation: OperationEvent.Section.lock.menu.operation, - cmdType: CMD.Section.CMD_SECTION_BLOCK - }, - unlock: { - // 区段解封 - operation: OperationEvent.Section.unlock.menu.operation, - cmdType: CMD.Section.CMD_SECTION_UNBLOCK - }, - alxeEffective:{ - // 确认计轴有效 - operation: OperationEvent.Section.alxeEffective.menu.operation, - cmdType: CMD.Section.CMD_SECTION_COMFIRMATION_AXLE - }, - setSpeed:{ - // 设置速度 - operation: OperationEvent.Section.setSpeed.menu.operation, - cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED - }, - cancelSpeed: { - // 取消限速 - operation: OperationEvent.Section.cancelSpeed.menu.operation, - cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED - }, - axlePreReset:{ - // 区段计轴预复位 - operation: OperationEvent.Section.axlePreReset.menu.operation, - cmdType: CMD.Section.CMD_SECTION_AXIS_PRE_RESET - }, - fault:{ - // 区段故障解锁 - operation: OperationEvent.Section.fault.menu.operation, - cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK - } - }, - Signal:{ - arrangementRoute:{ - // 排列进路 - operation: OperationEvent.Signal.arrangementRoute.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE - }, - cancelTrainRoute:{ - // 取消进路 - operation: OperationEvent.Signal.cancelTrainRoute.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE - }, - lock:{ - // 信号封锁 - operation:OperationEvent.Signal.lock.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_BLOCK - }, - unlock:{ - // 信号解封 - operation: OperationEvent.Signal.unlock.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK - }, - guide:{ - // 进路引导 - operation: OperationEvent.Signal.guide.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE - }, - reopenSignal:{ - // 信号重开 - operation: OperationEvent.Signal.reopenSignal.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL - }, - signalClose:{ - // 信号关灯 - operation: OperationEvent.Signal.signalClose.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL - }, - humanControl:{ - // 进路交人工控 - operation: OperationEvent.Signal.humanControl.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING - }, - atsAutoControl:{ - // 进路交自动控 - operation: OperationEvent.Signal.atsAutoControl.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING - }, - setAutoInterlock:{ - // 设置通过模式 - operation: OperationEvent.Signal.setAutoInterlock.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO - }, - cancelAutoInterlock:{ - // 取消通过模式 - operation: OperationEvent.Signal.cancelAutoInterlock.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO - }, - detail:{ - // 查询进路状态 - operation: OperationEvent.Signal.detail.menu.operation - }, - cancelGuide:{ - // 人工解锁进路(信号机取消引导) - operation: OperationEvent.Signal.cancelGuide.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_GUIDE - }, - setAutoTurnBack:{ - // 设置自动折返 - operation: OperationEvent.AutoTurnBack.SetAutoTurnBackButton.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_SET_AUTO_TURN_BACK - }, - cancelAutoTurnBack:{ - // 取消自动折返 - operation: OperationEvent.AutoTurnBack.CancelAutoTurnBackButton.menu.operation, - cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_AUTO_TURN_BACK - } - }, - Switch:{ - lock:{ - // 道岔单锁 - operation: OperationEvent.Switch.lock.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK - }, - unlock:{ - // 道岔解锁 - operation: OperationEvent.Switch.unlock.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK - }, - block: { - // 道岔封锁 - operation: OperationEvent.Switch.block.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_BLOCK - }, - unblock: { - // 道岔解封 - operation: OperationEvent.Switch.unblock.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_UNBLOCK - }, - switchTurnout: { - // 道岔转动 - operation: OperationEvent.Switch.turnout.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_TURN - }, - fault: { - // 故障解锁 - operation: OperationEvent.Switch.fault.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_FAULT_UNLOCK - }, - split:{ - // 区段切除 - operation: OperationEvent.Switch.split.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_CUT_OFF - }, - active:{ - // 区段激活 - operation: OperationEvent.Switch.active.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_ACTIVE - }, - setSpeed:{ - // 设置临时限速 - operation: OperationEvent.Switch.setSpeed.menu.operation, - cmdType:CMD.Switch.CMD_SWITCH_SET_LIMIT_SPEED - }, - cancelSpeed: { - // 取消临时限速 - operation: OperationEvent.Switch.cancelSpeed.menu.operation, - cmdType:CMD.Switch.CMD_CANCEL_SPEED - }, - alxeEffective:{ - // 确认计轴有效 - operation: OperationEvent.Switch.alxeEffective.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE - }, - axlePreReset:{ - // 计轴预复位 - operation: OperationEvent.Switch.axlePreReset.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_AXIS_PRE_RESET - } - - }, - StationStand:{ - setDetainTrain:{ - // 设置扣车 - operation: OperationEvent.StationStand.setDetainTrain.menu.operation, - cmdType: CMD.Stand.CMD_STAND_SET_HOLD_TRAIN - }, - cancelDetainTrain:{ - // 取消扣车 - operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation, - cmdType: CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN - }, - cancelDetainTrainForce: { - // 强制取消扣车 - operation: OperationEvent.StationStand.cancelDetainTrainForce.menu.operation, - cmdType: CMD.Stand.CMD_STAND_FORCE_CANCEL_HOLD_TRAIN - }, - cancelDetainTrainAll: { - // 全线取消扣车 - operation: OperationEvent.StationStand.cancelDetainTrainAll.menu.operation, - cmdType: CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN - }, - setJumpStop:{ - // 设置跳停 - operation: OperationEvent.StationStand.setJumpStop.menu.operation, - cmdType: CMD.Stand.CMD_STAND_SET_JUMP_STOP - }, - cancelJumpStop:{ - // 取消跳停 - operation: OperationEvent.StationStand.cancelJumpStop.menu.operation, - cmdType: CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP - }, - setStopTime:{ - // 停站时间控制 - operation: OperationEvent.StationStand.setStopTime.menu.operation, - cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME - }, - setRunLevel:{ - // 运行时间控制 - operation: OperationEvent.StationStand.setRunLevel.menu.operation, - cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME - }, - earlyDeparture:{ - // 设置提前发车 - operation: OperationEvent.StationStand.earlyDeparture.menu.operation, - cmdType: CMD.Stand.CMD_STAND_EARLY_DEPART - }, - setBackStrategy:{ - // 设置折返策略 - operation: OperationEvent.StationStand.setBackStrategy.menu.operation, - cmdType: CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY - }, - detail:{ - // 查询站台状态 - operation: OperationEvent.StationStand.detail.menu.operation - // cmdType: CMD.Stand.CMD_STAND_VIEW_STATUS - } - }, - StationControl:{ - requestCentralControl:{ - // 请求中控(遥控) - operation: OperationEvent.StationControl.requestCentralControl.menu.operation, - cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL - }, - requestStationControl:{ - // 请求站控 - operation: OperationEvent.StationControl.requestStationControl.menu.operation, - cmdType:CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL - }, - emergencyStationControl:{ - // 紧急站控 - operation: OperationEvent.StationControl.emergencyStationControl.menu.operation, - cmdType:CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL - } - - } -}; - -export function commitOperate(operate, paramList, over, val) { - const step = { - start: true, - operation: operate.operation, - param:{} - }; - step.param = paramList; - if (val) { - step['val'] = val; - } - // over 0为首次操作,1为中间操作,2为最后操作,3为直接一次性操作 - if (over == 0 || over == 3) { - const codeList = Object.values(paramList); - step.code = codeList[0]; - } - if (over != 0 && over != 3) { - delete step.start; - } - if (over == 2 || over == 3) { - step.over = true; - step.cmdType = operate.cmdType; - } - return new Promise(function(resolve, reject) { - store.dispatch('training/nextNew', step).then(({ valid }) => { - if (valid) { - store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } - resolve({ valid: valid, operate: step }); - }).catch(error=>{ - reject(error); - }); - }); -} diff --git a/src/jmapNew/theme/xian_03/model.js b/src/jmapNew/theme/xian_03/model.js deleted file mode 100644 index 4920490ff..000000000 --- a/src/jmapNew/theme/xian_03/model.js +++ /dev/null @@ -1,73 +0,0 @@ -import deviceType from '../../constant/deviceType'; - -class Model { - constructor() { - this.screenLine = 3; - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; - - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: true // 标识灯名称显示 - }; - this['private'][deviceType.Station] = { - kmPostShow: true // 公里标显示 - }; - this['private'][deviceType.Switch] = { - nameShow: true - }; - this['private'][deviceType.Section] = { - nameShow: true, - borderBorderShow: true, // 区段边界显示 - destinationNameShow: true, // 目的地码名称显示 - standTrackNameShow: true, // 站台轨名称显示 - reentryTrackNameShow: true, // 折返轨名称显示 - transferTrackNameShow: true // 转换轨名称显示 - }; - this['private'][deviceType.Signal] = { - nameShow: true, // 信号机名称显示 - linkageAutoRouteShow: true, // 联锁自动进路表示灯显示 - atsAutoTriggerShow: true // ATS自动触发表示灯显示 - }; - this['private'][deviceType.Train] = { - nameFormat: 'targetCode:serviceNumber:tripNumber', // 字体格式 - nameFontSize: 10 // 字体大小 - }; - this['private'][deviceType.TrainWindow] = { - trainWindowShow: true - }; - } - - initPublicProps(model) { - if (model) { - var modelInitial = this.public[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } - - return model; - } - - initPrivateProps(model) { - if (model) { - var modelInitial = this.private[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } - - return model; - } -} - -export default new Model(); diff --git a/src/jmapNew/theme/xian_03/operationConfig.js b/src/jmapNew/theme/xian_03/operationConfig.js deleted file mode 100644 index b038248fa..000000000 --- a/src/jmapNew/theme/xian_03/operationConfig.js +++ /dev/null @@ -1,849 +0,0 @@ -// 操作规则定义 -// {id: "1", trainingType: "01", name: "车站名称"} -// {id: "2", trainingType: "01", name: "车站控制模式编号"} -// {id: "3", trainingType: "02", name: "进路名称"} -// {id: "4", trainingType: "02", name: "进路编号"} -// {id: "5", trainingType: "02", name: "信号机名称"} -// {id: "6", trainingType: "02", name: "信号机编号"} - -// {id: "7", trainingType: "03", name: "道岔名称"} -// {id: "17", trainingType: "03", name: "道岔编码"} -// {id: "15", trainingType: "03", name: "道岔位置"} -// {id: "16", trainingType: "03", name: "道岔位置(反)"} -// {id: "21", trainingType: "03", name: "车站名称"} -// {id: "23", trainingType: "03", name: "车站编号"} -// {id: "24", trainingType: "03", name: "道岔计轴区段编号"} -// {id: "25", trainingType: "03", name: "道岔计轴区段名称"} - -// {id: "8", trainingType: "04", name: "物理区段名称"} -// {id: "9", trainingType: "04", name: "逻辑区段名称"} -// {id: "18", trainingType: "04", name: "逻辑区段编码"} -// {id: "19", trainingType: "04", name: "区段编号"} -// {id: "20", trainingType: "04", name: "车站名称"} -// {id: "22", trainingType: "04", name: "车站编号"} - -// {id: "10", trainingType: "05", name: "车站名称"} -// {id: "11", trainingType: "05", name: "站台行驶方向编号"} -// {id: "12", trainingType: "05", name: "站台行驶方向"} -// {id: "13", trainingType: "05", name: "站台行驶方向编号(反)"} -// {id: "14", trainingType: "05", name: "站台行驶方向(反)"} -export default { - list: [ - { - maxDuration: 20, - minDuration: 15, - operateType: '0103', - skinCode: '02', - trainingName: '转为中控({1})', - trainingRemark: '控制权限转换,站控转中控', - trainingType: '01', - productTypes: ['02'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: '鼠标左键点击顶部菜单栏【控制模式转换】' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2041', tip: '鼠标左键点击【转为中控】' }, - { deviceType: '05', orderNum: 3, operateCode: '2042', tip: '鼠标左键选择所需要转换的控制区域【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 4, operateCode: '204', tip: '鼠标左键点击【请求中控】', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '2043', tip: '鼠标左键点击【确认】按钮', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '0013', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: 'bar', orderNum: 7, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0101', - skinCode: '02', - trainingName: '转为站控({1})', - trainingRemark: '控制权限转换,中控转站控', - trainingType: '01', - productTypes: ['01'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: '鼠标左键点击顶部菜单栏【控制模式转换】' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2021', tip: '鼠标左键点击【转为站控】' }, - { deviceType: '05', orderNum: 3, operateCode: '2022', tip: '鼠标左键选择所需要转换的控制区域【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 4, operateCode: '202', tip: '鼠标左键点击【请求站控】', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '2023', tip: '鼠标左键点击【确认】按钮', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '0013', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: 'bar', orderNum: 7, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0102', - skinCode: '02', - trainingName: '强制站控({1})', - trainingRemark: '控制权限转换,强制站控', - trainingType: '01', - productTypes: ['01'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: '鼠标左键点击顶部菜单栏【控制模式转换】' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2034', tip: '鼠标左键点击【强制站控】' }, - { deviceType: 'bar', orderNum: 3, operateCode: '2035', tip: '鼠标左键输入默认密码【123456】后,点击【确定】按钮' }, - { deviceType: '05', orderNum: 4, operateCode: '2032', tip: '鼠标左键选择所需要转换的控制区域【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '203', tip: '鼠标左键点击【强制站控】', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '2033', tip: '鼠标左键点击【确认】按钮', val: '{2}' }, - { deviceType: '05', orderNum: 7, operateCode: '0013', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: 'bar', orderNum: 8, operateCode: '000', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0501', - skinCode: '02', - trainingName: '站台扣车({10}-{12}站台)', - trainingRemark: '设置扣车功能', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0502', - skinCode: '02', - trainingName: '站台取消扣车({10}-{12}站台)', - trainingRemark: '设置取消扣车功能', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0503', - skinCode: '02', - trainingName: '强制取消扣车({10}-{12}站台)', - trainingRemark: '强制取消扣车功能', - trainingType: '05', - productTypes: ['01'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '506', tip: '鼠标右键菜单选择【强制取消扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '506', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0504', - skinCode: '02', - trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(默认上行全线/下行全线,不做选择)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '508', tip: '鼠标右键菜单选择【全线取消扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '508', tip: '鼠标左键点击【确定】按钮', val: '{11}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0504', - skinCode: '02', - trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(选择上/下行全线)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '508', tip: '鼠标右键菜单选择【全线取消扣车】' }, - { deviceType: '06', orderNum: 2, operateCode: '5081', tip: '鼠标右键菜单选择【{14}全线】', val: '{13}' }, - { deviceType: '06', orderNum: 3, operateCode: '508', tip: '鼠标左键点击【确定】按钮', val: '{13}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0505', - skinCode: '02', - trainingName: '站台跳停({10}-{12}站台)', - trainingRemark: '设置跳停功能', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【跳停】' }, - { deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0506', - skinCode: '02', - trainingName: '取消跳停({10}-{12}站台)', - trainingRemark: '设置取消跳停功能', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' }, - { deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' } - ] - }, - { - maxDuration: 8, - minDuration: 5, - operateType: '0507', - skinCode: '02', - trainingName: '查询站台状态({10}-{12}站台)', - trainingRemark: '查询站台状态功能', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【查询站台状态】' }, - { deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '02', - trainingName: '设置停站时间({10}-{12}站台)', - trainingRemark: '设置停站时间(自动, 一直有效)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【自动】', val: '01' }, - { deviceType: '06', orderNum: 3, operateCode: '509', tip: '鼠标左键点击【确认】按钮', val: '01::20::true' }, - { deviceType: '06', orderNum: 4, operateCode: '5091', tip: '鼠标左键点击【确认】按钮', val: '01::20::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '02', - trainingName: '设置停站时间({10}-{12}站台)', - trainingRemark: '设置停站时间(人工, 20秒, 一直有效)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【人工】', val: '02' }, - { deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击,调整为【20】', val: '20' }, - { deviceType: '06', orderNum: 4, operateCode: '509', tip: '鼠标左键点击【确认】按钮', val: '02::20::true' }, - { deviceType: '06', orderNum: 5, operateCode: '5091', tip: '鼠标左键点击【确认】按钮', val: '02::20::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '02', - trainingName: '设置停站时间({10}-{12}站台)', - trainingRemark: '设置停站时间(人工, 20秒, 一次有效)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【人工】', val: '02' }, - { deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击,调整为【20】', val: '20' }, - { deviceType: '06', orderNum: 4, operateCode: '5093', tip: '鼠标左键点击,选择【一次有效】', val: 'false' }, - { deviceType: '06', orderNum: 5, operateCode: '509', tip: '鼠标左键点击【确认】按钮', val: '02::20::false' }, - { deviceType: '06', orderNum: 6, operateCode: '5091', tip: '鼠标左键点击【确认】按钮', val: '02::20::false' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0509', - skinCode: '02', - trainingName: '设置运行等级({10}-{12}站台)', - trainingRemark: '设置运行等级(设置区间运行时间为60,一直有效)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, - { deviceType: '06', orderNum: 2, operateCode: '5101', tip: '鼠标左键点击,选择【60】', val: '60' }, - { deviceType: '06', orderNum: 3, operateCode: '510', tip: '鼠标左键点击【确认】按钮', val: '60::true' }, - { deviceType: '06', orderNum: 4, operateCode: '5102', tip: '鼠标左键点击【确认】按钮', val: '60::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0509', - skinCode: '02', - trainingName: '设置运行等级({10}-{12}站台)', - trainingRemark: '设置运行等级(设置区间运行时间为60,一次有效)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, - { deviceType: '06', orderNum: 2, operateCode: '5101', tip: '鼠标左键点击,选择【60】', val: '60' }, - { deviceType: '06', orderNum: 3, operateCode: '5103', tip: '鼠标左键点击,取消选择【一直有效】', val: 'false' }, - { deviceType: '06', orderNum: 4, operateCode: '510', tip: '鼠标左键点击【确认】按钮', val: '60::false' }, - { deviceType: '06', orderNum: 5, operateCode: '5102', tip: '鼠标左键点击【确认】按钮', val: '60::false' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0510', - skinCode: '02', - trainingName: '设置提前发车({10}-{12}站台)', - trainingRemark: '设置提前发车功能', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '501', tip: '鼠标右键菜单选择【设置提前发车】' }, - { deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0511', - skinCode: '02', - trainingName: '人工折返策略设置({10}-{12}站台)', - trainingRemark: '人工折返策略设置功能', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '511', tip: '鼠标右键菜单选择【人工折返策略设置】' }, - { deviceType: '06', orderNum: 2, operateCode: '5111', tip: '鼠标左键点击,选择【无折返】', val: '01' }, - { deviceType: '06', orderNum: 3, operateCode: '511', tip: '鼠标左键点击【确定】按钮', val: '01' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0401', - skinCode: '02', - trainingName: '区段故障解锁({8}{9})', - trainingRemark: '故障解锁功能', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' }, - { deviceType: '03', orderNum: 2, operateCode: '4026', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '4024', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '03', orderNum: 4, operateCode: '4025', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0402', - skinCode: '02', - trainingName: '区段切除({8}{9})', - trainingRemark: '区段切除', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【区段切除】' }, - { deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0403', - skinCode: '02', - trainingName: '区段激活({8}{9})', - trainingRemark: '区段激活功能', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【区段激活】' }, - { deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0404', - skinCode: '02', - trainingName: '计轴预复位({8}{9})', - trainingRemark: '计轴预复位功能', - trainingType: '04', - productTypes: ['01'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '409', tip: '鼠标右键菜单选择【区段计轴预复位】' }, - { deviceType: '03', orderNum: 2, operateCode: '4091', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '4093', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '03', orderNum: 4, operateCode: '4094', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0405', - skinCode: '02', - trainingName: '区段封锁({8}{9})', - trainingRemark: '区段封锁功能', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '403', tip: '鼠标右键菜单选择【区段封锁】' }, - { deviceType: '03', orderNum: 2, operateCode: '403', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0406', - skinCode: '02', - trainingName: '区段解封({8}{9})', - trainingRemark: '区段解封功能', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' }, - { deviceType: '03', orderNum: 2, operateCode: '4041', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '4043', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '03', orderNum: 4, operateCode: '4044', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0407', - skinCode: '02', - trainingName: '区段设置限速({8}{9})', - trainingRemark: '区段设置限速功能(限速值:5)', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【区段设置限速】' }, - { deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值5】', val: '5' }, - { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' }, - { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0408', - skinCode: '02', - trainingName: '区段取消限速({8}{9})', - trainingRemark: '区段取消限速功能', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '408', tip: '鼠标右键菜单选择【区段取消限速】' }, - { deviceType: '03', orderNum: 2, operateCode: '4081', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '03', orderNum: 3, operateCode: '4082', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '03', orderNum: 4, operateCode: '4083', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '03', orderNum: 5, operateCode: '4084', tip: '鼠标左键点击【确认2】按钮', val: '5' }, - { deviceType: '03', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0301', - skinCode: '02', - trainingName: '道岔单锁({7})', - trainingRemark: '道岔单锁功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' }, - { deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0302', - skinCode: '02', - trainingName: '道岔单解({7})', - trainingRemark: '道岔单解功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【道岔单解】' }, - { deviceType: '02', orderNum: 2, operateCode: '1041', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 3, operateCode: '1043', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1044', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0303', - skinCode: '02', - trainingName: '道岔区段封闭({7})', - trainingRemark: '道岔区段封闭功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔区段封闭】' }, - { deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0304', - skinCode: '02', - trainingName: '道岔区段解封({7})', - trainingRemark: '道岔区段解封功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔区段解封】' }, - { deviceType: '02', orderNum: 2, operateCode: '1061', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 3, operateCode: '1063', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1064', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0305', - skinCode: '02', - trainingName: '道岔转动({7})', - trainingRemark: '道岔转动功能({15}转{16})', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '107', tip: '鼠标右键菜单选择【道岔转动】' }, - { deviceType: '02', orderNum: 2, operateCode: '107', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 20, - minDuration: 10, - operateType: '0306', - skinCode: '02', - trainingName: '道岔区段故障解锁({7})', - trainingRemark: '道岔区段故障解锁功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '109', tip: '鼠标右键菜单选择【道岔区段故障解锁】' }, - { deviceType: '02', orderNum: 2, operateCode: '1091', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 3, operateCode: '1093', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1094', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0307', - skinCode: '02', - trainingName: '道岔区段计轴预复位({7})', - trainingRemark: '道岔区段计轴预复位功能', - trainingType: '03', - productTypes: ['01'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '110', tip: '鼠标右键菜单选择【道岔区段计轴预复位】' }, - { deviceType: '02', orderNum: 2, operateCode: '1101', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 3, operateCode: '1103', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1104', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0308', - skinCode: '02', - trainingName: '区段切除({7})', - trainingRemark: '区段切除', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' }, - { deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0309', - skinCode: '02', - trainingName: '区段激活({7})', - trainingRemark: '区段激活功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' }, - { deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0310', - skinCode: '02', - trainingName: '道岔区段设置限速({7})', - trainingRemark: '道岔区段设置限速功能(限速值:5)', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【道岔区段设置限速】' }, - { deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值5】', val: '5' }, - { 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: '5' }, - { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0311', - skinCode: '02', - trainingName: '道岔区段取消限速({7})', - trainingRemark: '道岔区段取消限速功能', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '114', tip: '鼠标右键菜单选择【道岔区段取消限速】' }, - { deviceType: '02', orderNum: 2, operateCode: '1141', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '02', orderNum: 3, operateCode: '1142', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '02', orderNum: 4, operateCode: '1143', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '02', orderNum: 5, operateCode: '1144', tip: '鼠标左键点击【确认2】按钮', val: '5' }, - { deviceType: '02', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0201', - skinCode: '02', - trainingName: '进路选排({3})', - trainingRemark: '选择排列进路', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【进路选排】' }, - { deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' }, - { deviceType: '04', orderNum: 3, operateCode: '301', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '04', orderNum: 4, operateCode: '3012', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0202', - skinCode: '02', - trainingName: '进路取消({3})', - trainingRemark: '进路取消', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '303', tip: '鼠标右键菜单选择【进路取消】' }, - { deviceType: '04', orderNum: 2, operateCode: '303', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '04', orderNum: 3, operateCode: '3031', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0202', - skinCode: '02', - trainingName: '进路取消({3})', - trainingRemark: '进路取消', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '303', tip: '鼠标右键菜单选择【进路取消】' }, - { deviceType: '04', orderNum: 2, operateCode: '303', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0203', - skinCode: '02', - trainingName: '信号封闭({5})', - trainingRemark: '信号封闭', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封闭】' }, - { deviceType: '04', orderNum: 2, operateCode: '306', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0204', - skinCode: '02', - trainingName: '信号解封({5})', - trainingRemark: '信号解封', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' }, - { deviceType: '04', orderNum: 2, operateCode: '3071', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '04', orderNum: 3, operateCode: '3072', tip: '鼠标左键点击【确认】按钮' }, - { deviceType: '04', orderNum: 4, operateCode: '3073', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '04', orderNum: 5, operateCode: '3074', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '04', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0205', - skinCode: '02', - trainingName: '信号关灯({3})', - trainingRemark: '信号关灯', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '313', tip: '鼠标右键菜单选择【信号关灯】' }, - { deviceType: '04', orderNum: 2, operateCode: '313', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '04', orderNum: 3, operateCode: '3131', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0206', - skinCode: '02', - trainingName: '信号重开({3})', - trainingRemark: '信号重开', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' }, - { deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' }, - { deviceType: '04', orderNum: 3, operateCode: '3041', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0207', - skinCode: '02', - trainingName: '引导进路办理({3})', - trainingRemark: '进路办理信号引导', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '308', tip: '鼠标右键菜单选择【引导进路办理】' }, - { deviceType: '04', orderNum: 2, operateCode: '3081', tip: '鼠标左键点击【下达】按钮' }, - { deviceType: '04', orderNum: 3, operateCode: '3083', tip: '鼠标左键点击【确认1】按钮' }, - { deviceType: '04', orderNum: 4, operateCode: '3084', tip: '鼠标左键点击【确认2】按钮' }, - { deviceType: '04', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0208', - skinCode: '02', - trainingName: '自排开({5})', - trainingRemark: '自排开', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '315', tip: '鼠标右键菜单选择【自排开】' }, - { deviceType: '04', orderNum: 2, operateCode: '3151', tip: '鼠标左键选择控制状态为"人工"的进路', val: '{6}' }, - { deviceType: '04', orderNum: 3, operateCode: '315', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0209', - skinCode: '02', - trainingName: '自排关({5})', - trainingRemark: '自排关', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '314', tip: '鼠标右键菜单选择【自排关】' }, - { deviceType: '04', orderNum: 2, operateCode: '3141', tip: '鼠标左键选择第一条进路', val: '{6}' }, - { deviceType: '04', orderNum: 3, operateCode: '314', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0210', - skinCode: '02', - trainingName: '查询进路控制状态({5})', - trainingRemark: '查询进路控制状态', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '316', tip: '鼠标右键菜单选择【查询进路控制模式】' }, - { deviceType: '04', orderNum: 2, operateCode: '316', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0211', - skinCode: '02', - trainingName: '设置联锁自动进路({5})', - trainingRemark: '设置联锁自动进路', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【设置联锁自动进路】' }, - { deviceType: '04', orderNum: 2, operateCode: '309', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0212', - skinCode: '02', - trainingName: '取消联锁自动进路({5})', - trainingRemark: '取消联锁自动进路', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【取消联锁自动进路】' }, - { deviceType: '04', orderNum: 2, operateCode: '310', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0213', - skinCode: '02', - trainingName: '设置联锁自动触发({5})', - trainingRemark: '设置联锁自动触发', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '311', tip: '鼠标右键菜单选择【设置联锁自动触发】' }, - { deviceType: '04', orderNum: 2, operateCode: '311', tip: '鼠标左键点击【确定】按钮' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0214', - skinCode: '02', - trainingName: '取消联锁自动触发({5})', - trainingRemark: '取消联锁自动触发', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '312', tip: '鼠标右键菜单选择【取消联锁自动触发】' }, - { deviceType: '04', orderNum: 2, operateCode: '312', tip: '鼠标左键点击【确定】按钮' } - ] - } - ] -}; diff --git a/src/jmapNew/theme/xian_03/operationConfigGlobal.js b/src/jmapNew/theme/xian_03/operationConfigGlobal.js deleted file mode 100644 index e99041826..000000000 --- a/src/jmapNew/theme/xian_03/operationConfigGlobal.js +++ /dev/null @@ -1,820 +0,0 @@ -export default { - list: [ - { - maxDuration: 20, - minDuration: 15, - operateType: '0103', - skinCode: '05', - trainingName: 'Switch to central control ({1})', - trainingRemark: 'Control permission conversion, switch station control to central control', - trainingType: '01', - productTypes: ['02'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: 'Left click the menu bar [control mode conversion]on the top' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2041', tip: 'Left click [switch to central control] ' }, - { deviceType: '05', orderNum: 3, operateCode: '2042', tip: 'Left click to select the control area to be converted【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 4, operateCode: '204', tip: 'Left click [request to central control] ', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '2043', tip: 'Left click [confirm]', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '0013', tip: 'Left click [confirm]' }, - { deviceType: 'bar', orderNum: 7, operateCode: '000', tip: 'Left click [close] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0101', - skinCode: '05', - trainingName: 'Switch to station control ({1})', - trainingRemark: 'Control permission conversion, Force to station control', - trainingType: '01', - productTypes: ['01'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: 'Left click the menu bar [control mode conversion]on the top' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2021', tip: 'Left click [switch to station control' }, - { deviceType: '05', orderNum: 3, operateCode: '2022', tip: 'Left click to select the control area to be converted【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 4, operateCode: '202', tip: 'Left click [request to station control', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '2023', tip: 'Left click [confirm] ', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '0013', tip: 'Left click [confirm] ' }, - { deviceType: 'bar', orderNum: 7, operateCode: '000', tip: 'Left click [close] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0102', - skinCode: '05', - trainingName: 'Force to station control ({1})', - trainingRemark: 'Control permission conversion,Force to station control', - trainingType: '01', - productTypes: ['01'], - stepVOList: [ - { deviceType: 'bar', orderNum: 1, operateCode: '0024', tip: 'Left click the menu bar [control mode conversion]on the top' }, - { deviceType: 'bar', orderNum: 2, operateCode: '2034', tip: 'Left click[Force to station control]' }, - { deviceType: 'bar', orderNum: 3, operateCode: '2035', tip: 'Left click to input the password [123456],then left click the [confirm]' }, - { deviceType: '05', orderNum: 4, operateCode: '2032', tip: 'Left click to select the control area to be converted【{1}】', val: '{2}' }, - { deviceType: '05', orderNum: 5, operateCode: '203', tip: 'Left click [Foece to station control', val: '{2}' }, - { deviceType: '05', orderNum: 6, operateCode: '2033', tip: 'Left click [confirm] ', val: '{2}' }, - { deviceType: '05', orderNum: 7, operateCode: '0013', tip: 'Left click [confirm] ' }, - { deviceType: 'bar', orderNum: 8, operateCode: '000', tip: 'Left click [close] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0501', - skinCode: '05', - trainingName: 'Detain Train({10}-{12}station)', - trainingRemark: 'Set the detaining function', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '504', tip: 'Right click to select [Detain Train]' }, - { deviceType: '06', orderNum: 2, operateCode: '504', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0502', - skinCode: '05', - trainingName: 'Cancel Detaining({10}-{12}The platform)', - trainingRemark: 'Set cancelling detaining function', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '505', tip: 'Right click to select [Cancel Detaining]]' }, - { deviceType: '06', orderNum: 2, operateCode: '505', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0503', - skinCode: '05', - trainingName: 'Force Canceling Detaining({10}-{12}The platform)', - trainingRemark: 'Force to cancel train detaining function', - trainingType: '05', - productTypes: ['01'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '506', tip: 'Right click to select [Force Canceling Detaining]' }, - { deviceType: '06', orderNum: 2, operateCode: '506', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0504', - skinCode: '05', - trainingName: 'Cancel train detaining along the whole line({10}-{12}The platform)', - trainingRemark: 'Cancel train detaining along the whole line (default the whole uplink and downlink )', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '508', tip: 'Right click to select [Cancel train detaining along the whole line]' }, - { deviceType: '06', orderNum: 2, operateCode: '508', tip: 'Left click [confirm] ', val: '{11}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0504', - skinCode: '05', - trainingName: 'Cancel train detaining along the whole line({10}-{12}The platform)', - trainingRemark: 'Cancel train detaining along the whole line (select the uplink or downlink ))', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '508', tip: 'Right click to select [Cancel train detaining along the whole line]' }, - { deviceType: '06', orderNum: 2, operateCode: '5081', tip: 'Right click to select[{14}the whole line', val: '{13}' }, - { deviceType: '06', orderNum: 3, operateCode: '508', tip: 'Left click [confirm]', val: '{13}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0505', - skinCode: '05', - trainingName: 'Skip this station to continue moving({10}-{12}The platform)', - trainingRemark: 'Set the skip to continue moving function', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '502', tip: 'Right click to select [Skip this station to continue moving]' }, - { deviceType: '06', orderNum: 2, operateCode: '502', tip: 'Left click [confirm]', val: '{11}' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0506', - skinCode: '05', - trainingName: 'Cancel skiping({10}-{12}The platform)', - trainingRemark: 'Set cancelling skiping function', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '503', tip: 'Right click to select [Cancel skiping]' }, - { deviceType: '06', orderNum: 2, operateCode: '503', tip: 'Left click [confirm]', val: '{11}' } - ] - }, - { - maxDuration: 8, - minDuration: 5, - operateType: '0507', - skinCode: '05', - trainingName: 'Query Platform status({10}-{12}The platform)', - trainingRemark: 'Query platform status function', - trainingType: '05', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '507', tip: 'Right click to select [Query Platform status]' }, - { deviceType: '06', orderNum: 2, operateCode: '0012', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '05', - trainingName: 'Set the stop time({10}-{12}The platform)', - trainingRemark: 'Set the stop time (auto, permanent validity)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: 'Right click to select [Set the stop time]' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: 'Left click to select [auto]', val: '01' }, - { deviceType: '06', orderNum: 3, operateCode: '509', tip: 'Left click [confirm] ', val: '01::20::true' }, - { deviceType: '06', orderNum: 4, operateCode: '5091', tip: 'Left click [confirm] ', val: '01::20::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '05', - trainingName: 'Set the stop time({10}-{12}The platform)', - trainingRemark: 'Set the stop time (manual, 20 seconds, permanent validity)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: 'Right click to select [Set the stop time]' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: 'Left click to select [manual]', val: '02' }, - { deviceType: '06', orderNum: 3, operateCode: '5094', tip: 'Set time [20]', val: '20' }, - { deviceType: '06', orderNum: 4, operateCode: '509', tip: 'Left click [confirm] ', val: '02::20::true' }, - { deviceType: '06', orderNum: 5, operateCode: '5091', tip: 'Left click [confirm]', val: '02::20::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0508', - skinCode: '05', - trainingName: 'Set the stop time({10}-{12}The platform)', - trainingRemark: 'Set the stop time (manual, 20 seconds, once valid )', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '509', tip: 'Right click to select [Set the stop time]' }, - { deviceType: '06', orderNum: 2, operateCode: '5092', tip: 'Left click to select [manual]', val: '02' }, - { deviceType: '06', orderNum: 3, operateCode: '5094', tip: 'Set time [20]', val: '20' }, - { deviceType: '06', orderNum: 4, operateCode: '5093', tip: 'Left click to select "once valid ".', val: 'false' }, - { deviceType: '06', orderNum: 5, operateCode: '509', tip: 'Left click [confirm] ', val: '02::20::false' }, - { deviceType: '06', orderNum: 6, operateCode: '5091', tip: 'Left click [confirm] ', val: '02::20::false' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0509', - skinCode: '05', - trainingName: 'Set Operation speed Level({10}-{12}The platform)', - trainingRemark: 'Set Operation speed Level(set the interval running time to 60, permanent validity)', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '510', tip: 'Right click to select [Set Operation speed Level]' }, - { deviceType: '06', orderNum: 2, operateCode: '5101', tip: 'Left click to select [60]', val: '60' }, - { deviceType: '06', orderNum: 3, operateCode: '510', tip: 'Left click [confirm] ', val: '60::true' }, - { deviceType: '06', orderNum: 4, operateCode: '5102', tip: 'Left click [confirm] ', val: '60::true' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0509', - skinCode: '05', - trainingName: 'Set Operation speed Level({10}-{12}The platform)', - trainingRemark: 'Set Operation speed Level (set the interval running time to 60, once valid )', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '510', tip: 'Right click to select [Set Operation speed Level]' }, - { deviceType: '06', orderNum: 2, operateCode: '5101', tip: 'Left click to select [60]', val: '60' }, - { deviceType: '06', orderNum: 3, operateCode: '5103', tip: 'Left click to cancel [permanent validity].', val: 'false' }, - { deviceType: '06', orderNum: 4, operateCode: '510', tip: 'Left click [confirm] ', val: '60::false' }, - { deviceType: '06', orderNum: 5, operateCode: '5102', tip: 'Left click [confirm] ', val: '60::false' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0510', - skinCode: '05', - trainingName: 'Set departure in advance({10}-{12}The platform)', - trainingRemark: 'Set departure inadvance function', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '501', tip: 'Right click to select [Set departure in advance]' }, - { deviceType: '06', orderNum: 2, operateCode: '501', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0511', - skinCode: '05', - trainingName: 'Manual return strategy setting({10}-{12}The platform)', - trainingRemark: 'Manual return strategy setting function', - trainingType: '05', - productTypes: ['02'], - stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '511', tip: 'Right click to select [Manual return strategy setting]' }, - { deviceType: '06', orderNum: 2, operateCode: '5111', tip: 'Left click to select [No return]".', val: '01' }, - { deviceType: '06', orderNum: 3, operateCode: '511', tip: 'Left click [confirm] ', val: '01' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0401', - skinCode: '05', - trainingName: 'Section fault unlocking({8}{9})', - trainingRemark: 'Fault unlocking', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '402', tip: 'Right click to select [Section fault unlocking]' }, - { deviceType: '03', orderNum: 2, operateCode: '4026', tip: 'Left click [Execute] ' }, - { deviceType: '03', orderNum: 3, operateCode: '4024', tip: 'Left click [ok 1] ' }, - { deviceType: '03', orderNum: 4, operateCode: '4025', tip: 'Left click [ok 2] ' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: 'Left click [close] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0402', - skinCode: '05', - trainingName: 'Section resection({8}{9})', - trainingRemark: 'Section resection', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '405', tip: 'Right click to select [Section resection]' }, - { deviceType: '03', orderNum: 2, operateCode: '405', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0403', - skinCode: '05', - trainingName: 'Section activation({8}{9})', - trainingRemark: 'Section activation function', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '406', tip: 'Right click to select [Section activation]' }, - { deviceType: '03', orderNum: 2, operateCode: '406', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0404', - skinCode: '05', - trainingName: 'Axis pre-reset({8}{9})', - trainingRemark: 'Axis pre-reset function', - trainingType: '04', - productTypes: ['01'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '409', tip: 'Right click to select [Axis pre-reset]' }, - { deviceType: '03', orderNum: 2, operateCode: '4091', tip: 'Left click [Execute]' }, - { deviceType: '03', orderNum: 3, operateCode: '4093', tip: 'Left click [confirm1]' }, - { deviceType: '03', orderNum: 4, operateCode: '4094', tip: 'Left click [confirm2]' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0405', - skinCode: '05', - trainingName: 'Section blockade({8}{9})', - trainingRemark: 'Section blockade function', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '403', tip: 'Right click to select [Section blockade]' }, - { deviceType: '03', orderNum: 2, operateCode: '403', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0406', - skinCode: '05', - trainingName: 'Section unblockade({8}{9})', - trainingRemark: 'Section unblockade function', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '404', tip: 'Right click to select [Section unblockade]' }, - { deviceType: '03', orderNum: 2, operateCode: '4041', tip: 'Left click [Execute]' }, - { deviceType: '03', orderNum: 3, operateCode: '4043', tip: 'Left click [confirm1]' }, - { deviceType: '03', orderNum: 4, operateCode: '4044', tip: 'Left click [confirm2]' }, - { deviceType: '03', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0407', - skinCode: '05', - trainingName: 'Set speed limit on the section({8}{9})', - trainingRemark: 'Set speed limit on the section (speed limit value: 5)', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '407', tip: 'Right click to select [Set speed limit on the section]' }, - { deviceType: '03', orderNum: 2, operateCode: '4076', tip: 'Left click to select [speed limit 5] ', val: '5' }, - { deviceType: '03', orderNum: 3, operateCode: '4071', tip: 'Left click [Execute]' }, - { deviceType: '03', orderNum: 4, operateCode: '4072', tip: 'Left click [confirm]' }, - { deviceType: '03', orderNum: 5, operateCode: '4073', tip: 'Left click [confirm1]' }, - { deviceType: '03', orderNum: 6, operateCode: '4074', tip: 'Left click [confirm2]', val: '5' }, - { deviceType: '03', orderNum: 7, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0408', - skinCode: '05', - trainingName: 'Cancel speed limit on the section({8}{9})', - trainingRemark: 'Cancel speed limit on the section', - trainingType: '04', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '03', orderNum: 1, operateCode: '408', tip: 'Right click to select [Cancel speed limit on the section]' }, - { deviceType: '03', orderNum: 2, operateCode: '4081', tip: 'Left click [Execute]' }, - { deviceType: '03', orderNum: 3, operateCode: '4082', tip: 'Left click [confirm] ' }, - { deviceType: '03', orderNum: 4, operateCode: '4083', tip: 'Left click [confirm1]' }, - { deviceType: '03', orderNum: 5, operateCode: '4084', tip: 'Left click [confirm2]', val: '5' }, - { deviceType: '03', orderNum: 6, operateCode: '001', tip: 'Left click [close]' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0301', - skinCode: '05', - trainingName: 'Single lock of turnout({7})', - trainingRemark: 'Single lock of turnout', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '103', tip: 'Right click to select [Single lock of turnout]' }, - { deviceType: '02', orderNum: 2, operateCode: '103', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0302', - skinCode: '05', - trainingName: 'Single release of turnout({7})', - trainingRemark: 'Single release of turnout', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '104', tip: 'Right click to select [Single release of turnout]' }, - { deviceType: '02', orderNum: 2, operateCode: '1041', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 3, operateCode: '1043', tip: 'Left click [confirm1] ' }, - { deviceType: '02', orderNum: 4, operateCode: '1044', tip: 'Left click [confirm2] ' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: 'Left click [close] '} - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0303', - skinCode: '05', - trainingName: 'Turnout section closure({7})', - trainingRemark: 'Turnout section closure ', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '105', tip: 'Right click to select [Turnout section closure]' }, - { deviceType: '02', orderNum: 2, operateCode: '105', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0304', - skinCode: '05', - trainingName: 'Turnout section unsealing({7})', - trainingRemark: 'Turnout section unsealing function', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '106', tip: 'Right click to select [Turnout section unsealing]' }, - { deviceType: '02', orderNum: 2, operateCode: '1061', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 3, operateCode: '1063', tip: 'Left click [confirm1]' }, - { deviceType: '02', orderNum: 4, operateCode: '1064', tip: 'Left click [confirm2]' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0305', - skinCode: '05', - trainingName: 'Turnout rotation({7})', - trainingRemark: 'Turnout rotation({15}turn{16})', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '107', tip: 'Right click to select [Turnout rotation]' }, - { deviceType: '02', orderNum: 2, operateCode: '107', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 20, - minDuration: 10, - operateType: '0306', - skinCode: '05', - trainingName: 'Turnout section fault unlocking({7})', - trainingRemark: 'Turnout section fault unlocking function', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '109', tip: 'Right click to select [Turnout section fault unlocking]' }, - { deviceType: '02', orderNum: 2, operateCode: '1091', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 3, operateCode: '1093', tip: 'Left click [confirm1]' }, - { deviceType: '02', orderNum: 4, operateCode: '1094', tip: 'Left click [confirm2]' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0307', - skinCode: '05', - trainingName: 'Turnout section axile pre reset({7})', - trainingRemark: 'Turnout section axile pre reset function', - trainingType: '03', - productTypes: ['01'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '110', tip: 'Right click to select [Turnout section axile pre reset]' }, - { deviceType: '02', orderNum: 2, operateCode: '1101', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 3, operateCode: '1103', tip: 'Left click [confirm1]' }, - { deviceType: '02', orderNum: 4, operateCode: '1104', tip: 'Left click [confirm2]' }, - { deviceType: '02', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0308', - skinCode: '05', - trainingName: 'Section resection({7})', - trainingRemark: 'Section resection', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '111', tip: 'Right click to select [Section resection]' }, - { deviceType: '02', orderNum: 2, operateCode: '111', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0309', - skinCode: '05', - trainingName: 'Section activation({7})', - trainingRemark: 'Section activation function', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '112', tip: 'Right click to select [Section activation]' }, - { deviceType: '02', orderNum: 2, operateCode: '112', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0310', - skinCode: '05', - trainingName: 'Set speed limit on the turnout section({7})', - trainingRemark: 'Set speed limit on the section (speed limit value: 5)', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '113', tip: 'Right click to select [Set speed limit on the turnout section]' }, - { deviceType: '02', orderNum: 2, operateCode: '1136', tip: 'Left click to select [speed limit 5] ', val: '5' }, - { deviceType: '02', orderNum: 3, operateCode: '1131', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 4, operateCode: '1132', tip: 'Left click [confirm]' }, - { deviceType: '02', orderNum: 5, operateCode: '1133', tip: 'Left click [confirm1]' }, - { deviceType: '02', orderNum: 6, operateCode: '1134', tip: 'Left click [confirm2]', val: '5' }, - { deviceType: '02', orderNum: 7, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0311', - skinCode: '05', - trainingName: 'Cancel speed limit on the turnout section({7})', - trainingRemark: 'Cancel speed limit on the turnout section', - trainingType: '03', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '02', orderNum: 1, operateCode: '114', tip: 'Right click to select [Cancel speed limit on the turnout section]' }, - { deviceType: '02', orderNum: 2, operateCode: '1141', tip: 'Left click [Execute]' }, - { deviceType: '02', orderNum: 3, operateCode: '1142', tip: 'Left click [confirm] ' }, - { deviceType: '02', orderNum: 4, operateCode: '1143', tip: 'Left click [confirm1]' }, - { deviceType: '02', orderNum: 5, operateCode: '1144', tip: 'Left click [confirm2]', val: '5' }, - { deviceType: '02', orderNum: 6, operateCode: '001', tip: 'Left click [close]' } - ] - }, - - { - maxDuration: 15, - minDuration: 8, - operateType: '0201', - skinCode: '05', - trainingName: 'Route selection({3})', - trainingRemark: 'Route selection', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '301', tip: 'Right click to select [Route selection]' }, - { deviceType: '04', orderNum: 2, operateCode: '3011', tip: 'Left click to select the route name【{3}】', val: '{4}' }, - { deviceType: '04', orderNum: 3, operateCode: '301', tip: 'Left click [confirm] ' }, - { deviceType: '04', orderNum: 4, operateCode: '3012', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0202', - skinCode: '05', - trainingName: 'Cancel the route({3})', - trainingRemark: 'Cancel the route', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '303', tip: 'Right click to select [Cancel the route]' }, - { deviceType: '04', orderNum: 2, operateCode: '303', tip: 'Left click [confirm] ' }, - { deviceType: '04', orderNum: 3, operateCode: '3031', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0202', - skinCode: '05', - trainingName: 'Cancel the route({3})', - trainingRemark: 'Cancel the route', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '303', tip: 'Right click to select [Cancel the route]' }, - { deviceType: '04', orderNum: 2, operateCode: '303', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0203', - skinCode: '05', - trainingName: 'Signal closure({5})', - trainingRemark: 'Signal closure', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '306', tip: 'Right click to select [Signal closure]' }, - { deviceType: '04', orderNum: 2, operateCode: '306', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0204', - skinCode: '05', - trainingName: 'Signal unsealing({5})', - trainingRemark: 'Signal unsealing', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '307', tip: 'Right click to select [Signal unsealing]' }, - { deviceType: '04', orderNum: 2, operateCode: '3071', tip: 'Left click [Execute]' }, - { deviceType: '04', orderNum: 3, operateCode: '3072', tip: 'Left click [confirm]' }, - { deviceType: '04', orderNum: 4, operateCode: '3073', tip: 'Left click [confirm1]' }, - { deviceType: '04', orderNum: 5, operateCode: '3074', tip: 'Left click [confirm2]' }, - { deviceType: '04', orderNum: 6, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0205', - skinCode: '05', - trainingName: 'Signal Off({3})', - trainingRemark: 'Signal Off', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '313', tip: 'Right click to select [Signal Off]' }, - { deviceType: '04', orderNum: 2, operateCode: '313', tip: 'Left click [confirm]' }, - { deviceType: '04', orderNum: 3, operateCode: '3131', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0206', - skinCode: '05', - trainingName: 'Signal reopen({3})', - trainingRemark: 'Signal reopen', - trainingType: '02', - productTypes: ['01', '02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '304', tip: 'Right click to select [Signal reopen]' }, - { deviceType: '04', orderNum: 2, operateCode: '304', tip: 'Left click [confirm]' }, - { deviceType: '04', orderNum: 3, operateCode: '3041', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0207', - skinCode: '05', - trainingName: 'Guide route handling({3})', - trainingRemark: 'Guide route handling', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '308', tip: 'Right click to select [Guide route handling]' }, - { deviceType: '04', orderNum: 2, operateCode: '3081', tip: 'Left click [Execute]' }, - { deviceType: '04', orderNum: 3, operateCode: '3083', tip: 'Left click [confirm1]' }, - { deviceType: '04', orderNum: 4, operateCode: '3084', tip: 'Left click [confirm2]' }, - { deviceType: '04', orderNum: 5, operateCode: '001', tip: 'Left click [close]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0208', - skinCode: '05', - trainingName: 'Start automatic routing({5})', - trainingRemark: 'Start automatic routing', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '315', tip: 'Right click to select [Start automatic routing]' }, - { deviceType: '04', orderNum: 2, operateCode: '3151', tip: 'Left click to select the route based on the manual control state', val: '{6}' }, - { deviceType: '04', orderNum: 3, operateCode: '315', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0209', - skinCode: '05', - trainingName: 'Close automatic routing({5})', - trainingRemark: 'Close automatic routing', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '314', tip: 'Right click to select [Close automatic routing]' }, - { deviceType: '04', orderNum: 2, operateCode: '3141', tip: 'Left click to select the first route', val: '{6}' }, - { deviceType: '04', orderNum: 3, operateCode: '314', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0210', - skinCode: '05', - trainingName: 'Route control status query({5})', - trainingRemark: 'Query the route control status ', - trainingType: '02', - productTypes: ['02'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '316', tip: 'Right click to select [Route control status query]' }, - { deviceType: '04', orderNum: 2, operateCode: '316', tip: 'Left click [confirm] ' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0211', - skinCode: '05', - trainingName: 'Set Interlock for Auto Routing({5})', - trainingRemark: 'Set Interlock for Auto Routing', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '309', tip: 'Right click to select [Set Interlock for Auto Routing]' }, - { deviceType: '04', orderNum: 2, operateCode: '309', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0212', - skinCode: '05', - trainingName: 'Cancel Interlock setting for Auto Routing({5})', - trainingRemark: 'Cancel Interlock setting for Auto Routing', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '310', tip: 'Right click to select [Cancel Interlock setting for Auto Routing]' }, - { deviceType: '04', orderNum: 2, operateCode: '310', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0213', - skinCode: '05', - trainingName: 'Set Interlock for Auto Trigger({5})', - trainingRemark: 'Set Interlock for Auto Trigger', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '311', tip: 'Right click to select [Set Interlock for Auto Trigger]' }, - { deviceType: '04', orderNum: 2, operateCode: '311', tip: 'Left click [confirm]' } - ] - }, - { - maxDuration: 15, - minDuration: 8, - operateType: '0214', - skinCode: '05', - trainingName: 'Cancel Interlock setting for Auto Trigger({5})', - trainingRemark: 'Cancel Interlock setting for Auto Trigger', - trainingType: '02', - productTypes: ['01'], - stepVOList: [ - { deviceType: '04', orderNum: 1, operateCode: '312', tip: 'Right click to select[Cancel Interlock setting for Auto Trigger]' }, - { deviceType: '04', orderNum: 2, operateCode: '312', tip: 'Left click [confirm]' } - ] - } - ] -}; diff --git a/src/jmapNew/theme/xian_03/planConvert.js b/src/jmapNew/theme/xian_03/planConvert.js deleted file mode 100644 index fdbf73e59..000000000 --- a/src/jmapNew/theme/xian_03/planConvert.js +++ /dev/null @@ -1,325 +0,0 @@ -import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan'; - -export default { - /** 边缘高度*/ - EdgeHeight: 600, - - /** 间隔高度*/ - CoordMultiple: 1, - - /** 偏移时间*/ - TranslationTime: 60 * 60 * 2, - - /** excel解析配置*/ - ExcelConfig: { - beginRow: 1, - beginCol: 0, - fieldNum: 6, - sepField: '车次号', - columns: { - '停车站名称': { key: 'stationName', formatter: (val) => { return val; } }, - '到达时间': { key: 'arriveTime', formatter: (val) => { return val; } }, - '出发时间': { key: 'departureTime', formatter: (val) => { return val; } } - } - }, - - /** 解析exal数据转换为Json后台数据*/ - importData(Sheet, JsonData) { - const dataList = convertSheetToList(Sheet, true); - const needList = Object.keys(this.ExcelConfig.columns); - - if (dataList && dataList.length) { - for (let colIndex = this.ExcelConfig.beginCol; colIndex < dataList.length; colIndex += this.ExcelConfig.fieldNum + 1) { - let isContinue = true; - let tripObj = { code: '', directionCode: '', arrivalList: [] }; - for (let rowIndex = this.ExcelConfig.beginRow; isContinue; rowIndex += 1) { - isContinue = false; - - const stationObj = {}; - for (let index = 0; index < this.ExcelConfig.fieldNum; index += 1) { - if (dataList[colIndex + index]) { - const title = dataList[colIndex + index][0]; - const value = dataList[colIndex + index][rowIndex]; - - if (title && value) { - // 数据列解析 - isContinue = true; - const titleStr = `${title}`.trim(); - let valueStr = `${value}`.trim(); - - if (titleStr == this.ExcelConfig.sepField) { - valueStr = `${dataList[colIndex + index - 1][rowIndex]}${valueStr}`; - if (tripObj.code) { - const length = tripObj.arrivalList.length; - if (length == 1) { - tripObj.arrivalList[0]['flag'] = true; - } - if (valueStr != tripObj.code) { - JsonData.push(tripObj); - const strVal = `${value}`.trim(); - tripObj = { code: valueStr, directionCode: strVal[0], arrivalList: [] }; - } - } else { - const strVal = `${value}`.trim(); - tripObj.code = valueStr; - tripObj.directionCode = strVal[0]; - } - } - - // 取需要的字段 - if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { - stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr); - if (this.ExcelConfig.columns[titleStr].key == 'arriveTime' || this.ExcelConfig.columns[titleStr].key == 'departureTime') { - stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(prefixTime(valueStr)); - } - } - } - } - } - - // 添加字段值 - if (Object.keys(stationObj).length) { - if (stationObj.arriveTime) { - tripObj.arrivalList.push(stationObj); - } - } - } - - // 添加最后那条没有车次的记录 - if (tripObj.code) { - const length = tripObj.arrivalList.length; - if (length) { - tripObj.arrivalList[length - 1]['flag'] = true; - } - JsonData.push(tripObj); - } - } - } - - return JsonData; - }, - - /** 将后台数据解析成图表*/ - convertDataToModels(data, stations, kmRangeCoordMap, lineStyle) { - var models = []; - - if (data && data.serviceNumberDataList && data.serviceNumberDataList.length) { - /** 按服务遍历数据*/ - data.serviceNumberDataList.forEach((service) => { - /** 按车次遍历数据*/ - var isBackup = true; - var opt = { name: '', markPointData: [], data: [] }; - if (service.tripNumberDataList && service.tripNumberDataList.length) { - service.tripNumberDataList.forEach((train, j) => { - var pointdata = {}; - var idx = 0; - var num = 0; - var lastPoint = null; - var nextPoint = null; - - /** 如果车次号为空,不显示名称*/ - if (train.tripNumber) { - /** 创建标记点名称和坐标*/ - // pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`; - pointdata.name = `${service.serviceNumber}${train.tripNumber}`; - pointdata.color = '#000' || lineStyle.color; - pointdata.directionCode = train.directionCode; - pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)]; - - /** 给服务对象添加服务名称和标记点*/ - opt.markPointData.push(createMartPoint(pointdata)); - /** 创建服务号名称*/ - opt.name = `${service.serviceNumber}`; - } - - /** 计算非折返点车次点坐标集合*/ - train.stationTimeList.forEach((elem, index) => { - idx = index; - if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode || - index == train.stationTimeList.length - 2 && train.stationTimeList[index].secondTime != train.stationTimeList[index + 1].secondTime || - index > 0 && index < train.stationTimeList.length - 1) { - const aa = `${train.directionCode}${train.tripNumber}`; - opt.data.push([elem.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]); - } - }); - - /** 计算折返点车次坐标点集合*/ - if (!train.backup && train.reentry && service.tripNumberDataList[j + 1] && service.tripNumberDataList[j + 1].stationTimeList) { - lastPoint = train.stationTimeList[idx - 1]; - nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1]; - num = this.computedReentryNumber(train.tripNumber); - const aa = `${train.directionCode}${train.tripNumber}`; - opt.data.push([lastPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode, aa]); - opt.data.push([nextPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode, aa]); - } - - /** 如果是备用车,按车次添加线*/ - if (train.backup) { - /** 创建一条完成的服务数据*/ - opt.name += j; - var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle)); - if (model) { - models.push(model); - opt = { name: '', markPointData: [], data: [] }; - } - } - - isBackup = train.backup; - }); - - // 不是备用车,按服务添加线 - if (!isBackup) { - /** 创建一条完成的服务数据*/ - var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle)); - if (model) { - models.push(model); - } - } - } - }); - return models; - } else { - return []; - } - }, - - /** 更新数据并解析成图表*/ - updateDataToModels(data, stations, kmRangeCoordMap, runPlanData, series, lineStyle) { - if (data && data.length) { - data.forEach(elem => { - /** 判断此条记录的服务号是否存在*/ - if (!runPlanData[elem.serviceNumber]) { - /** 创建一个新服务号标记*/ - runPlanData[elem.serviceNumber] = {}; - - /** 不存在此服务号,则需要创建一条新的line*/ - series.push(createSeriesModel({ - zlevel: 1, - name: `run${elem.serviceNumber}`, - data: [], - markPointData: [] - }, Object.assign({ color: hexColor.toCreate() }, lineStyle))); - } - - /** 添加数据*/ - series.forEach(serie => { - /** 找到服务号所在图数据的位置*/ - if (serie.name == `run${elem.serviceNumber}`) { - /** 添加车组号记录标记*/ - if (!runPlanData[elem.serviceNumber][elem.tripNumber]) { - runPlanData[elem.serviceNumber][elem.tripNumber] = []; - } - - runPlanData[elem.serviceNumber][elem.tripNumber].push(elem); - runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => { - return parseInt(a.secondTime) - parseInt(b.secondTime); - }); - - /** 如果此记录车组号的数据为第一条时,则打上标签*/ - if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) { - serie.markPoint.data.push(createMartPoint({ - directionCode: elem.directionCode, - coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)], - name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`, - color: lineStyle.color || '#000' - })); - } - - /** 计算折返点*/ - var nextPoint = [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode]; - if (serie.data.length > 0) { - var lastPoint = serie.data[serie.data.length - 1]; - if (lastPoint[2] !== nextPoint[2]) { - var num = this.computedReentryNumber(elem.tripNumber); - serie.data.push([lastPoint[0], this.getYvalueByDirectionCode(lastPoint[1], lastPoint[2], num), lastPoint[2]]); - serie.data.push([nextPoint[0], this.getYvalueByDirectionCode(nextPoint[1], lastPoint[2], num), lastPoint[2]]); - } - } - - /** 添加车组号数据到对应的服务图数据中*/ - serie.data.push(nextPoint); - - /** 保证原始数据排序*/ - serie.data.sort((a, b) => { - return parseInt(a[0]) - parseInt(b[0]); - }); - } - }); - }); - } - - return series; - }, - - /** 初始化Y轴*/ - initializeYaxis(stations) { - return createMarkLineModels(stations, (elem) => { - return this.EdgeHeight + elem.kmRange * this.CoordMultiple; - }); - }, - - /** 将后台数据转换为试图序列模型*/ - convertStationsToMap(stations) { - var map = {}; - if (stations && stations.length) { - stations.forEach((elem) => { - map[`${elem.kmRange}`] = this.EdgeHeight + elem.kmRange * this.CoordMultiple; - }); - } - - return map; - }, - - /** 计算y轴最小值*/ - computedYaxisMinValue(stations) { - return stations[0].kmRange * this.CoordMultiple; - }, - - /** 计算y轴最大值*/ - computedYaxisMaxValue(stations) { - return stations[stations.length - 1].kmRange * this.CoordMultiple + this.EdgeHeight * 2; - }, - - /** 格式化y轴数据*/ - computedFormatYAxis(stations, params) { - var yText = '0m'; - - stations.forEach(elem => { - if (elem.kmRange < parseInt(params.value) / this.CoordMultiple - this.EdgeHeight) { - yText = Math.floor(elem.kmRange) + 'm'; - } - }); - - return yText; - }, - - /** 根据是否和上一个车次是否相交,计算下一个车次的折返的高度*/ - computedReentryNumber(code) { - return parseInt(code || 1) % 2 ? 1 : 2; - }, - - /** 根据方向计算y折返偏移量*/ - getYvalueByDirectionCode(defaultVlue, directionCode, num) { - if (directionCode === '1') { - defaultVlue -= this.EdgeHeight / 2 * num; - } else if (directionCode === '2') { - defaultVlue += this.EdgeHeight / 2 * num; - } - - return defaultVlue; - }, - - /** 根据elem计算y值*/ - getCoordYByElem(stations, kmRangeCoordMap, elem, directionCode, isSpecial, num) { - var defaultVlue = 0; - var station = stations.find(it => { return it.code == elem.stationCode; }); - if (station) { - defaultVlue = kmRangeCoordMap[`${station.kmRange}`]; - if (isSpecial) { - defaultVlue = this.getYvalueByDirectionCode(defaultVlue, directionCode, num); - } - } - - return defaultVlue; - } -}; From 275e4bab27598b076456fe455537fec3967baf7d Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Mon, 11 May 2020 10:13:54 +0800 Subject: [PATCH 02/48] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BB=B4?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=A1=B5=E9=9D=A2=E9=81=93=E5=B2=94=E8=BD=AC?= =?UTF-8?q?=E8=BE=99=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jl3ddevice/component/moveanimate.js | 674 ++++++++++++++++++ .../jl3ddevice/component/textconfig.js | 119 ++++ src/jlmap3d/jl3ddevice/config.js | 2 +- src/jlmap3d/jl3ddevice/jl3ddeviceNew.js | 87 ++- src/jlmap3d/jl3ddevice/loader.js | 2 +- .../jlmap3d/device/component/devicelist.vue | 150 ++++ .../jlmap3d/device/component/devicemsg.vue | 93 +++ src/views/jlmap3d/device/jl3ddevice.vue | 81 ++- .../jlmap3d/devicetrain/jl3ddevicetrain.vue | 6 - src/views/newMap/displayNew/index.vue | 20 +- 10 files changed, 1210 insertions(+), 24 deletions(-) create mode 100644 src/jlmap3d/jl3ddevice/component/moveanimate.js create mode 100644 src/jlmap3d/jl3ddevice/component/textconfig.js create mode 100644 src/views/jlmap3d/device/component/devicelist.vue create mode 100644 src/views/jlmap3d/device/component/devicemsg.vue diff --git a/src/jlmap3d/jl3ddevice/component/moveanimate.js b/src/jlmap3d/jl3ddevice/component/moveanimate.js new file mode 100644 index 000000000..ed16bea95 --- /dev/null +++ b/src/jlmap3d/jl3ddevice/component/moveanimate.js @@ -0,0 +1,674 @@ + +export function Moveanimate(main){ + let scope = this; + + this.helpbox = null; + this.textplane = null; + //动画列表 + this.animatelist = []; + this.playlist = null; + this.playorder = 0; + //动画播放器开关 + this.enable = true; + //动画开关状态 + this.status = true; + //当前动画模型 + this.nowmodelname = undefined; + //定义所有继电器部件动画 + // this.initlist = function(modellist){ + // + // for(let j=0,lenj=modellist.length;j=1){ + let point = scope.playlist[scope.playorder][i].curve.getPointAt(1); + //更新模型坐标 + scope.playlist[scope.playorder][i].connectmodel.position.x = point.x; + scope.playlist[scope.playorder][i].connectmodel.position.y = point.y; + scope.playlist[scope.playorder][i].connectmodel.position.z = point.z; + scope.playlist[scope.playorder][i].enable = false; + scope.playlist[scope.playorder][i].status = "end"; + scope.playlist[scope.playorder][i].progress = 0; + + + if(i >= scope.playlist[scope.playorder].length-1){ + if(scope.playorder >= scope.playlist.length-1 ){ + scope.playlist = null; + scope.status = true; + scope.enable = false; + main.animationmsgshowoff(); + scope.nowmodelname = undefined; + scope.playorder = null; + break; + }else{ + scope.playorder += 1; + } + } + + + }else{ + // console.log(scope.animatelist[k].connectmodel); + if(scope.nowmodelname != scope.playlist[scope.playorder][i].connectmodel.name){ + scope.nowmodelname = scope.playlist[scope.playorder][i].connectmodel.name; + main.animationmsgshowon(scope.playlist[scope.playorder][i].connectmodel); + } + //根据动画进度获取动画轨迹上点 + scope.status = false; + let point = scope.playlist[scope.playorder][i].curve.getPointAt(scope.playlist[scope.playorder][i].progress); + + //更新模型坐标 + scope.playlist[scope.playorder][i].connectmodel.position.x = point.x; + scope.playlist[scope.playorder][i].connectmodel.position.y = point.y; + scope.playlist[scope.playorder][i].connectmodel.position.z = point.z; + + if(scope.helpbox){ + scope.helpbox.update(); + } + if(scope.textplane){ + + scope.textplane.position.x = scope.playlist[scope.playorder][i].connectmodel.matrixWorld.elements[12]; + scope.textplane.position.y = scope.playlist[scope.playorder][i].connectmodel.matrixWorld.elements[13]+100; + scope.textplane.position.z = scope.playlist[scope.playorder][i].connectmodel.matrixWorld.elements[14]; + } + //判断模型转向 + if(scope.playlist[scope.playorder][i].directchange){ + let tangent = scope.playlist[scope.playorder][i].curve.getPointAt(scope.playlist[scope.playorder][i].progress+0.001); + // scope.animatelist[k] + tangent = null; + } + //增加动画进度,释放点变量 + scope.playlist[scope.playorder][i].progress += scope.playlist[scope.playorder][i].speed; + point = null; + + } + + } + + } + } + } + + +} diff --git a/src/jlmap3d/jl3ddevice/component/textconfig.js b/src/jlmap3d/jl3ddevice/component/textconfig.js new file mode 100644 index 000000000..6cf74ae43 --- /dev/null +++ b/src/jlmap3d/jl3ddevice/component/textconfig.js @@ -0,0 +1,119 @@ + +export function Textconfig(){ + let scope = this; + + this.devicelist = []; + + this.jdqinit = function(){ + + } + + this.jdqraycast = function(){ + + } + + //配置继电器文字信息 + this.initdevicetext = function(selectmodel){ + if(scope.devicelist.length>0){ + scope.devicelist = []; + } + + for(let i=0,leni=selectmodel.children.length;i +
+
+ + + + + +
+
+

设备名称:{{part.text}}

+
+
+
+
+
+ + + +
+
+ + +
+ + + + + + + + diff --git a/src/views/jlmap3d/device/component/devicemsg.vue b/src/views/jlmap3d/device/component/devicemsg.vue new file mode 100644 index 000000000..607e104f8 --- /dev/null +++ b/src/views/jlmap3d/device/component/devicemsg.vue @@ -0,0 +1,93 @@ + + + + + + diff --git a/src/views/jlmap3d/device/jl3ddevice.vue b/src/views/jlmap3d/device/jl3ddevice.vue index a3f793f14..1cbb8da7b 100644 --- a/src/views/jlmap3d/device/jl3ddevice.vue +++ b/src/views/jlmap3d/device/jl3ddevice.vue @@ -1,6 +1,12 @@ @@ -115,4 +156,30 @@ left: 0; z-index: -12; } + + .windowbutton{ + width:25px; + height:25px; + position: absolute; + right:40px; + top:5px; + background-color:#00ff00; + } + .backbutton{ + width:25px; + height:25px; + position: absolute; + right:10px; + top:5px; + background-color:#ffff00; + } + + #canvastexture { + position: absolute; + float: left; + left: 0; + z-index: -12; + } + + diff --git a/src/views/jlmap3d/devicetrain/jl3ddevicetrain.vue b/src/views/jlmap3d/devicetrain/jl3ddevicetrain.vue index bcf9301b6..aae5efe36 100644 --- a/src/views/jlmap3d/devicetrain/jl3ddevicetrain.vue +++ b/src/views/jlmap3d/devicetrain/jl3ddevicetrain.vue @@ -528,12 +528,6 @@ word-wrap:break-word; letter-spacing:2px; } - #canvastexture { - position: absolute; - float: left; - left: 0; - z-index: -12; - } #testjlmap3d { } diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 0c0f7342f..db9268783 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -69,7 +69,14 @@ - + + + @@ -571,12 +578,11 @@ export default { window.open(routeData.href, '_blank', 'noopener noreferrer'); }, devicemodel() { - if (this.deviceShow == false) { - this.deviceShow = true; - } else { - this.deviceShow = false; - } - + if (this.deviceShow == false) { + this.deviceShow = true; + } else { + this.deviceShow = false; + } }, showScheduling() { this.$refs.scheduling.doShow(); From e5dca0b15b3aeb3f54b8ece44a9337b451b749ba Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 11 May 2020 10:44:00 +0800 Subject: [PATCH 03/48] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=89=A7=E6=9C=AC=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/simulation.js | 8 +++++ src/scripts/cmdPlugin/Handler.js | 2 +- .../scriptManage/display/tipScriptRecord.vue | 33 +++++++++++++------ .../scriptManage/scriptRecord/addAction.vue | 5 ++- 4 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/api/simulation.js b/src/api/simulation.js index eab1503f4..08fb6453a 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -185,6 +185,14 @@ export function saveScriptScenes(group) { }); } +/** 保存剧本背景(新版)*/ +export function saveScriptScenesNew(group) { + return request({ + url: `/api/scriptSimulation/${group}/saveScenes`, + method: 'put' + }); +} + /** 保存录制任务数据*/ export function saveScriptData(group) { return request({ diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js index ef0401301..e8ef1565f 100644 --- a/src/scripts/cmdPlugin/Handler.js +++ b/src/scripts/cmdPlugin/Handler.js @@ -103,7 +103,7 @@ class Handler { if (command) { // 判断当前是否是剧本 添加动作指令操作 if (store.state.scriptRecord.isScriptCommand) { - store.dispatch('scriptRecord/updateScriptCommand', {cmdType:operation.cmdType, param:command.get()}); + store.dispatch('scriptRecord/updateScriptCommand', {operationId:command.id, cmdType:operation.cmdType, param:command.get()}); resolve(rtn); } else { CommandHandler.execute(command.id, command.get()).then(response => { diff --git a/src/views/scriptManage/display/tipScriptRecord.vue b/src/views/scriptManage/display/tipScriptRecord.vue index 54d8bf1d2..75bd5b344 100644 --- a/src/views/scriptManage/display/tipScriptRecord.vue +++ b/src/views/scriptManage/display/tipScriptRecord.vue @@ -31,7 +31,7 @@ import Vue from 'vue'; import AddAction from '../scriptRecord/addAction'; import GetAction from '../scriptRecord/getAction'; import AddRole from '../scriptRecord/addRole'; -import {saveScriptScenes, saveScriptData, saveScriptDataNew, dumpScriptData, dumpScriptDataNew, updateMapLocation, scriptPause, executeScript} from '@/api/simulation'; +import {saveScriptScenes, saveScriptScenesNew, saveScriptData, saveScriptDataNew, dumpScriptData, dumpScriptDataNew, updateMapLocation, scriptPause, executeScript} from '@/api/simulation'; export default { name: 'TipScriptRecord', @@ -120,16 +120,29 @@ export default { const data = Vue.prototype.$jlmap.$options; const group = this.$route.query.group; const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY}; - saveScriptScenes(this.group).then(resp => { - updateMapLocation(group, dataZoom).then(response=>{ - this.$store.dispatch('scriptRecord/updateBgSet', true); - this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess')); - }).catch(error => { - this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`); + if (this.$route.query.drawWay == 'true') { + saveScriptScenesNew(this.group).then(resp => { + updateMapLocation(group, dataZoom).then(response=>{ + this.$store.dispatch('scriptRecord/updateBgSet', true); + this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess')); + }).catch(error => { + this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`); + }); + }).catch((error) => { + this.$messageBox(`${this.$t('scriptRecord.saveBackgroundFail')}: ${error.message}`); }); - }).catch(() => { - this.$messageBox(this.$t('scriptRecord.saveBackgroundFail')); - }); + } else { + saveScriptScenes(this.group).then(resp => { + updateMapLocation(group, dataZoom).then(response=>{ + this.$store.dispatch('scriptRecord/updateBgSet', true); + this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess')); + }).catch(error => { + this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`); + }); + }).catch((error) => { + this.$messageBox(`${this.$t('scriptRecord.saveBackgroundFail')}: ${error.message}`); + }); + } }, saveScenesData() { diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue index 7b3a02853..6f41f0aa0 100644 --- a/src/views/scriptManage/scriptRecord/addAction.vue +++ b/src/views/scriptManage/scriptRecord/addAction.vue @@ -204,6 +204,7 @@ export default { const operateTypeName = deviceTypeList[operateType]; this.executeCommandName = operateTypeName + '(' + val.cmdType.label + ')'; this.commandDataNew.action.operationType = val.cmdType.value; + this.commandDataNew.action.operationId = val.operationId; this.commandDataNew.action.commandParamList = val.param; this.messageTips2 = ''; } @@ -503,7 +504,9 @@ export default { } }, resetData() { - this.$refs.command.resetData(); + if (this.$route.query.drawWay == 'false') { + this.$refs.command.resetData(); + } } } }; From c8f858214cc82407503ee8ceca17b58b5f44ef4f Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 11 May 2020 11:31:55 +0800 Subject: [PATCH 04/48] =?UTF-8?q?=E5=89=A7=E6=9C=AC=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/api/simulation.js | 25 +++++++++++ src/scripts/cmdPlugin/CommandHandler.js | 10 +++++ .../scriptManage/display/tipScriptRecord.vue | 42 +++++++++++++------ .../scriptManage/scriptRecord/getAction.vue | 6 ++- 4 files changed, 69 insertions(+), 14 deletions(-) diff --git a/src/api/simulation.js b/src/api/simulation.js index 08fb6453a..aeb00fef7 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -218,6 +218,15 @@ export function updateMapLocation(group, data) { }); } +/** 更新任务地图定位信息(新版)*/ +export function updateMapLocationNew(group, data) { + return request({ + url: `/api/scriptSimulation/${group}/mapLocation`, + method: 'put', + data + }); +} + /** 获取剧本编制的所有成员角色*/ export function getScriptMemberData(group) { return request({ @@ -467,6 +476,14 @@ export function scriptPause(group) { }); } +/** 暂停仿真 */ +export function simulationPause(group) { + return request({ + url: `/api/simulation/${group}/pause`, + method: 'PUT' + }); +} + /** 恢复仿真运行并执行刚编辑的剧本动作 */ export function executeScript(group) { return request({ @@ -475,6 +492,14 @@ export function executeScript(group) { }); } +/** 恢复仿真运行并执行刚编辑的剧本动作(新版) */ +export function executeScriptNew(group) { + return request({ + url: `/api/scriptSimulation/${group}/recoverAndExecute`, + method: 'PUT' + }); +} + /** 生成用户自己的当日运行图*/ export function generateDayRunPlan(planId, group) { return request({ diff --git a/src/scripts/cmdPlugin/CommandHandler.js b/src/scripts/cmdPlugin/CommandHandler.js index 1297224b1..b709e2b03 100644 --- a/src/scripts/cmdPlugin/CommandHandler.js +++ b/src/scripts/cmdPlugin/CommandHandler.js @@ -8,6 +8,7 @@ class CommandHandle { this.data = []; this.definitionMap = { }; + this.scriptDefinitionMap = {}; } load(list) { @@ -17,6 +18,7 @@ class CommandHandle { }; (list || []).forEach(definition => { this.definitionMap[definition.simulationRole][definition.operate] = definition; + this.scriptDefinitionMap[definition.id] = definition; }); } @@ -29,6 +31,14 @@ class CommandHandle { } } + getScriptDefinition(operationId) { + if (operationId) { + return this.scriptDefinitionMap[operationId] || null; + } else { + return null; + } + } + getCommand(cmdType, wholeParam) { if (cmdType) { const command = new Command(); diff --git a/src/views/scriptManage/display/tipScriptRecord.vue b/src/views/scriptManage/display/tipScriptRecord.vue index 75bd5b344..af06d043d 100644 --- a/src/views/scriptManage/display/tipScriptRecord.vue +++ b/src/views/scriptManage/display/tipScriptRecord.vue @@ -31,7 +31,7 @@ import Vue from 'vue'; import AddAction from '../scriptRecord/addAction'; import GetAction from '../scriptRecord/getAction'; import AddRole from '../scriptRecord/addRole'; -import {saveScriptScenes, saveScriptScenesNew, saveScriptData, saveScriptDataNew, dumpScriptData, dumpScriptDataNew, updateMapLocation, scriptPause, executeScript} from '@/api/simulation'; +import {saveScriptScenes, saveScriptScenesNew, saveScriptData, saveScriptDataNew, dumpScriptData, dumpScriptDataNew, updateMapLocation, updateMapLocationNew, scriptPause, simulationPause, executeScript, executeScriptNew} from '@/api/simulation'; export default { name: 'TipScriptRecord', @@ -103,18 +103,36 @@ export default { } }, pauseScript() { - scriptPause(this.group).then(resp => { - this.$store.dispatch('scriptRecord/updateSimulationPause', true); - }).catch(() => { - this.$messageBox(this.$t('scriptRecord.pauseFail')); - }); + if (this.$route.query.drawWay == 'true') { + simulationPause(this.group).then(resp => { + this.$store.dispatch('scriptRecord/updateSimulationPause', true); + }).catch(() => { + this.$messageBox(this.$t('scriptRecord.pauseFail')); + }); + } else { + scriptPause(this.group).then(resp => { + this.$store.dispatch('scriptRecord/updateSimulationPause', true); + }).catch(() => { + this.$messageBox(this.$t('scriptRecord.pauseFail')); + }); + } + }, executePlayScript() { - executeScript(this.group).then(resp => { - this.$store.dispatch('scriptRecord/updateSimulationPause', false); - }).catch(() => { - this.$messageBox(this.$t('scriptRecord.recoverFail')); - }); + if (this.$route.query.drawWay == 'true') { + executeScriptNew(this.group).then(resp => { + this.$store.dispatch('scriptRecord/updateSimulationPause', false); + }).catch(() => { + this.$messageBox(this.$t('scriptRecord.recoverFail')); + }); + } else { + executeScript(this.group).then(resp => { + this.$store.dispatch('scriptRecord/updateSimulationPause', false); + }).catch(() => { + this.$messageBox(this.$t('scriptRecord.recoverFail')); + }); + } + }, saveScenesStage() { const data = Vue.prototype.$jlmap.$options; @@ -122,7 +140,7 @@ export default { const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY}; if (this.$route.query.drawWay == 'true') { saveScriptScenesNew(this.group).then(resp => { - updateMapLocation(group, dataZoom).then(response=>{ + updateMapLocationNew(group, dataZoom).then(response=>{ this.$store.dispatch('scriptRecord/updateBgSet', true); this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess')); }).catch(error => { diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index 3c62f2f0a..4ce0ba38e 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -31,6 +31,7 @@ + + diff --git a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue index 2a0a50a61..ed82942dd 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/batchSettings.vue @@ -1,95 +1,106 @@ + + diff --git a/src/views/newMap/newMapdraft/index.vue b/src/views/newMap/newMapdraft/index.vue index dfb3d8b18..c765b620c 100644 --- a/src/views/newMap/newMapdraft/index.vue +++ b/src/views/newMap/newMapdraft/index.vue @@ -45,6 +45,8 @@ ref="configMap" @handleSelectPhysicalView="handleSelectPhysicalView" /> + + @@ -57,7 +59,7 @@ import JlmapVisual from '@/views/newMap/jlmapNew/index'; import MapOperate from './mapoperate/index'; import { EventBus } from '@/scripts/event-bus'; import { mapGetters } from 'vuex'; -import { } from '@/api/jmap/mapdraft'; +import CiConfig from './ciConfig'; import ConfigMap from './configMap'; @@ -69,7 +71,8 @@ export default { JlmapVisual, MapOperate, DataRelation, - ConfigMap + ConfigMap, + CiConfig }, data() { return { @@ -154,19 +157,18 @@ export default { type: 'warning' }).then(() => { const map = this.$store.state.map.map; - console.log(map, '======'); this.$store.dispatch('map/saveMapDeviceDefaultRelations').then(() => { const param = { mapId: this.$route.params.mapId, skinVO: { code: this.$store.state.map.map.skinVO.code, - name: this.$store.state.map.map.skinVO.name, - origin: { - x: this.updtModel.origin.x, - y: this.updtModel.origin.y - }, - scaling: this.updtModel.scaling - } + name: this.$store.state.map.map.skinVO.name + }, + origin: { + x: this.updtModel.origin.x || map.origin.x, + y: this.updtModel.origin.y || map.origin.y + }, + scaling: this.updtModel.scaling }; saveMap(Object.assign(map, param)).then(response => { this.$message.success(this.$t('map.updateSuccessfully')); @@ -235,18 +237,7 @@ export default { } }, generateCIEvent() { - this.$confirm('生成联锁关系会删除旧的联锁关系,是否继续生成', { - confirmButtonText: '继续', - cancelButtonText: this.$t('tip.cancel'), - type: 'warning' - }).then(() => { - generateCI(this.$route.params.mapId).then(resp => { - this.$message.success('生成并保存联锁关系成功!'); - }).catch(()=> { - this.$message.error('生成并保存联锁关系失败!'); - }); - }); - + this.$refs.ciConfig.show(); }, handleSelectControlPage (model) { if (this.$refs.mapOperate) { diff --git a/src/views/system/configLine/config.vue b/src/views/system/configLine/config.vue index 636d62f49..7ad17b812 100644 --- a/src/views/system/configLine/config.vue +++ b/src/views/system/configLine/config.vue @@ -19,41 +19,8 @@
- {{ scope.row.configValue }} -
-
- - - -
- - - - - - -
- 联锁配置项 -
- - - - From 376662d96eaea7a49bd7ad73386b93cc17844f00 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 12 May 2020 17:49:00 +0800 Subject: [PATCH 30/48] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=B9=B3=E5=8F=B0=20?= =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=20=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/socket.js | 2 +- .../newMap/jointTrainingNew/chatContent.vue | 25 ++++++++++++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index cd22bf0a1..1a7d85da5 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -144,7 +144,7 @@ function handleSimulationInfo(state, data) { voice: data.isAudio, src: data.isAudio ? `/jlcloud/audio/${data.audioPath}` : '', memberName:data.member.name, - memberRole:data.member.name, + memberRole:data.member.role, memberOnline:data.member.online, chatTime: data.chatTime, targetOnline:data.targetMember ? data.targetMember.online : null, diff --git a/src/views/newMap/jointTrainingNew/chatContent.vue b/src/views/newMap/jointTrainingNew/chatContent.vue index 4c69cb269..67f05b3c7 100644 --- a/src/views/newMap/jointTrainingNew/chatContent.vue +++ b/src/views/newMap/jointTrainingNew/chatContent.vue @@ -3,7 +3,7 @@
-
{{ chatContent.memberName }}
+
{{ handle(chatContent) }}
{{ formatTime(chatContent.chatTime) }}
@@ -19,6 +19,8 @@ + From 781f96f89caa9e9670fd94ffb8fae744c36edc82 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 13 May 2020 10:07:07 +0800 Subject: [PATCH 35/48] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=A2=84=E8=A7=88=EF=BC=8C=E5=8C=BA=E6=AE=B5=E5=AD=97=E6=AE=B5?= =?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/map.js | 12 - src/store/modules/map.js | 8 + src/views/newMap/jlmapNew/screen.vue | 258 ++++++++++++++++++ .../mapoperate/config/previewScreen.vue | 151 ++++++++++ .../newMapdraft/mapoperate/section/index.vue | 136 +++------ .../newMapdraft/mapoperate/splitScreen.vue | 4 + 6 files changed, 461 insertions(+), 108 deletions(-) create mode 100644 src/views/newMap/jlmapNew/screen.vue create mode 100644 src/views/newMap/newMapdraft/mapoperate/config/previewScreen.vue diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 8166265b7..094d1a958 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -27,9 +27,6 @@ class Jlmap { // 线路参数 this.lineCode = ''; - // 大屏系统 - this.screenFlag = false; - // 皮肤风格 this.style = {}; @@ -179,14 +176,6 @@ class Jlmap { const scaleWidth = Math.floor((((opts.width - 200) * num) / rect.width) * 100) / 100; const scaleHeight = Math.floor(((opts.height - 100) / (rect.height * num)) * 100) / 100; const scale = Math.min(scaleWidth, scaleHeight); - // const scale = 0.3; - // const spliceWidth = (rect.width + 100) / num * scale; - // const dx = (opts.width - spliceWidth) / 2; - - // for (let index = 0; index < num; index++) { - // const param = { scaleRate: scale, offsetX: ((spliceWidth) * index) - dx, offsetY: -100 - (offsetY * index) }; - // arr.push(param); - // } const splitList = Vue.prototype.$theme.loadPropConvert(store.state.map.map.skinVO.code).screenSplit; const maxWidth = rect.width; @@ -205,7 +194,6 @@ class Jlmap { rectList.push(rect); } this.$painter.updateTransform1(arr, rectList); - this.screenFlag = true; } setLevelVisible(list) { diff --git a/src/store/modules/map.js b/src/store/modules/map.js index d54a1d5c5..ac70accf7 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -198,6 +198,7 @@ const map = { mapIdList: {}, // 地图数据列表(以id为标识) mapViewLoadedCount: 0, // 地图视图加载完成标识 mapDataLoadedCount: 0, // 地图数据加载完成标识 + mapDataLoadedScreenCount: 0, // 大屏加载完成 trainDetails: null, // 地图'列车详情'显示 deleteCount: 0, // 绘图快捷删除标识 updateCount: 0, // 绘图快捷修改标识 @@ -623,6 +624,9 @@ const map = { mapDataLoadedCountIncrement: (state) => { state.mapDataLoadedCount += 1; }, + mapViewLoadedScreenCountIncrement: (state) => { + state.mapDataLoadedScreenCount += 1; + }, operateTrainModel: (state, { model, type }) => { if (state.map && model) { const list = state.map.trainModelList || []; @@ -860,6 +864,10 @@ const map = { commit('mapViewLoadedCountIncrement'); }, + mapViewScreenLoaded: ({ commit }) => { + commit('mapViewLoadedScreenCountIncrement'); + }, + mapDataLoaded: ({ commit }) => { commit('mapDataLoadedCountIncrement'); }, diff --git a/src/views/newMap/jlmapNew/screen.vue b/src/views/newMap/jlmapNew/screen.vue new file mode 100644 index 000000000..6ffd893b0 --- /dev/null +++ b/src/views/newMap/jlmapNew/screen.vue @@ -0,0 +1,258 @@ + + + + diff --git a/src/views/newMap/newMapdraft/mapoperate/config/previewScreen.vue b/src/views/newMap/newMapdraft/mapoperate/config/previewScreen.vue new file mode 100644 index 000000000..c0ddd6b32 --- /dev/null +++ b/src/views/newMap/newMapdraft/mapoperate/config/previewScreen.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue index 1f0a904fc..999ec2a43 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue @@ -604,7 +604,8 @@ export default { label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, - disabled: true, + max: this.maxLengthFact, + // disabled: true, isHidden: !this.isStopPointOffset }, // 左向停车点偏移量 { @@ -612,7 +613,8 @@ export default { label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, - disabled: true, + max: this.maxLengthFact, + // disabled: true, isHidden: !this.isStopPointOffset }, // 右向停车点偏移量 { @@ -652,133 +654,72 @@ export default { }, rules() { var validateAssociatedSection = (rule, value, callback) => { - const rightSection = value - ? this.$store.getters['map/getDeviceByCode'](value) - : null; - if ( - rightSection && - !( - this.checkSectionPointsHasCoincide( - rightSection.points, - this.editModel.points - ) || - this.checkSectionPointsHasCoincide( - rightSection.points, - this.oldPoint - ) - ) + const rightSection = value ? this.$store.getters['map/getDeviceByCode'](value) : null; + if (rightSection && !(this.checkSectionPointsHasCoincide(rightSection.points, this.editModel.points) || this.checkSectionPointsHasCoincide(rightSection.points, this.oldPoint) ) ) { - callback( - new Error( - this.$t( - 'rules.theSelectedAssociatedSectionIsNotAdjacent' - ) - ) - ); + callback(new Error(this.$t('rules.theSelectedAssociatedSectionIsNotAdjacent'))); } else { callback(); } }; + var validateLeftStopPointOffset = (rule, value, callback) => { + if (value != this.editModel.rightStopPointOffset) { + callback(); + } else { + callback(new Error('不能与右侧停车点一致')); + } + }; + var validateRightStopPointOffset = (rule, value, callback) => { + if (value != this.editModel.leftStopPointOffset) { + callback(); + } else { + callback(new Error('不能与左侧停车点一致')); + } + }; const rules = { code: [ - { - required: true, - message: this.$t('rules.selectEquipment'), - trigger: 'change' - } + { required: true, message: this.$t('rules.selectEquipment'), trigger: 'change' } ], name: [ - { - required: true, - message: this.$t('rules.pleaseEnterSectionName'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.pleaseEnterSectionName'), trigger: 'blur' } ], type: [ - { - required: true, - message: this.$t('rules.pleaseEnterSectionType'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.pleaseEnterSectionType'), trigger: 'blur' } ], leftStopPointOffset: [ - { - required: true, - message: this.$t( - 'rules.pleaseEnterLeftStopPointOffset' - ), - trigger: 'blur' - } + { required: true, message: this.$t('rules.pleaseEnterLeftStopPointOffset'), trigger: 'blur' }, + { validator: validateLeftStopPointOffset, trigger: 'blur' } ], rightStopPointOffset: [ - { - required: true, - message: this.$t('rules.rightStopPointOffset'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.rightStopPointOffset'), trigger: 'blur' }, + { validator: validateRightStopPointOffset, trigger: 'blur' } ], 'destinationCodePoint.x': [ - { - required: true, - message: this.$t('rules.destinationCodePointX'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.destinationCodePointX'), trigger: 'blur' } ], 'destinationCodePoint.y': [ - { - required: true, - message: this.$t('rules.destinationCodePointY'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.destinationCodePointY'), trigger: 'blur' } ], 'namePosition.x': [ - { - required: true, - message: this.$t('rules.sectionNamePointX'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.sectionNamePointX'), trigger: 'blur' } ], 'namePosition.y': [ - { - required: true, - message: this.$t('rules.sectionNamePointY'), - trigger: 'blur' - } + { required: true, message: this.$t('rules.sectionNamePointY'), trigger: 'blur' } ], logicSectionNameSort: [ - { - required: true, - message: this.$t('rules.logicSectionNameSort'), - trigger: 'change' - } + { required: true, message: this.$t('rules.logicSectionNameSort'), trigger: 'change' } ], sepTypeLeft: [ - { - required: true, - message: this.$t('rules.sectionSepTypeLeft'), - trigger: 'change' - } + { required: true, message: this.$t('rules.sectionSepTypeLeft'), trigger: 'change' } ], sepTypeRight: [ - { - required: true, - message: this.$t('rules.sectionSepTypeRight'), - trigger: 'change' - } + { required: true, message: this.$t('rules.sectionSepTypeRight'), trigger: 'change' } ], relSwitchCode: [ - { - required: true, - message: this.$t('rules.sectionRelSwitchCode'), - trigger: 'change' - } + { required: true, message: this.$t('rules.sectionRelSwitchCode'), trigger: 'change' } ], belongStation: [ - { - required: true, - message: '请选择所属车站', - trigger: 'change' - } + { required: true, message: '请选择所属车站', trigger: 'change' } ], leftSectionCode: [ { validator: validateAssociatedSection, trigger: 'change' } @@ -825,6 +766,9 @@ export default { } return list; }, + maxLengthFact() { + return this.editModel.lengthFact; + }, // 判断显隐 true 显示 false 隐藏 isStationCodeDisabled() { diff --git a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue index ce8f2d465..57595819a 100644 --- a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue +++ b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue @@ -56,14 +56,17 @@
+
- diff --git a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue index 57595819a..d17396fb0 100644 --- a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue +++ b/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue @@ -51,22 +51,20 @@
-
+
保存 - + 预览 + 重置
-
+ diff --git a/src/views/newMap/jointTrainingNew/chatMemberList.vue b/src/views/newMap/jointTrainingNew/chatMemberList.vue new file mode 100644 index 000000000..14ffe79e0 --- /dev/null +++ b/src/views/newMap/jointTrainingNew/chatMemberList.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 58ae55056..2c98ebe5c 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -102,7 +102,6 @@ export default { } }, '$store.state.socket.roleList': function (val) { - debugger; if (val && val.length) { this.$nextTick(() => { this.addrolesList(val); @@ -259,7 +258,6 @@ export default { }); }, back() { - debugger; this.$store.dispatch('training/over').then(() => { this.backLoading = true; putJointTrainingSimulationUserNew(this.group).then(() => { diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index 03034434d..51ddcaf12 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -126,7 +126,7 @@ export default { }, drawUp(index, row) { const drawWay = this.$route.query.drawWay; - if (drawWay == 'true') { + if (drawWay && JSON.parse(drawWay)) { scriptRecordNotifyNew(row.id).then(resp => { const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, lang:row.lang, lineCode:this.$route.query.lineCode, drawWay:drawWay}; this.$router.push({ path: `${UrlConfig.scriptDisplayNew}/script`, query }); @@ -264,7 +264,8 @@ export default { }).catch(() => { }); }, previewScript(index, row) { - if (this.$route.query.drawWay == 'true') { + const drawWay = this.$route.query.drawWay; + if (drawWay && JSON.parse(drawWay)) { scriptDraftRecordNotifyNew(row.id).then(resp => { const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, try:0, lineCode:this.$route.query.lineCode, drawWay:true}; this.$router.push({ path: `${UrlConfig.design.displayNew}/demon`, query }); From e35709ac2c05485d74fab7f97f89f679188903ac Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 13 May 2020 18:21:55 +0800 Subject: [PATCH 48/48] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AE=A1=E7=90=86?= =?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/layout/components/userInfo.vue | 4 ++-- src/router/index_Common.js | 2 +- src/views/exam/result.vue | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layout/components/userInfo.vue b/src/layout/components/userInfo.vue index ab20cc2cf..22e2c02b5 100644 --- a/src/layout/components/userInfo.vue +++ b/src/layout/components/userInfo.vue @@ -277,7 +277,7 @@ import QrcodeVue from 'qrcode.vue'; import { LoginParams } from '@/utils/login'; import { setInterval, clearInterval } from 'timers'; import { checkLoginStatus } from '@/api/login'; -import { getessionStorage } from '@/utils/auth'; +import { getSessionStorage } from '@/utils/auth'; export default { components: { QrcodeVue }, @@ -360,7 +360,7 @@ export default { this.visible = true; this.binding = false; this.bindSuccess = false; - this.project = getessionStorage('project'); + this.project = getSessionStorage('project'); // const token = getToken() || getDesignToken(); const token = getToken(); getInfo(token) diff --git a/src/router/index_Common.js b/src/router/index_Common.js index 2407e6a28..65c58eb54 100644 --- a/src/router/index_Common.js +++ b/src/router/index_Common.js @@ -931,7 +931,7 @@ export const asyncRouter = [ i18n: 'router.studentManage', roles: [admin, user] }, - hidden: getSessionStorage('project') ? !getSessionStorage('project').endsWith('gzb') : !window.document.location.pathname.includes('gzb'), + hidden: getSessionStorage('project') ? !getSessionStorage('project').endsWith('gzb') && !window.document.location.pathname.includes('gzb') : !window.document.location.pathname.includes('gzb'), children: [ { path: 'home', diff --git a/src/views/exam/result.vue b/src/views/exam/result.vue index 45d4ae08f..2ae9a3995 100644 --- a/src/views/exam/result.vue +++ b/src/views/exam/result.vue @@ -23,6 +23,7 @@ +