From 6236e7049455829771cf9f3d5da66574e4151e8b Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 19 Jun 2020 11:29:12 +0800 Subject: [PATCH 01/31] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=99=90=E9=80=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/management/user.js | 8 + .../menus/dialog/cancelAllLimit.vue | 161 +++++++++--------- .../theme/components/utils/menuOperate.js | 2 +- src/layout/components/userInfo.vue | 34 +++- src/utils/baseUrl.js | 2 +- 5 files changed, 119 insertions(+), 88 deletions(-) diff --git a/src/api/management/user.js b/src/api/management/user.js index 4c8772601..62f0f5af3 100644 --- a/src/api/management/user.js +++ b/src/api/management/user.js @@ -219,3 +219,11 @@ export function getWxQrCode(params) { params: params }); } + +// 获取微信小程序绑定二维码 +export function getBindWxQrCodeUrl() { + return request({ + url: `/api/user/bind/wm/url`, + method: 'get' + }); +} diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue b/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue index a331218ad..ebe4dc797 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue @@ -82,9 +82,10 @@ diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index 9426ce8b2..fa7e57c7a 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -333,7 +333,7 @@ export const menuOperate = { LimitControl: { cancelSpeed: { operation: OperationEvent.LimitControl.CancelAllLimit.menu.operation, - cmdType: CMD.Fault.CMD_CANCEL_ALL_LIMIT_SPEED + cmdType: CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED } }, Common: { diff --git a/src/layout/components/userInfo.vue b/src/layout/components/userInfo.vue index a62d5cff9..e3fa06ec0 100644 --- a/src/layout/components/userInfo.vue +++ b/src/layout/components/userInfo.vue @@ -4,6 +4,7 @@ :title="$t('global.personalDetails')" :visible.sync="visible" width="470px" + :close-on-click-modal="false" :before-close="doClose" class="userInfo_box" > @@ -253,6 +254,25 @@
绑定微信成功
+ +
+
绑定微信:
+
+ 生成微信二维码 + +
绑定微信成功
+
+
{{ $t('global.close') }} @@ -271,7 +291,8 @@ import { getUserinfoEmailCode, getUserinfoEmail, getUserinfoPassword, - getWxQrCode + getWxQrCode, + getBindWxQrCodeUrl } from '@/api/management/user'; import QrcodeVue from 'qrcode.vue'; import { LoginParams } from '@/utils/login'; @@ -341,7 +362,8 @@ export default { loginClient: 'LianKeTang', project:'', wxUnionId: '', - wxOpenId: '' + wxOpenId: '', + wmOpenId: '' }; }, computed: { @@ -377,6 +399,7 @@ export default { }; this.wxUnionId = user.wxUnionId; this.wxOpenId = user.wxOpenId; + this.wmOpenId = user.wmOpenId || ''; this.oldPassWord = user.password; this.nationCode = user.nationCode ? user.nationCode : '86'; this.nationCodeInit = user.nationCode @@ -558,6 +581,13 @@ export default { this.checkLoginStatus(); }); }, + generateBindQrCode() { // 获取微信小程序绑定二维码 + getBindWxQrCodeUrl().then(response => { + this.loadingCode = false; + this.loginUrl = response.data.url; + this.binding = true; + }); + }, checkLoginStatus() { const self = this; // 销毁则不再定时 diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index f9d46bd9b..778caeb7b 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -10,7 +10,7 @@ export function getBaseUrl() { // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 - } else { + } else { BASE_API = process.env.VUE_APP_BASE_API; } return BASE_API; From 100c651068c0f1d8f97aee03d2e2184ced70e2f5 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 11:30:12 +0800 Subject: [PATCH 02/31] =?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 --- .../ningbo_01/menus/dialog/cancelAllLimit.vue | 40 ++++++++++--------- src/scripts/cmdPlugin/CommandEnum.js | 2 +- .../display/tipScriptRecordNew.vue | 1 + 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue index 7cd1a50ad..abecb9d04 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue @@ -11,12 +11,12 @@ :close-on-click-modal="false" >
- 会话管理 + 会话管理 - 查询会话状态 + 查询会话状态 - +
- 操作 + 准备
操作
- + 确认 @@ -50,12 +50,12 @@
- 确认 + 确认
操作
- + 确认 @@ -73,7 +73,7 @@
状态
-
+
{{ messageText3 }}
关闭 @@ -104,6 +104,7 @@ export default { messageText: '', messageText1: '', messageText2: '', + messageText3: '', isOpenMessage: false, timeCountConfirm: -1, disabledConfirm1: false, @@ -172,11 +173,13 @@ export default { operation: OperationEvent.LimitControl.CancelAllLimit.openMessage.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.isOpenMessage = true; + this.messageText = '会话打开'; this.messageText1 = '取消全线临时限速'; + this.messageText3 = '会话打开成功'; } }).catch(() => { this.doClose(); @@ -187,7 +190,7 @@ export default { operation: OperationEvent.LimitControl.CancelAllLimit.closeMessage.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.isOpenMessage = false; @@ -208,7 +211,7 @@ export default { operation: OperationEvent.LimitControl.CancelAllLimit.confirm1.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.isOpenMessage = true; @@ -228,7 +231,7 @@ export default { operation: OperationEvent.LimitControl.CancelAllLimit.confirm2.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.isOpenMessage = true; @@ -246,7 +249,7 @@ export default { type: MapDeviceType.LimitControl.type, operation: OperationEvent.LimitControl.CancelAllLimit.confirm.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); if (!this.isOpenMessage) { this.doClose(); @@ -267,7 +270,7 @@ export default { operation: OperationEvent.LimitControl.CancelAllLimit.close.operation }; - this.$store.dispatch('training/next', operate).then(({ valid }) => { + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.ConfirmTip.doClose(); this.isOpenMessage = false; @@ -284,7 +287,7 @@ export default { } }; - diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 9acc93bc8..165da3044 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -71,7 +71,7 @@ export default { CMD_DRIVER_GEAR_CHANGE:{value:'Driver_Gear_Change', label:'改变列车档位'}, CMD_DRIVER_ATO_OPEN:{value:'Driver_ATO_Open', label:'开启ATO'}, CMD_DRIVER_ATP_CHANGE:{value:'Driver_ATP_Change', label:'改变ATP状态'}, - CMD_DRIVER_Drive_MODE_CHANGE:{value:'Driver_Drive_Mode_Change', label:'改变列车运行模式'}, + CMD_DRIVER_DRIVE_MODE_CHANGE:{value:'Driver_Drive_Mode_Change', label:'改变列车运行模式'}, CMD_DRIVER_CHANGE_HEAD:{value:'Driver_Change_Head', label:'换端'}, CMD_DRIVER_DOOR_ON_OFF:{value:'Driver_Door_On_Off', label:'列车车门开关'} }, diff --git a/src/views/scriptManage/display/tipScriptRecordNew.vue b/src/views/scriptManage/display/tipScriptRecordNew.vue index b889c4eeb..1056d28e4 100644 --- a/src/views/scriptManage/display/tipScriptRecordNew.vue +++ b/src/views/scriptManage/display/tipScriptRecordNew.vue @@ -92,6 +92,7 @@ export default { }, '$store.state.map.runPlanStatus':function (val) { this.initData(); + this.$refs.getAction.loadInitData(); } }, beforeDestroy() { From 645e425e2cda512b3e1104679fc2a03efb4ce1ac Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 13:28:53 +0800 Subject: [PATCH 03/31] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E5=8C=97=E4=BA=AC?= =?UTF-8?q?=E4=B8=80=E5=8F=B7=E7=BA=BF=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/dialog/cancelAllLimit.vue | 364 ------------------ .../theme/beijing_01/menus/menuLimit.vue | 5 +- .../menus/childDialog/confirmTip.vue | 83 ++++ .../menus/dialog/cancelAllLimit.vue | 37 +- .../theme/ningbo_01/menus/menuLimit.vue | 5 +- src/utils/baseUrl.js | 4 +- 6 files changed, 115 insertions(+), 383 deletions(-) delete mode 100644 src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue create mode 100644 src/jmapNew/theme/components/menus/childDialog/confirmTip.vue rename src/jmapNew/theme/{ningbo_01 => components}/menus/dialog/cancelAllLimit.vue (91%) diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue b/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue deleted file mode 100644 index ebe4dc797..000000000 --- a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue +++ /dev/null @@ -1,364 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/beijing_01/menus/menuLimit.vue b/src/jmapNew/theme/beijing_01/menus/menuLimit.vue index d3d617933..f85f4cee5 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuLimit.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuLimit.vue @@ -1,13 +1,13 @@ + diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue b/src/jmapNew/theme/components/menus/dialog/cancelAllLimit.vue similarity index 91% rename from src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue rename to src/jmapNew/theme/components/menus/dialog/cancelAllLimit.vue index abecb9d04..99ab78df4 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/cancelAllLimit.vue +++ b/src/jmapNew/theme/components/menus/dialog/cancelAllLimit.vue @@ -1,7 +1,7 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue index d4e11dda0..0ba915c0f 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/stationHumanControlAll.vue @@ -28,7 +28,7 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/trainEdit.vue b/src/jmapNew/theme/beijing_01/menus/dialog/trainEdit.vue index 4cdb0905c..59b34c6fe 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/trainEdit.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/trainEdit.vue @@ -45,7 +45,7 @@ \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/trainSetHead.vue b/src/jmapNew/theme/beijing_01/menus/dialog/trainSetHead.vue index f22a3485a..96bbb1dfa 100644 --- a/src/jmapNew/theme/beijing_01/menus/dialog/trainSetHead.vue +++ b/src/jmapNew/theme/beijing_01/menus/dialog/trainSetHead.vue @@ -45,7 +45,7 @@ - \ No newline at end of file + diff --git a/src/jmapNew/theme/beijing_01/menus/passiveDialog/timeout.vue b/src/jmapNew/theme/beijing_01/menus/passiveDialog/timeout.vue index e8ec3b556..29c910040 100644 --- a/src/jmapNew/theme/beijing_01/menus/passiveDialog/timeout.vue +++ b/src/jmapNew/theme/beijing_01/menus/passiveDialog/timeout.vue @@ -1,106 +1,113 @@ \ No newline at end of file + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + if (valid) { + this.doClose(); + } + }); + }, + commit() { + const operate = { + operation: OperationEvent.Command.close.notice.operation + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + if (valid) { + this.doClose(); + } + }); + }, + isClose() { + return this.dialogShow; + } + } +}; + + diff --git a/src/jmapNew/theme/beijing_01/menus/utils/menuItemStatus.js b/src/jmapNew/theme/beijing_01/menus/utils/menuItemStatus.js deleted file mode 100644 index 9778d96b3..000000000 --- a/src/jmapNew/theme/beijing_01/menus/utils/menuItemStatus.js +++ /dev/null @@ -1,570 +0,0 @@ -import Vue from 'vue'; -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 SystemType = { - '01': 'local', // 现地工作站 - '02': 'central' // 中心调度工作站 -}; - -export const StationControlType = { - '01': 'center', // 中控 - '02': '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() { - }, - // 区段取消限速 - cancelSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit == deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 新建列车 - newTrain() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 设置计轴有效 - alxeEffective() { - }, - // 设置计轴失效 - alxeFailure() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Section.status.State13) { - 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 (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) { - return true; - } - }, - // 取消扣车 - cancelDetainTrain() { - const device = getCurrentStateObject(); - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) { - 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(); - }, - // 设置计轴有效 - alxeEffective() { - }, - // 道岔取消速度 - 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; - } - }, - // 添加计划车 - addPlanTrain() { - }, - // 设置计划车 - setPlanTrain() { - }, - // 设置头码车 - setHeadTrain() { - }, - // 设置人工车 - setWorkTrain() { - }, - // 标记重点车 - trainToFlag() { - }, - // 取消标记重点车 - trainUnFlag() { - } - } -}; - -/** - * 将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) { - 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 = SystemType[store.state.training.prdType]; - const status = StationControlType[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 = SystemType[store.state.training.prdType]; - 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; - } - } - }); - } - } - return menu; -} - -/** - * 离开菜单以及执行完菜单取消选中状态 - */ -export function mouseCancelState(selected) { - const device = Vue.prototype.$jlmap.getDeviceByCode(selected.code); - const instance = (device || {}).instance; - if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) { - device['down'] = false; - instance.mouseEvent.mouseout(Vue.prototype.$jlmap.$zr.curEvent); - } -} diff --git a/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js b/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js deleted file mode 100644 index 504137582..000000000 --- a/src/jmapNew/theme/beijing_01/menus/utils/menuOperate.js +++ /dev/null @@ -1,241 +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:{ - active:{ - // 区段激活 - operation: OperationEvent.Section.active.menu.operation, - cmdType: CMD.Section.CMD_SECTION_ACTIVE - }, - alxeEffective:{ - // 确认计轴有效 - operation: OperationEvent.Section.alxeEffective.menu.operation, - cmdType: CMD.Section.CMD_SECTION_COMFIRMATION_AXLE - }, - split:{ - // 区段切除 - operation: OperationEvent.Section.split.menu.operation, - cmdType: CMD.Section.CMD_SECTION_CUT_OFF - }, - setSpeed:{ - // 设置速度 - operation: OperationEvent.Section.setSpeed.menu.operation, - cmdType: CMD.Section.CMD_SECTION_SET_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 - }, - humanTrainRoute:{ - // 总人解 - operation: OperationEvent.Signal.humanTrainRoute.menu.operation, - cmdType:CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE - }, - 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 - } - }, - 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 - }, - turnoutForce:{ - // 道岔强扳 - operation: OperationEvent.Switch.turnoutForce.menu.operation - }, - locate:{ - // 单操到定位 - operation: OperationEvent.Switch.locate.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION - }, - reverse:{ - // 单操到反位 - operation: OperationEvent.Switch.reverse.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION - }, - 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 - }, - alxeEffective:{ - // 确认计轴有效 - operation: OperationEvent.Switch.alxeEffective.menu.operation, - cmdType: CMD.Switch.CMD_SWITCH_COMFIRMATION_AXLE - } - - }, - 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 - }, - 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 - } - }, - 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 - } - }, - Common: { - setFault: { - operation: OperationEvent.MixinCommand.stoppage.menu.operation, - cmdType: CMD.Fault.CMD_SET_FAULT - }, - cancelFault: { - operation: OperationEvent.MixinCommand.cancelStoppage.menu.operation, - cmdType: CMD.Fault.CMD_CANCEL_FAULT - } - } -}; - -export function commitOperate(operate, paramList, over) { - const step = { - start: true, - operation: operate.operation, - param:{} - }; - step.param = paramList; - // 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/components/utils/menuItemStatus.js b/src/jmapNew/theme/components/utils/menuItemStatus.js new file mode 100644 index 000000000..deea73da2 --- /dev/null +++ b/src/jmapNew/theme/components/utils/menuItemStatus.js @@ -0,0 +1,13 @@ +import Vue from 'vue'; + +/** + * 离开菜单以及执行完菜单取消选中状态 + */ +export function mouseCancelState(selected) { + const device = Vue.prototype.$jlmap.getDeviceByCode(selected.code); + const instance = (device || {}).instance; + if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) { + device['down'] = false; + instance.mouseEvent.mouseout(Vue.prototype.$jlmap.$zr.curEvent); + } +} diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 55d352581..778caeb7b 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,10 +2,10 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.6:9000'; // 旭强 - BASE_API = 'http://192.168.3.41:9000'; // 张赛 + // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 From 996a0d1a8915e36e6d12e6c16e4a3729d6aaf8e2 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 19 Jun 2020 13:33:55 +0800 Subject: [PATCH 06/31] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menus/dialog/cancelAllLimit.vue | 362 ------------------ 1 file changed, 362 deletions(-) delete mode 100644 src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue diff --git a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue b/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue deleted file mode 100644 index a0cab66a9..000000000 --- a/src/jmapNew/theme/beijing_01/menus/dialog/cancelAllLimit.vue +++ /dev/null @@ -1,362 +0,0 @@ - - - - From 3a66119f8126f530dcedee0b8638984c44dfbcdf Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 19 Jun 2020 13:40:56 +0800 Subject: [PATCH 07/31] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/chengdu_01/menusPlan/addTask.vue | 175 ---------- .../menusPlan/chooseTemplatePlan.vue | 115 ------ .../menusPlan/components/dataTable.vue | 206 ----------- .../chengdu_01/menusPlan/createTodayPlan.vue | 135 -------- .../chengdu_01/menusPlan/createWeekPlan.vue | 137 -------- .../theme/chengdu_01/menusPlan/deleteTask.vue | 73 ---- .../chengdu_01/menusPlan/deleteTodayPlan.vue | 62 ---- .../chengdu_01/menusPlan/managePlanList.vue | 143 -------- .../chengdu_01/menusPlan/modifyingPlan.vue | 177 ---------- .../chengdu_01/menusPlan/modifyingTask.vue | 326 ------------------ 10 files changed, 1549 deletions(-) delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/addTask.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/chooseTemplatePlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/components/dataTable.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/createTodayPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/createWeekPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/deleteTask.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/deleteTodayPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/managePlanList.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/modifyingPlan.vue delete mode 100644 src/jmapNew/theme/chengdu_01/menusPlan/modifyingTask.vue diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/addTask.vue b/src/jmapNew/theme/chengdu_01/menusPlan/addTask.vue deleted file mode 100644 index 35d8f364a..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/addTask.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/chooseTemplatePlan.vue b/src/jmapNew/theme/chengdu_01/menusPlan/chooseTemplatePlan.vue deleted file mode 100644 index fa220d049..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/chooseTemplatePlan.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/components/dataTable.vue b/src/jmapNew/theme/chengdu_01/menusPlan/components/dataTable.vue deleted file mode 100644 index 7b8f1756b..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/components/dataTable.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/createTodayPlan.vue b/src/jmapNew/theme/chengdu_01/menusPlan/createTodayPlan.vue deleted file mode 100644 index 271312a31..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/createTodayPlan.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/createWeekPlan.vue b/src/jmapNew/theme/chengdu_01/menusPlan/createWeekPlan.vue deleted file mode 100644 index 6cc0fda76..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/createWeekPlan.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/deleteTask.vue b/src/jmapNew/theme/chengdu_01/menusPlan/deleteTask.vue deleted file mode 100644 index cd79c305f..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/deleteTask.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/deleteTodayPlan.vue b/src/jmapNew/theme/chengdu_01/menusPlan/deleteTodayPlan.vue deleted file mode 100644 index 2e22a7c64..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/deleteTodayPlan.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/managePlanList.vue b/src/jmapNew/theme/chengdu_01/menusPlan/managePlanList.vue deleted file mode 100644 index 8db7568d5..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/managePlanList.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/modifyingPlan.vue b/src/jmapNew/theme/chengdu_01/menusPlan/modifyingPlan.vue deleted file mode 100644 index 5902bdf8a..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/modifyingPlan.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/chengdu_01/menusPlan/modifyingTask.vue b/src/jmapNew/theme/chengdu_01/menusPlan/modifyingTask.vue deleted file mode 100644 index 364ba2715..000000000 --- a/src/jmapNew/theme/chengdu_01/menusPlan/modifyingTask.vue +++ /dev/null @@ -1,326 +0,0 @@ - - - - From 06ff692181dd022adf0c3897c6fe7c34204e5fab Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 19 Jun 2020 13:56:46 +0800 Subject: [PATCH 08/31] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=80=81=E6=9D=BF?= =?UTF-8?q?=E6=9C=AC=E6=88=90=E9=83=BD4=E3=80=813=20=E5=8C=97=E4=BA=AC1=20?= =?UTF-8?q?=E7=BA=BF=E8=B7=AF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmap/config/deviceStyle.js | 8 +- src/jmap/config/skinCode/bejing_01.js | 585 -------- src/jmap/config/skinCode/chengdu_03.js | 591 -------- src/jmap/config/skinCode/chengdu_04.js | 564 -------- src/jmap/constant/deviceRender.js | 18 - .../beijing_01/menus/dialog/alxeEffective.vue | 442 ------ .../menus/dialog/cancelAllLimit.vue | 367 ----- .../childDialog/childDialog/noticeInfo.vue | 77 -- .../dialog/childDialog/confirmControl.vue | 360 ----- .../childDialog/confirmControlSpeed.vue | 153 -- .../childDialog/confirmSignalUnlock.vue | 118 -- .../menus/dialog/childDialog/confirmTip.vue | 68 - .../menus/dialog/childDialog/confirmTrain.vue | 168 --- .../menus/dialog/childDialog/popupAlarm.vue | 90 -- .../menus/dialog/routeCmdControl.vue | 439 ------ .../beijing_01/menus/dialog/routeControl.vue | 223 --- .../beijing_01/menus/dialog/routeDetail.vue | 153 -- .../menus/dialog/routeHandControl.vue | 342 ----- .../beijing_01/menus/dialog/routeLock.vue | 157 --- .../menus/dialog/routeSelection.vue | 253 ---- .../menus/dialog/sectionCmdControl.vue | 435 ------ .../menus/dialog/sectionControl.vue | 207 --- .../menus/dialog/speedCmdControl.vue | 895 ------------ .../menus/dialog/speedLimitControl.vue | 554 -------- .../menus/dialog/standBackStrategy.vue | 212 --- .../beijing_01/menus/dialog/standControl.vue | 323 ----- .../beijing_01/menus/dialog/standDetail.vue | 261 ---- .../menus/dialog/standDetainTrainAll.vue | 187 --- .../menus/dialog/standJumpStopControl.vue | 359 ----- .../beijing_01/menus/dialog/standRunLevel.vue | 336 ----- .../beijing_01/menus/dialog/standStopTime.vue | 238 ---- .../menus/dialog/stationCmdControl.vue | 389 ------ .../menus/dialog/stationHumanControlAll.vue | 118 -- .../dialog/stationSetRouteControlAll.vue | 138 -- .../menus/dialog/switchCmdControl.vue | 459 ------ .../beijing_01/menus/dialog/switchControl.vue | 259 ---- .../beijing_01/menus/dialog/trainAddPlan.vue | 176 --- .../beijing_01/menus/dialog/trainCreate.vue | 155 --- .../beijing_01/menus/dialog/trainDefine.vue | 172 --- .../beijing_01/menus/dialog/trainDelete.vue | 169 --- .../menus/dialog/trainDeletePlan.vue | 165 --- .../beijing_01/menus/dialog/trainEdit.vue | 172 --- .../beijing_01/menus/dialog/trainFlag.vue | 151 -- .../beijing_01/menus/dialog/trainMove.vue | 172 --- .../menus/dialog/trainMoveEvently.vue | 185 --- .../beijing_01/menus/dialog/trainSetHead.vue | 172 --- .../beijing_01/menus/dialog/trainSetPlan.vue | 156 --- .../beijing_01/menus/dialog/trainSetWork.vue | 156 --- src/jmap/theme/beijing_01/menus/index.vue | 369 ----- src/jmap/theme/beijing_01/menus/menuBar.vue | 1227 ----------------- .../theme/beijing_01/menus/menuButton.vue | 389 ------ .../theme/beijing_01/menus/menuCancel.vue | 149 -- .../childDialog/twoConfirmation.vue | 120 -- .../menus/menuDialog/childDialog/userAdd.vue | 162 --- .../menuDialog/childDialog/userDelete.vue | 134 -- .../menus/menuDialog/childDialog/userEdit.vue | 178 --- .../menus/menuDialog/detainTrainContorl.vue | 192 --- .../menuDialog/detainTrainContorlUpDown.vue | 183 --- .../beijing_01/menus/menuDialog/helpAbout.vue | 131 -- .../menus/menuDialog/manageUser.vue | 290 ---- .../menus/menuDialog/stationControl.vue | 237 ---- .../beijing_01/menus/menuDialog/trainAdd.vue | 162 --- .../menus/menuDialog/trainDelete.vue | 149 -- .../menus/menuDialog/trainTranstalet.vue | 152 -- .../menus/menuDialog/viewDevice.vue | 166 --- .../beijing_01/menus/menuDialog/viewName.vue | 256 ---- .../menus/menuDialog/viewTrainId.vue | 192 --- src/jmap/theme/beijing_01/menus/menuLimit.vue | 120 -- .../theme/beijing_01/menus/menuSection.vue | 413 ------ .../theme/beijing_01/menus/menuSignal.vue | 500 ------- .../theme/beijing_01/menus/menuStation.vue | 307 ----- .../beijing_01/menus/menuStationControl.vue | 69 - .../beijing_01/menus/menuStationStand.vue | 508 ------- .../theme/beijing_01/menus/menuSwitch.vue | 448 ------ src/jmap/theme/beijing_01/menus/menuTool.vue | 202 --- src/jmap/theme/beijing_01/menus/menuTrain.vue | 601 -------- .../beijing_01/menus/passiveDialog/alarm.vue | 214 --- .../menus/passiveDialog/control.vue | 285 ---- .../menus/passiveDialog/timeout.vue | 106 -- .../beijing_01/menus/utils/menuItemStatus.js | 570 -------- .../theme/beijing_01/menusPlan/addTask.vue | 175 --- .../menusPlan/chooseTemplatePlan.vue | 115 -- .../menusPlan/components/dataTable.vue | 206 --- .../beijing_01/menusPlan/createTodayPlan.vue | 134 -- .../beijing_01/menusPlan/createWeekPlan.vue | 137 -- .../theme/beijing_01/menusPlan/deleteTask.vue | 73 - .../beijing_01/menusPlan/deleteTodayPlan.vue | 62 - .../beijing_01/menusPlan/managePlanList.vue | 143 -- .../beijing_01/menusPlan/modifyingPlan.vue | 177 --- .../beijing_01/menusPlan/modifyingTask.vue | 327 ----- src/jmap/theme/beijing_01/model.js | 68 - src/jmap/theme/beijing_01/planConvert.js | 314 ----- .../theme/beijing_01/planSchedule/index.vue | 403 ------ .../theme/beijing_01/planSchedule/menuBar.vue | 514 ------- .../beijing_01/planSchedule/menuTool.vue | 172 --- .../beijing_01/planSchedule/schedule.vue | 471 ------- .../beijing_01/planSchedule/statusBar.vue | 107 -- .../beijing_01/planSchedule/titleBar.vue | 75 - .../childDialog/childDialog/noticeInfo.vue | 77 -- .../dialog/childDialog/confirmControl.vue | 360 ----- .../childDialog/confirmControlSpeed.vue | 153 -- .../childDialog/confirmSignalUnlock.vue | 118 -- .../menus/dialog/childDialog/confirmTip.vue | 68 - .../menus/dialog/childDialog/confirmTrain.vue | 168 --- .../menus/dialog/childDialog/password.vue | 0 .../dialog/childDialog/passwordInputBox.vue | 196 --- .../menus/dialog/childDialog/popupAlarm.vue | 90 -- .../chengdu_03/menus/dialog/routeControl.vue | 312 ----- .../chengdu_03/menus/dialog/routeDetail.vue | 155 --- .../chengdu_03/menus/dialog/routeGuide.vue | 261 ---- .../menus/dialog/routeHandControl.vue | 285 ---- .../menus/dialog/routeSelection.vue | 272 ---- .../menus/dialog/sectionControl.vue | 245 ---- .../chengdu_03/menus/dialog/sectionDetail.vue | 115 -- .../chengdu_03/menus/dialog/standControl.vue | 726 ---------- .../chengdu_03/menus/dialog/standDetail.vue | 211 --- .../menus/dialog/stationCmdControl.vue | 389 ------ .../menus/dialog/switchCmdControl.vue | 459 ------ .../chengdu_03/menus/dialog/switchControl.vue | 376 ----- .../chengdu_03/menus/dialog/trainControl.vue | 334 ----- .../chengdu_03/menus/dialog/trainCreate.vue | 144 -- .../menus/dialog/trainCreateNumber.vue | 185 --- .../chengdu_03/menus/dialog/trainDelete.vue | 152 -- .../menus/dialog/trainDeleteNumber.vue | 180 --- .../menus/dialog/trainDetailInfo.vue | 375 ----- .../menus/dialog/trainEditNumber.vue | 178 --- .../chengdu_03/menus/dialog/trainMove.vue | 190 --- .../menus/dialog/trainMoveNumber.vue | 197 --- .../chengdu_03/menus/dialog/trainSwitch.vue | 195 --- src/jmap/theme/chengdu_03/menus/index.vue | 360 ----- src/jmap/theme/chengdu_03/menus/menuBar.vue | 1057 -------------- .../theme/chengdu_03/menus/menuButton.vue | 319 ----- .../theme/chengdu_03/menus/menuCancel.vue | 104 -- .../childDialog/twoConfirmation.vue | 127 -- .../menus/menuDialog/childDialog/userAdd.vue | 162 --- .../menuDialog/childDialog/userDelete.vue | 134 -- .../menus/menuDialog/childDialog/userEdit.vue | 178 --- .../chengdu_03/menus/menuDialog/helpAbout.vue | 131 -- .../menus/menuDialog/limitSpeed.vue | 135 -- .../menus/menuDialog/manageUser.vue | 290 ---- .../menus/menuDialog/passwordBox.vue | 221 --- .../menus/menuDialog/setLimitSpeed.vue | 275 ---- .../menuDialog/stationControlConvert.vue | 414 ------ .../chengdu_03/menus/menuDialog/trainAdd.vue | 162 --- .../menus/menuDialog/trainDelete.vue | 149 -- .../menus/menuDialog/trainTranstalet.vue | 152 -- .../menus/menuDialog/viewDevice.vue | 166 --- .../chengdu_03/menus/menuDialog/viewName.vue | 256 ---- .../menus/menuDialog/viewTrainId.vue | 192 --- .../theme/chengdu_03/menus/menuSection.vue | 286 ---- .../theme/chengdu_03/menus/menuSignal.vue | 491 ------- .../theme/chengdu_03/menus/menuStation.vue | 156 --- .../chengdu_03/menus/menuStationControl.vue | 69 - .../chengdu_03/menus/menuStationStand.vue | 345 ----- .../theme/chengdu_03/menus/menuSwitch.vue | 453 ------ src/jmap/theme/chengdu_03/menus/menuTool.vue | 214 --- src/jmap/theme/chengdu_03/menus/menuTrain.vue | 404 ------ .../chengdu_03/menus/passiveDialog/alarm.vue | 214 --- .../menus/passiveDialog/control.vue | 285 ---- .../menus/passiveDialog/timeout.vue | 106 -- .../chengdu_03/menus/utils/menuItemStatus.js | 601 -------- .../theme/chengdu_03/menusPlan/addTask.vue | 175 --- .../menusPlan/chooseTemplatePlan.vue | 115 -- .../menusPlan/components/dataTable.vue | 206 --- .../chengdu_03/menusPlan/createTodayPlan.vue | 135 -- .../chengdu_03/menusPlan/createWeekPlan.vue | 137 -- .../theme/chengdu_03/menusPlan/deleteTask.vue | 73 - .../chengdu_03/menusPlan/deleteTodayPlan.vue | 62 - .../chengdu_03/menusPlan/managePlanList.vue | 143 -- .../chengdu_03/menusPlan/modifyingPlan.vue | 177 --- .../chengdu_03/menusPlan/modifyingTask.vue | 326 ----- src/jmap/theme/chengdu_03/model.js | 68 - src/jmap/theme/chengdu_03/planConvert.js | 292 ---- .../theme/chengdu_03/planSchedule/index.vue | 403 ------ .../theme/chengdu_03/planSchedule/menuBar.vue | 514 ------- .../chengdu_03/planSchedule/menuTool.vue | 170 --- .../chengdu_03/planSchedule/schedule.vue | 481 ------- .../chengdu_03/planSchedule/statusBar.vue | 100 -- .../chengdu_03/planSchedule/titleBar.vue | 75 - .../chengdu_04/menus/dialog/alxeEffective.vue | 381 ----- .../menus/dialog/cancelAllLimit.vue | 371 ----- .../childDialog/childDialog/noticeInfo.vue | 86 -- .../dialog/childDialog/confirmControl.vue | 360 ----- .../childDialog/confirmControlSpeed.vue | 153 -- .../childDialog/confirmSignalUnlock.vue | 118 -- .../menus/dialog/childDialog/confirmTip.vue | 68 - .../menus/dialog/childDialog/confirmTrain.vue | 178 --- .../menus/dialog/childDialog/password.vue | 0 .../dialog/childDialog/passwordInputBox.vue | 206 --- .../menus/dialog/childDialog/popupAlarm.vue | 99 -- .../chengdu_04/menus/dialog/routeControl.vue | 363 ----- .../chengdu_04/menus/dialog/routeDetail.vue | 140 -- .../chengdu_04/menus/dialog/routeGuide.vue | 283 ---- .../menus/dialog/routeSelection.vue | 270 ---- .../menus/dialog/sectionCmdControl.vue | 435 ------ .../menus/dialog/sectionControl.vue | 215 --- .../chengdu_04/menus/dialog/sectionDetail.vue | 115 -- .../menus/dialog/speedCmdControl.vue | 896 ------------ .../chengdu_04/menus/dialog/standControl.vue | 621 --------- .../chengdu_04/menus/dialog/standDetail.vue | 219 --- .../menus/dialog/stationCmdControl.vue | 389 ------ .../menus/dialog/switchCmdControl.vue | 459 ------ .../chengdu_04/menus/dialog/switchControl.vue | 416 ------ src/jmap/theme/chengdu_04/menus/index.vue | 360 ----- src/jmap/theme/chengdu_04/menus/menuBar.vue | 1220 ---------------- .../theme/chengdu_04/menus/menuCancel.vue | 150 -- .../childDialog/twoConfirmation.vue | 137 -- .../menus/menuDialog/childDialog/userAdd.vue | 162 --- .../menuDialog/childDialog/userDelete.vue | 144 -- .../menus/menuDialog/childDialog/userEdit.vue | 178 --- .../chengdu_04/menus/menuDialog/helpAbout.vue | 131 -- .../menus/menuDialog/limitSpeed.vue | 135 -- .../menus/menuDialog/manageUser.vue | 290 ---- .../menus/menuDialog/passwordBox.vue | 221 --- .../menus/menuDialog/setLimitSpeed.vue | 275 ---- .../menuDialog/stationControlConvert.vue | 414 ------ .../chengdu_04/menus/menuDialog/trainAdd.vue | 162 --- .../menus/menuDialog/trainDelete.vue | 149 -- .../menus/menuDialog/trainTranstalet.vue | 152 -- .../menus/menuDialog/viewDevice.vue | 166 --- .../chengdu_04/menus/menuDialog/viewName.vue | 256 ---- .../menus/menuDialog/viewTrainId.vue | 183 --- src/jmap/theme/chengdu_04/menus/menuLimit.vue | 118 -- .../theme/chengdu_04/menus/menuSection.vue | 403 ------ .../theme/chengdu_04/menus/menuSignal.vue | 583 -------- .../theme/chengdu_04/menus/menuStation.vue | 153 -- .../chengdu_04/menus/menuStationControl.vue | 69 - .../chengdu_04/menus/menuStationStand.vue | 372 ----- .../theme/chengdu_04/menus/menuSwitch.vue | 462 ------- src/jmap/theme/chengdu_04/menus/menuTool.vue | 205 --- src/jmap/theme/chengdu_04/menus/menuTrain.vue | 42 - .../chengdu_04/menus/passiveDialog/alarm.vue | 210 --- .../menus/passiveDialog/control.vue | 285 ---- .../menus/passiveDialog/timeout.vue | 106 -- .../chengdu_04/menus/utils/menuItemStatus.js | 587 -------- .../theme/chengdu_04/menusPlan/addTask.vue | 175 --- .../menusPlan/chooseTemplatePlan.vue | 115 -- .../menusPlan/components/dataTable.vue | 206 --- .../chengdu_04/menusPlan/createTodayPlan.vue | 134 -- .../chengdu_04/menusPlan/createWeekPlan.vue | 137 -- .../theme/chengdu_04/menusPlan/deleteTask.vue | 73 - .../chengdu_04/menusPlan/deleteTodayPlan.vue | 62 - .../chengdu_04/menusPlan/managePlanList.vue | 143 -- .../chengdu_04/menusPlan/modifyingPlan.vue | 177 --- .../chengdu_04/menusPlan/modifyingTask.vue | 326 ----- src/jmap/theme/chengdu_04/model.js | 68 - src/jmap/theme/chengdu_04/planConvert.js | 310 ----- .../theme/chengdu_04/planSchedule/index.vue | 403 ------ .../theme/chengdu_04/planSchedule/menuBar.vue | 514 ------- .../chengdu_04/planSchedule/menuTool.vue | 172 --- .../chengdu_04/planSchedule/schedule.vue | 482 ------- .../chengdu_04/planSchedule/statusBar.vue | 100 -- .../chengdu_04/planSchedule/titleBar.vue | 75 - src/jmap/theme/factory.js | 6 +- 254 files changed, 7 insertions(+), 63819 deletions(-) delete mode 100644 src/jmap/config/skinCode/bejing_01.js delete mode 100644 src/jmap/config/skinCode/chengdu_03.js delete mode 100644 src/jmap/config/skinCode/chengdu_04.js delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/alxeEffective.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/cancelAllLimit.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/childDialog/noticeInfo.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmSignalUnlock.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTip.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/childDialog/popupAlarm.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeCmdControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeDetail.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeHandControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeLock.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/routeSelection.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/sectionCmdControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/sectionControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/speedCmdControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/speedLimitControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standBackStrategy.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standDetail.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standDetainTrainAll.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standJumpStopControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standRunLevel.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/standStopTime.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/stationCmdControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/stationHumanControlAll.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/switchCmdControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/switchControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainAddPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainCreate.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainDefine.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainDelete.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainDeletePlan.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainEdit.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainFlag.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainMove.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainMoveEvently.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainSetHead.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainSetPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menus/dialog/trainSetWork.vue delete mode 100644 src/jmap/theme/beijing_01/menus/index.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuBar.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuButton.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuCancel.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/childDialog/twoConfirmation.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userAdd.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorlUpDown.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/helpAbout.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/manageUser.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/stationControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/trainAdd.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/trainDelete.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/trainTranstalet.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/viewDevice.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/viewName.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuDialog/viewTrainId.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuLimit.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuSection.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuSignal.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuStation.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuStationControl.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuStationStand.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuSwitch.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuTool.vue delete mode 100644 src/jmap/theme/beijing_01/menus/menuTrain.vue delete mode 100644 src/jmap/theme/beijing_01/menus/passiveDialog/alarm.vue delete mode 100644 src/jmap/theme/beijing_01/menus/passiveDialog/control.vue delete mode 100644 src/jmap/theme/beijing_01/menus/passiveDialog/timeout.vue delete mode 100644 src/jmap/theme/beijing_01/menus/utils/menuItemStatus.js delete mode 100644 src/jmap/theme/beijing_01/menusPlan/addTask.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/chooseTemplatePlan.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/createTodayPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/createWeekPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/deleteTask.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/deleteTodayPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/managePlanList.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue delete mode 100644 src/jmap/theme/beijing_01/menusPlan/modifyingTask.vue delete mode 100644 src/jmap/theme/beijing_01/model.js delete mode 100644 src/jmap/theme/beijing_01/planConvert.js delete mode 100644 src/jmap/theme/beijing_01/planSchedule/index.vue delete mode 100644 src/jmap/theme/beijing_01/planSchedule/menuBar.vue delete mode 100644 src/jmap/theme/beijing_01/planSchedule/menuTool.vue delete mode 100644 src/jmap/theme/beijing_01/planSchedule/schedule.vue delete mode 100644 src/jmap/theme/beijing_01/planSchedule/statusBar.vue delete mode 100644 src/jmap/theme/beijing_01/planSchedule/titleBar.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/childDialog/noticeInfo.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmSignalUnlock.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTrain.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/password.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/childDialog/popupAlarm.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/routeDetail.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/routeSelection.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/sectionControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/sectionDetail.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/standControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/standDetail.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/stationCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/switchCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/switchControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainCreate.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainCreateNumber.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainDelete.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainDeleteNumber.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainDetailInfo.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainEditNumber.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainMove.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainMoveNumber.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/dialog/trainSwitch.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/index.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuBar.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuButton.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuCancel.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/twoConfirmation.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userAdd.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userDelete.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userEdit.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/helpAbout.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/limitSpeed.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/manageUser.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/passwordBox.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/setLimitSpeed.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/stationControlConvert.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/trainAdd.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/trainDelete.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/trainTranstalet.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/viewDevice.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/viewName.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuDialog/viewTrainId.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuSection.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuSignal.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuStation.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuStationControl.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuStationStand.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuSwitch.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuTool.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/menuTrain.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/passiveDialog/alarm.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/passiveDialog/control.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/passiveDialog/timeout.vue delete mode 100644 src/jmap/theme/chengdu_03/menus/utils/menuItemStatus.js delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/addTask.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/chooseTemplatePlan.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/createTodayPlan.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/createWeekPlan.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/deleteTask.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/deleteTodayPlan.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/managePlanList.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/modifyingPlan.vue delete mode 100644 src/jmap/theme/chengdu_03/menusPlan/modifyingTask.vue delete mode 100644 src/jmap/theme/chengdu_03/model.js delete mode 100644 src/jmap/theme/chengdu_03/planConvert.js delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/index.vue delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/menuBar.vue delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/menuTool.vue delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/schedule.vue delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/statusBar.vue delete mode 100644 src/jmap/theme/chengdu_03/planSchedule/titleBar.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/alxeEffective.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/cancelAllLimit.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/childDialog/noticeInfo.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControlSpeed.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmSignalUnlock.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTip.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTrain.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/password.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/passwordInputBox.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/childDialog/popupAlarm.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/routeControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/routeDetail.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/routeGuide.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/routeSelection.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/sectionCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/sectionControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/sectionDetail.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/speedCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/standControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/standDetail.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/stationCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/switchCmdControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/dialog/switchControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/index.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuBar.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuCancel.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/twoConfirmation.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userAdd.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userDelete.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userEdit.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/helpAbout.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/limitSpeed.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/manageUser.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/passwordBox.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/setLimitSpeed.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/stationControlConvert.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/trainAdd.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/trainDelete.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/trainTranstalet.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/viewDevice.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/viewName.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuDialog/viewTrainId.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuLimit.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuSection.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuSignal.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuStation.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuStationControl.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuStationStand.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuSwitch.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuTool.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/menuTrain.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/passiveDialog/alarm.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/passiveDialog/control.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/passiveDialog/timeout.vue delete mode 100644 src/jmap/theme/chengdu_04/menus/utils/menuItemStatus.js delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/addTask.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue delete mode 100644 src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue delete mode 100644 src/jmap/theme/chengdu_04/model.js delete mode 100644 src/jmap/theme/chengdu_04/planConvert.js delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/index.vue delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/menuBar.vue delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/menuTool.vue delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/schedule.vue delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/statusBar.vue delete mode 100644 src/jmap/theme/chengdu_04/planSchedule/titleBar.vue diff --git a/src/jmap/config/deviceStyle.js b/src/jmap/config/deviceStyle.js index 3b7f47be2..1eb3cf035 100644 --- a/src/jmap/config/deviceStyle.js +++ b/src/jmap/config/deviceStyle.js @@ -1,8 +1,8 @@ const mapDeviceStyle = { - '01': 'chengdu_04', - '02': 'fuzhou_01', - '03': 'bejing_01', - '04': 'chengdu_03' + // '01': 'chengdu_04', + '02': 'fuzhou_01' + // '03': 'bejing_01', + // '04': 'chengdu_03' }; export function selectLineCode(code) { diff --git a/src/jmap/config/skinCode/bejing_01.js b/src/jmap/config/skinCode/bejing_01.js deleted file mode 100644 index 4b5f409ca..000000000 --- a/src/jmap/config/skinCode/bejing_01.js +++ /dev/null @@ -1,585 +0,0 @@ -import defaultStyle from '../defaultStyle'; -import deviceType from '../../constant/deviceType'; - -class SkinCode extends defaultStyle { - constructor() { - super(); - this[deviceType.Link] = { - lineWidthColor: '#FFFFFF', // line 颜色 - linkWidth: 4.4, // link 宽度 - linkColor: '#3F3F3F', // link 线条颜色 - linkTextColor: '#FFFFFF' // link 字体颜色 - }; - - this[deviceType.Section] = { - active: { - routeColor: false // 进路触发颜色 - }, - text: { // 物理区段名称 - show: true, // 物理区段名称显示 - position: -1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - logicText: { // 逻辑区段名称 - show: false, // 逻辑区段名称显示 - position: -1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - standText: { // 站台轨名称 - show: true, // 站台轨名称显示 - opposite: true, // 对称相反 - position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - reentryText: { // 折返轨名称 - show: true, // 折返轨名称显示 - opposite: true, // 对称相反 - position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - transferText: { // 转换轨名称 - show: true, // 转换轨名称显示 - opposite: true, // 对称相反 - position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - destinationText: { // 目的码名称 - show: true, // 目的码名称显示 - position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 11, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'bold', // 字体粗细 - fontColor: 'yellow', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - mouseOverStyle: { - borderColor: '#fff', - borderBackgroundColor: '#22DFDF', - textShadowColor: '#22DFDF' - }, - line: { - width: 5, // 区段宽度 - beyondWidth: 0, // 区段宽超出宽度 - invadeColor: '#EF0C08', // 区段侵入颜色 - spareColor: '#606060', // 区段空闲颜色 - communicationOccupiedColor: '#FF0000', // 区段通信车占用颜色 - unCommunicationOccupiedColor: '#800080', // 区段非通讯车占用颜色 - routeLockColor: '#FFFFFF', // 区段路由锁定颜色 - faultLockColor: '#006400', // 区段故障锁定颜色 - undefinedColor: '#0071C1', // 区段未定义颜色 - protectionLockedColor: '#FEFF00', // 保护区段锁闭(未用) - blockColor: '#800080', // 区段封锁颜色 - atcExcisionColor: '#A0522D', // 区段atc切除颜色 - atsExcisionColor: '#A0522D', // 区段ats切除颜色 - timeReleaseColor: '#3F3F3F', // 区段延时释放颜色 - protectiveLockColor: '#FFFF00', // 区段保护锁闭 - protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁 - logicalColor: '#FFFF00', // 逻辑区段颜色 (未用) - logicalTextColor: '#C0C0C0' // 逻辑区段名称颜色 (未用) - }, - axle: { - radius: 3, // 计轴 半径 - distance: 5, // 计轴和区段之间的距离 (未用) - color: '#C0C0C0', // 区段计轴颜色 - resetColor: '#00FFFF', // 区段计轴预复位颜色 - Failure: '#E6A23C' // #FFFF00 计轴失效 - }, - speedLimit: { // 限速元素 - width: 1, // 限速线的宽度 - distance: 5, // 限速线距离区段距离 - lineColor: '#FFFF00', // 限速线颜色 - nameShow: false // 名称显示 - }, - separator: { - z: 1, // 分割符层级 - width: 1.5, // 分隔符宽度 - endWidth: 1.5, // 尽头分隔符宽度 - endColor: '#7F7F7F', // 尽头分隔符颜色 - color: '#7F7F7F' // 区段边界符颜色 - } - }; - - this[deviceType.Signal] = { - distance: 0, // 设备距离区段的距离 - post: { - standardColor: '#5578B6', // 灯灯柱颜色 - standardWidth: 1.5 // 灯柱宽度 - }, - text: { - show: true, // 信号机名称显示 - distance: 3, // 文字和灯杆的距离 - isNoRotation: true, // 是否禁止旋转 - isAlignCenter: false, // 信号字体对其方式 - fontSize: 11, // 信号机名称字体大小 - fontWeight: 'bold', // 信号机名称字体粗细 - defaultColor: '#C0C0C0', // 信号灯字体默认色 - blockColor: '#EF0C08', // 信号灯字体锁定颜色 - checkColor: '#00FF00' // 信号字体 - }, - lamp: { - guidName: 'defult', // 默认引导类型 - stopWidth: 2, // 禁止线宽度 - borderVariable: true, // 信号灯边框可变 - borderWidth: 0.5, // 信号灯边框线宽度 - borderColor: '#3149C3', // 信号灯边框线颜色 - radiusR: 5, // 信号机宽度 - blockColor: '#EF0C08', // 信号灯锁闭 - grayColor: '#7F7F7F', // 信号灯灰色 - redColor: '#FF0000', // 信号灯红色 - greenColor: '#00FF00', // 信号灯绿色 - yellowColor: '#FFFF00', // 信号灯黄色 - whiteColor: '#FFFFFF', // 信号灯白色 - blueColor: '#0070C0' // 信号灯蓝色 - }, - route: { - direction: false, // 自动进路方向 - offset: { x: 1, y: -2 }, // 自动进路偏移量 - routeColor: '#00FF00' // 自动进路 - }, - auto: { - direction: true, // 自动通过方向 - offset: { x: 4, y: 0}, // 自动通过偏移量 - width: 5, // 自动宽度 - autoRoute: '#00FF00', // 自动进路 - autoTrigger: '#FFFF00', // 自动触发 - manualControl: '#FFFF00', // 人工控制 - outConflict: '#C00808' // 出车冲突 - }, - delay: { - direction: false, // 延时解锁方向 - offset: { x: 0, y: -5}, // 延时解锁偏移量 - fontSize: 9, // 延迟解锁字体大小 - fontColor: '#FF0000', // 延迟解锁颜色 - fontWeight: 'bold' // 字体粗细 - }, - button: { - distance: 5, // 信号灯按钮距离区段的距离 - borderDashColor: '#FFFFFF', // 信号灯按钮边线 - buttonColor: 'darkgreen', // 信号灯按钮颜色 - buttonLightenColor: '#E4EF50' // 信号灯按钮闪烁颜色 - }, - mouseOverStyle: { - borderLineColor: '#FFFFFF', - borderLineDash: [3, 3], - nameBackgroundColor: '#22DFDF', - lampBorderLineColor: '#22DFDF' - } - }; - - this[deviceType.StationStand] = { - common: { // 通用属性 - textFontSize: 8 // 站台默认字体大小 - }, - safetyDoor: { // 屏蔽门 - height: 1.6, // 站台屏蔽门高度 - distance: 9, // 站台和屏蔽门之间的距离 - defaultColor: '#00FF00', // 屏蔽门默认颜色 - splitDoorColor: '#F61107' // 屏蔽门切除颜色 - }, - stand: { // 站台 - headFontSize: 8, // 站台首端字体大小 - spareColor: '#606060', // 站台空闲颜色 - stopColor: '#FEFE00', // 站台列车停站颜色 - jumpStopColor: '#9A99FF', // 站台跳停颜色 - designatedJumpStopColor: 'lightSkyBlue' // 站台指定列车跳停颜色 - }, - standEmergent: { // 紧急关闭 - mergentR: 4, // 站台紧急关闭半径 - offset: {x: 0, y: 0}, // 站台紧急关闭偏移量 - closeColor: '#F61107' // 站台紧急关闭颜色 - }, - reentry: { // 站台折返策略 - position: 0, // 折返方向 - offset: {x: -16, y: 18}, // 折返偏移量 - noHumanColor: '#0F16DA', // 站台无人折返 - autoChangeEndsColor: '#0BF400' // 站台自动换端 - }, - detainCar: { // 扣车 - text: 'H', // 扣车显示内容 - position: 1, // 扣车方向 - offset: {x: -8, y: 13}, // 扣车偏移量 - trainColor: '#E4EF50', // 车站扣车颜色 - centerTrainColor: '#FFFFFF', // 中心扣车颜色 - andCenterTrainColor: '#F61107', // 车站+中心扣车颜色 - detainTrainTextColor: '#E4EF50' // 车站扣除文字颜色 - }, - stopTime: { // 停站时间 - position: 1, // 运行时间方向 - offset: {x: -8, y: 3}, // 运行时间偏移量 - textColor: '#FFFFFF' // 停站时间字体颜色 - }, - level: { // 运行等级 - position: 1, // 运行等级方向 - offset: {x: -8, y: 22}, // 运行等级偏移量 - textColor: '#FFFFFF' // 停站等级字体颜色 - }, - mouseOverStyle: { - borderLineColor: '#FFFFFF', - borderLineDash: [3, 3] - } - }; - - this[deviceType.StationControl] = { - text: { - distance: 2, // 灯和文字之间的距离 - fontSize: 10, // 控制模式字体大小 - fontFormat: 'consolas', // 控制模式字体格式 - fontColor: '#ffffff', // 控制模式字体颜色 - fontWeight: 'normal', // 控制模式字体粗细 - textAlign: 'middle', // 控制模式水平对齐 - textVerticalAlign: 'top' // 控制模式垂直对齐 - }, - lamp: { - count: 3, // 控制模式灯个数 - offset: { x: 20, y: 0 }, // 偏移量 - radiusR: 6, // 控制模式灯的半径 - distance: 36, // 控制模式之间灯之间的距离 - grayColor: '#7F7F7F', // 控制模式灰色 - greenColor: '#00FF00', // 控制模式绿色 - redColor: '#FF0000', // 控制模式红色 - yellowColor: '#FFFF00', // 控制模式黄色 - emergencyControlShow: true, // 紧急站控显示 - centerControlShow: true, // 中控显示 - substationControlShow: true, // 站控按钮显示 - interconnectedControlShow: false // 联锁控显示 - }, - arrow: { - show: false // 控制模式箭头显隐 - }, - mouseOverStyle: { // 鼠标悬浮样式 - fontSize: 10, - fontFormat: 'consolas', - fontColor: '#FFF000', - fontWeight: 'normal', - textAlign: 'middle', - textVerticalAlign: 'top' - } - }; - - this[deviceType.StationCounter] = { - text: { - distance: 2, // 计数器名称和文字的距离 - fontColor: '#FFFFFF', // 计数器字体颜色 - borderColor: '#E4EF50' // 计数器边框颜色 - } - }; - - this[deviceType.StationDelayUnlock] = { - text: { - distance: 3, // 延迟解锁和设备之间的距离 - fontColor: '#FFFFFF', // 延时解锁字体颜色 - borderColor: '#FFFFFF' // 延迟解锁边框颜色 - } - }; - - this[deviceType.Station] = { - // text: { - // show: true // 公里标名称显示 - // }, - kmPostShow: true, // 公里标显示 - kilometerPosition: 'down', // 公里标位置 - fontWeight: 'bold' // 文字错细 - }; - - this[deviceType.Switch] = { - text: { - show: true, // 道岔名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - offset: {x: -15, y: -10}, // 道岔名称与区段距离 - fontSize: 10, // 字体大小 - fontColor: '#C0C0C0', // 道岔名称颜色 - fontWeight: 'normal', // 字体粗细 - borderColor: '#FE0000', // 道岔边框颜色 - lossColor: '#FFFFFF', // 道岔失去颜色 - locateColor: '#00FF00', // 道岔定位颜色 - inversionColor: '#9C9D09', // 道岔反位颜色 - monolockColor: '#870E10' // 道岔单锁颜色 - }, - core: { - length: 6 // 道岔单边长度 - }, - monolock: { // 道岔单锁配置 - locationColor: '#870E10', // 道岔单锁定位颜色 (红色) - inversionColor: '#870E10', // 道岔单锁反位颜色 (红色) - rectShow: false // 道岔单锁 矩形框是否显示 - }, - block: { // 道岔封锁配置 - nameBorderShow: true, // 道岔名称是否有包围框 显示 - contentRectShow: false // 道岔封锁显示 - }, - mouseOverStyle: { - borderBackgroundColor: '#22DFDF', // 边框背景色 - borderColor: '#fff', // 边框颜色 - textShadowColor: '#22DFDF' // 字体阴影颜色 - } - }; - - 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.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.Line] = { - lineColor: '#FFFFFF' // 线条颜色 - }; - - this[deviceType.TrainWindow] = { - lineColor: '#FFF', // 车次窗颜色 - lineDash: [3, 3], // 车次窗虚线间隔 - lineWidth: 1, // 车次窗线宽 - trainWindowSmooth: 0.01 // 车次窗矩形圆滑程度 - }; - - this[deviceType.Train] = { - trainBody: { - trainBodyLineWidth: 0.1, // 车身line宽 - changeTrainWidth: false, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度 - specialTrainType: [ - { - type: '03', - serviceNumber: 'M0', - nameFormat: 'serviceNumber:groupNumber' - }, - { - type: '02', - nameFormat: 'targetCode:groupNumber' - } - ], // 特殊列车类型需设置显示格式 - lrPadding: 4, // 两边间隔 - upPadding: 4, // 上边距离 - trainBodyFillColor: '#725A64', // 列车车身填充颜色 - trainNameFormat: 'serviceNumber:tripNumber'// 列车显示格式 - }, - hsda: { - lrPaddingHSDA: 3, // HSDA两边间隔 - upPaddingHSDA: 4, // HSDA上边距离 - trainHSDATextFontSize: 9, // 列车HDSA字号 - textHContent: 'H', // textH文本 - textSContent: 'S', // textS文本 - textDContent: 'D', // textD文本 - textAContent: 'A'// textA文本 - }, - trainNumber: { - trainNumberOffset: { x: 0, y: 1}// 目的地码偏移量 - }, - trainServer: { - serviceNumberPrefix: '00', // 服务号(表号)前缀 - defaultServiceNumber: 'AA', // 默认服务号(表号) - trainServerOffset: { x: 4, y: 4}// 列车服务号偏移 - }, - trainTarget: { - tripNumberPrefix: '000', // 车次号前缀 - defaultTripNumber: 'DDD', // 默认车次号2 - trainTargetOffset: { x: 36, y: 4}, // 列车车次号偏移 - trainTargetTextAlign: 'left'// 车次号文字显示位置 - }, - trainTargetNumber: { - trainTargetNumberOffset: {x: 0, y: 0}// 车组号偏移量 - }, - trainHead: { - trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框 - trainHeadTriangleFirst: { x: 7, y: 1}, // 列车车头三角坐标1偏移量 - trainHeadTriangleSecond: { x: 13, y: 10}, // 列车车头三角坐标2偏移量 - trainHeadTriangleThird: { x: 7, y: 19}, // 列车车头三角坐标3偏移量 - trainHeadRectHeight: 20, // 列车车头矩形高度 - trainConntWidth: 3, // 列车竖杠的宽度 - trainHeadFillColor: '#000000'// 列车车头矩形填充颜色 - }, - common: { - trainHeight: 20, // 列车高度 - trainHeadDistance: 4, // 列车和车头之间的间距 - trainWidth: 40, // 列车长度 - trainTextFontSize: 12, // 列车字号 - fontFamily: 'consolas', // 默认字体 族类 - haveTextHSDA: true, // 是否需创建textHSDA对象 - haveArrowText: true, // 是否需创建arrowText对象 - haveTrainBorder: false, // 是否需创建trainBorder对象 - textOffset: 4, // 字体偏移(用以控制字体据车头的距离) - trainWidthMoreText: 8, // 计算列车长度时--列车长比text多出尺寸 - useSelfFormat: true, // 使用配置项的nameFormat - useSelfText: true // 使用配置项的字体大小 - }, - trainStatusStyle: { - destinationStatus: [ - {status: '01', showColor: '#FFFFFF'}, - {status: '02', showColor: '#00FF00'}, - {status: '03', showColor: '#A0522D'}, - {status: '04', showColor: '#FFFF00'} - ], // 目的地状态 01准点 02早点 03晚点 04头码车 - defaultDestinationColor: '#FFFFFF', // 默认目的地状态显示颜色 - destinationStatusSetText: 'trainTarget', // 目的地状态设置的对应哪个text的颜色 - directionType: [ - { - type: '01', - lineLShow: true, - lineRShow: true, - arrowLShow: false, - arrowRShow: false - }, - { - type: '02', - lineLShow: false, - lineRShow: true, - arrowLShow: false, - arrowRShow: true - }, - { - type: '03', - lineLShow: true, - lineRShow: false, - arrowLShow: true, - arrowRShow: false - } - ], // 列车运行方向状态类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - directionStopType: [ - {type: '01', lineLShow: false, lineRShow: false}, - {type: '02', lineLShow: false, lineRShow: true}, - {type: '03', lineLShow: true, lineRShow: false} - ], // 列车停止方向类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - runModeStatus: [ - { - status: '01', - trainLColor: '#FFFFFF', - trainRColor: '#FFFFFF' - }, - { - status: '02', - trainLColor: '#00FF00', - trainRColor: '#00FF00' - }, - { - status: '03', - trainLColor: '#FFFF00', - trainRColor: '#FFFF00'}, - { - status: '04', - trainLColor: '#A0522D', - trainRColor: '#A0522D' - }, - { - status: '05', - trainLColor: '#A0522D', - trainRColor: '#A0522D' - } - ], // 列车运行模式对应车头颜色 01未知 02 ATO自动驾驶模式AM 03 ATP监控下的人工驾驶模式CM 04 限制人工驾驶模式RM 05 非限制人工驾驶模式RM - runControlStatus: [ - {status: '01', hShow: false, sShow: false}, - {status: '02', hShow: true, sShow: false}, - {status: '03', hShow: false, sShow: true} - ], // 设置运行控制状态类型 01正常 02扣车 03停跳 - doorStatus: [ - {status: '01', dShow: false}, - {status: '02', dShow: true} - ], // 设置车门状态类型 01关门 02开门 - communicationStatus: [ - {status: '01', trainColor: '#725A64'}, - {status: '02', trainColor: '#C0C0C0'} - ], // 设置通信状态 01正常 02故障 - alarmStatus: [ - {status: '01', aShow: false}, - {status: '02', aShow: true} - ], // 设置报警状态 01不报警 02报警 - serverNoType: [ - {type: '01', showColor: '#FFFFFF'}, - {type: '02', showColor: '#FFF000'} - ], // 服务号状态类型 01显示服务号 计划车 02显示车组号: 头码车与人工车 - defaultServerNoColor: '#FFFFFF' // 默认服务号状态显示颜色 - } - }; - } -} - -export default new SkinCode(); diff --git a/src/jmap/config/skinCode/chengdu_03.js b/src/jmap/config/skinCode/chengdu_03.js deleted file mode 100644 index 6106b0359..000000000 --- a/src/jmap/config/skinCode/chengdu_03.js +++ /dev/null @@ -1,591 +0,0 @@ -import defaultStyle from '../defaultStyle'; -import deviceType from '../../constant/deviceType'; - -class SkinCode extends defaultStyle { - constructor() { - super(); - this[deviceType.Link] = { - lineWidthColor: '#FFFFFF', // line 颜色 - linkWidth: 4.4, // link 宽度 - linkColor: '#3F3F3F', // link 线条颜色 - linkTextColor: '#FFFFFF' // link 字体颜色 - }; - - this[deviceType.Section] = { - active: { - routeColor: true // 进路触发颜色 - }, - text: { - show: true, // 物理区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 10, // 文字离区段距离 - fontSize: 12, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - logicText: { - show: false, // 逻辑区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 12, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - standText: { - show: true, // 站台轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 24, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - reentryText: { - show: true, // 折返轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 36, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - transferText: { - show: true, // 转换轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 36, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - destinationText: { - show: true, // 目的码名称显示 - opposite: true, // 对称相反 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 12, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'bold', // 字体粗细 - fontColor: 'yellow', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - line: { - width: 5, // 区段宽度 - beyondWidth: 0, // 区段宽超出宽度 - invadeColor: '#FFFFFF', // 区段侵入颜色 - spareColor: '#618cc3', // 区段空闲颜色 - communicationOccupiedColor: '#FF00FF', // 区段通信车占用颜色 - unCommunicationOccupiedColor: '#DE310C', // 区段非通讯车占用颜色 - routeLockColor: '#3FFD46', // 区段路由锁定颜色 - faultLockColor: '#006400', // 区段故障锁定颜色 - undefinedColor: '#0071C1', // 区段未定义颜色 - protectionLockedColor: '#3FFD46', // 保护区段锁闭 - blockColor: '#00FF00', // 区段封锁颜色 - atcExcisionColor: '#A0522D', // 区段atc切除颜色 - atsExcisionColor: '#A0522D', // 区段ats切除颜色 - timeReleaseColor: '#3F3F3F', // 区段延时释放颜色 - protectiveLockColor: '#FFFF00', // 区段保护锁闭 - protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁 - logicalColor: '#FFFF00', // 逻辑区段颜色 (未用) - logicalTextColor: '#C0C0C0' // 逻辑区段名称颜色 (未用) - }, - axle: { - radius: 3, // 计轴 半径 - distance: 5, // 计轴和区段之间的距离 (未用) - color: '#C0C0C0', // 区段计轴颜色 - resetColor: '#00FFFF', // 区段计轴预复位颜色 - Failure: '#E6A23C' // #FFFF00 计轴失效 - }, - speedLimit: { // 限速元素 - width: 1, // 限速线的宽度 - distance: 5, // 限速线距离区段距离 - lineColor: '#C0C000', // 限速线颜色 (黄色透明光) - nameBackground: '#C0C000', // 限速名称背景颜色 - nameShow: true, // 名称显示 - nameNumberColor: '#C00808', // 限速值颜色 - nameNumberFontSize: 11, // 限速值大小 - kilometerColor: '#fff', // 公里标颜色 - kilometerFontSize: 8, // 公里标大小 - drogueWidth: 19, // 浮标宽度 - drogueHeight: 12 // 浮标高度 - }, - separator: { - z: 6, // 分割符层级 - width: 1.5, // 分隔符宽度 - endWidth: 1.5, // 尽头分隔符宽度 - endColor: '#FFFFFF', // 尽头分隔符颜色 - color: '#FFFFFF' // 区段边界符颜色 - }, - shuttleBack: { // 折返进路 (存在此对象 显示折返箭头) - distance: 5 // 限速线距离区段距离 - } - }; - - this[deviceType.Signal] = { - distance: 10, // 设备距离区段的距离 - post: { - standardColor: '#FFFFFF', // 灯柱颜色 - standardWidth: 2 // 灯柱宽度 - }, - text: { - show: true, // 信号机名称显示 - distance: 3, // 文字和灯杆的距离 - isNoRotation: true, // 是否禁止旋转 - isAlignCenter: false, // 信号字体对其方式 - fontSize: 11, // 信号机名称字体大小 - fontWeight: 'bold', // 信号机名称字体粗细 - defaultColor: '#FFFFFF', // 信号灯字体默认色 - blockColor: '#EF0C08', // 信号灯字体锁定颜色 - checkColor: '#00FF00' // 信号保护区段检查颜色 - }, - lamp: { - guidName: 'chengdu_03', // 成都三号线引导类型 - borderVariable: true, // 信号灯边框可变 - stopWidth: 2, // 禁止线宽度 - borderWidth: 2, // 信号灯边框线宽度 - borderColor: '#3149C3', // 信号灯边框线颜色 - radiusR: 6, // 信号灯半径 - blockColor: '#EF0C08', // 信号灯锁闭 - grayColor: '#7F7F7F', // 信号灯灰色 - redColor: '#FF0000', // 信号灯红色 - greenColor: '#00FF00', // 信号灯绿色 - yellowColor: '#FFFF00', // 信号灯黄色 - whiteColor: '#FFFFFF', // 信号灯白色 - blueColor: '#0070C0' // 信号灯蓝色 - }, - route: { - direction: true, // 自动通过方向 - offset: { x: 4, y: 0}, // 自动通过偏移量 - routeColor: '#00FF00' // 自动进路 - }, - auto: { - direction: false, // 自动通过方向 - offset: { x: -4, y: 0}, // 自动通过偏移量 - width: 5, // 自动宽度 - manualControl: '#FFFF00', // 人工控制 - autoRoute: '#00FF00', // 自动进路 - autoTrigger: '#FFFF00', // 自动触发 - outConflict: '#C00808' // 出车冲突 - }, - delay: { - direction: false, // 延时解锁方向 - offset: { x: -5, y: 0}, // 延时解锁偏移量 - fontSize: 11, // 延迟解锁字体大小 - fontColor: '#C00808', // 延迟解锁颜色 - fontWeight: 'bold' // 字体粗细 - - }, - button: { - distance: 5, // 信号灯按钮距离区段的距离 - borderDashColor: '#FFFFFF', // 信号灯按钮边线 - buttonColor: 'darkgreen', // 信号灯按钮颜色 - buttonLightenColor: '#E4EF50' // 信号灯按钮闪烁颜色 - } - }; - - this[deviceType.StationStand] = { - common: { // 通用属性 - textFontSize: 10, // 站台默认字体大小 - haveJumpShow: true // 站台是否有列车停跳显示 - }, - safetyDoor: { // 屏蔽门 - height: 3, // 站台屏蔽门高度 - distance: 8, // 站台和屏蔽门之间的距离 - defaultColor: '#00FF00', // 屏蔽门默认颜色 - splitDoorColor: '#C00808' // 屏蔽门切除颜色 - }, - stand: { // 站台 - headFontSize: 10, // 站台首端字体大小 - spareColor: '#ffffff', // 站台空闲颜色 - stopColor: '#FFF000', // 站台列车停站颜色 - jumpStopColor: '#808080', // 站台跳停颜色 - designatedJumpStopColor: '#808080' // 站台指定列车跳停颜色 - }, - standEmergent: { // 紧急关闭 - mergentR: 4, // 站台紧急关闭半径 - offset: {x: 0, y: 40}, // 站台紧急关闭偏移量 - closeColor: '#F61107' // 站台紧急关闭颜色 - }, - reentry: { // 站台折返策略 - position: 0, // 折返方向 - offset: {x: -16, y: 20}, // 折返偏移量 - noHumanColor: '#0F16DA', // 站台无人折返 - autoChangeEndsColor: '#0BF400' // 站台自动换端 - }, - detainCar: { // 扣车 - text: '扣', // 扣车显示内容 - position: -1, // 扣车方向 - offset: {x: -8, y: -20}, // 扣车偏移量 - trainColor: '#FFFF00', // 车站扣车颜色 - centerTrainColor: '#C0C0C0', // 中心扣车颜色 - andCenterTrainColor: '#C0C0C0', // 车站+中心扣车颜色 - detainTrainTextColor: '#E4EF50' // 车站扣除文字颜色 - }, - stopTime: { // 停站时间 - position: 1, // 运行时间方向 - offset: {x: -8, y: -4}, // 运行时间偏移量 - textColor: '#C0C0C0' // 停站时间字体颜色 - }, - jump: { - text: '跳', // 停跳显示内容 - position: -1, // 停跳方向 - offset: {x: -8, y: 0}, - textColor: '#0000FF', // 停跳文字颜色 - arcColor: '#0000FF', // 停跳圆圈颜色 - fillColor: 'rgba(0,0,0,0)', // 透明填充颜色 - r: 8 // 圆半径大小 - }, - level: { // 运行等级 - position: 1, // 运行等级方向 - offset: {x: -8, y: 30}, // 运行等级偏移量 - textColor: '#FFF000' // 停站等级字体颜色 - } - }; - - this[deviceType.StationControl] = { - text: { - distance: 2, // 灯和文字之间的距离 - fontSize: 11, // 字体大小 - fontFormat: 'consolas', // 字体格式 - fontColor: '#ffffff', // 字体颜色 - fontWeight: 'normal', // 字体粗细 - textAlign: 'middle', // 字体水平对齐 - textVerticalAlign: 'top', // 字体垂直对齐 - }, - lamp: { - count: 4, // 控制模式的个数 - offset: {x: 0, y: 0}, // 偏移量 - radiusR: 6, // 控制模式灯的半径 - distance: 36, // 控制模式之间灯之间的距离 - grayColor: '#7F7F7F', // 控制模式灰色 - greenColor: '#00FF00', // 控制模式绿色 - redColor: '#FF0000', // 控制模式红色 - yellowColor: '#FFFF00', // 控制模式黄色 - emergencyControlShow: true, // 紧急站控显示 - centerControlShow: true, // 中控显示 - substationControlShow: true, // 站控按钮显示 - interconnectedControlShow: true // 联锁控显示 - }, - arrow: { - show: false // 控制模式箭头显隐 - } - }; - - this[deviceType.StationCounter] = { - text: { - distance: 2, // 计数器名称和文字的距离 - fontColor: '#FFFFFF', // 计数器字体颜色 - borderColor: '#E4EF50' // 计数器边框颜色 - } - }; - - this[deviceType.StationDelayUnlock] = { - text: { - distance: 3, // 延迟解锁和设备之间的距离 - fontColor: '#FFFFFF', // 延时解锁字体颜色 - borderColor: '#FFFFFF' // 延迟解锁边框颜色 - } - }; - - this[deviceType.Station] = { - // text: { - // show: true // 公里标名称显示 - // }, - kmPostShow: false, // 公里标显示 - kilometerPosition: 'up' // 公里标朝向 - }; - - this[deviceType.Switch] = { - text: { - show: true, // 道岔名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - offset: {x: 5, y: -10}, // 道岔名称与区段距离 - fontSize: 11, // 字体大小 - fontColor: '#fff', // 道岔名称颜色 - fontWeight: 'normal', // 字体粗细 - borderColor: '#FE0000', // 道岔边框颜色 - lossColor: '#C00808', // 道岔失去颜色 - locateColor: '#00FF00', // 道岔定位颜色 - inversionColor: '#FFFF00', // 道岔反位颜色 - monolockColor: '#FFFFFF' // 道岔单锁颜色 - }, - core: { - length: 6 // 道岔单边长度 - }, - monolock: { // 道岔单锁配置 - locationColor: '#00FF00', // 道岔单锁'定位'颜色 (绿色) - inversionColor: '#FFFF00', // 道岔单锁'反位'颜色 (黄色) - rectShow: true, // 道岔单锁 矩形框是否显示 - rectWidth: 18, // 矩形框 宽高 - rectBorderColor: '#fff' // 矩形边框颜色 - }, - block: { // 道岔封锁配置 - nameBorderShow: false, // 道岔名称是否有包围框 显示 - contentRectShow: true, // 道岔封锁显示 - contentRectColor: 'red' // 道岔封锁边框颜色 - } - }; - - this[deviceType.LcControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#FFFF00' // 控制灯颜色 - } - }; - - this[deviceType.ZcControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#00FF00' // 控制灯颜色 - } - }; - - this[deviceType.LimitControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#ECE9D8' // 控制灯颜色 - } - }; - - this[deviceType.ButtonControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#FFFF00' // 控制灯颜色 - } - }; - - this[deviceType.Line] = { - lineColor: '#FFFFFF' // 线条颜色 - }; - - this[deviceType.TrainWindow] = { - lineColor: '#4DD43F', // 车次窗颜色 - lineDash: null, // 车次窗虚线间隔 - lineWidth: 1, // 车次窗线宽 - trainWindowSmooth: 0 // 车次窗矩形圆滑程度 - }; - - this[deviceType.Train] = { - trainBody: { - trainBodyLineWidth: 1, // 车身line宽 - changeTrainWidth: false, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度 - specialTrainType: [ - { - type: '03', - serviceNumber: '---', - nameFormat: 'groupNumber:serviceNumber' - }, - { - type: '03', - nameFormat: 'serviceNumber:trainNumber' - } - ], // 特殊列车类型需设置显示格式 - lrPadding: 4, // 两边间隔 - upPadding: 4, // 上边距离 - trainBodyFillColor: '#000099', // 列车车身填充颜色 - trainNameFormat: 'serviceNumber:targetCode'// 列车显示格式 - }, - hsda: { - lrPaddingHSDA: 3, // HSDA两边间隔 - upPaddingHSDA: 4, // HSDA上边距离 - trainHSDATextFontSize: 9, // 列车HDSA字号 - textHContent: '扣', // textH文本 - textSContent: '跳', // textS文本 - textDContent: '门', // textD文本 - textAContent: '警' // textA文本 - }, - trainNumber: { - targetCodePrefix: '000', // 目的地码前缀 - defaultTargetCode: 'DDD', // 默认目的地码 - trainTargetTextAlign: 'left', // 目的地码文字显示位置 - trainNumberOffset: { x: 24, y: 4}// 目的地码偏移量 - }, - trainServer: { - serviceNumberPrefix: '000', // 服务号(表号)前缀 - defaultServiceNumber: 'TTT', // 默认服务号(表号) - defaultServerNoColor: '#FFFFFF', // 默认服务号状态显示颜色 - trainServerOffset: { x: 4, y: 4} // 列车服务号偏移 - }, - trainTarget: { - tripNumberPrefix: '000', // 车次号前缀 - defaultTripNumber: 'DDD', // 默认车次号2 - trainTargetOffset: { x: 36, y: 4}, // 列车车次号偏移 - trainTargetTextAlign: 'right' // 车次号文字显示位置 - }, - trainTargetNumber: { - trainTargetNumberOffset: {x: 0, y: 0}// 车组号偏移量 - }, - trainHead: { - trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框 - trainHeadTriangleFirst: { x: 7, y: 1}, // 列车车头三角坐标1偏移量 - trainHeadTriangleSecond: { x: 13, y: 10}, // 列车车头三角坐标2偏移量 - trainHeadTriangleThird: { x: 7, y: 19}, // 列车车头三角坐标3偏移量 - trainConntWidth: 3, // 列车竖杠的宽度 - trainHeadFillColor: '#000000', // 列车车头矩形填充颜色 - trainHeadRectHeight: 20 // 列车车头矩形高度 - }, - common: { - trainHeight: 20, // 列车高度 - trainHeadDistance: 4, // 列车和车头之间的间距 - trainWidth: 48, // 列车长度 - trainTextFontSize: 12, // 列车字号 - fontFamily: 'consolas', // 默认字体 族类 - haveTextHSDA: true, // 是否需创建textHSDA对象 - haveArrowText: true, // 是否需创建arrowText对象 - haveTrainBorder: false, // 是否需创建trainBorder对象 - textOffset: 4, // 字体偏移(用以控制字体据车头的距离) - trainWidthMoreText: 8, // 计算列车长度时--列车长比text多出尺寸 - useSelfFormat: true, // 使用配置项的nameFormat - useSelfText: true // 使用配置项的字体大小 - }, - trainStatusStyle: { - trainTypeStatus: [ - {type: '03', serviceNumberColor: '#FFF000', groupNumberColor: '#FFF000'}, - {type: '02', trainNumberColor: '#FFF000', groupNumberColor: '#FFF000'} - ], // 列车类型对应的识别号样式 - defaultDestinationColor: '#FFFFFF', // 默认目的地状态显示颜色 - destinationStatusSetText: 'trainWindowBorder', // 目的地状态设置的对应哪个颜色 - destinationStatus: [ - {status: '01', showColor: '#FFFFFF'}, - {status: '02', showColor: '#00FF00'}, - {status: '03', showColor: '#A0522D'} - ], // 目的地状态 01准点 02早点 03晚点 04头码车 - serverNoType: [ - {type: '01', showColor: '#FFFFFF'}, - {type: '02', showColor: '#FFF000'} - ], // 服务号状态类型 01显示服务号 计划车 02显示车组号: 头码车与人工车 - directionType: [ - { - type: '01', - lineLShow: true, - lineRShow: true, - arrowLShow: false, - arrowRShow: false - }, - { - type: '02', - lineLShow: false, - lineRShow: true, - arrowLShow: false, - arrowRShow: true - }, - { - type: '03', - lineLShow: true, - lineRShow: false, - arrowLShow: true, - arrowRShow: false - } - ], // 列车运行方向状态类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - directionStopType: [ - { - type: '01', - lineLShow: false, - lineRShow: false - }, - { - type: '02', - lineLShow: false, - lineRShow: true - }, - { - type: '03', - lineLShow: true, - lineRShow: false - } - ], // 列车停止方向类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - runModeStatus: [ - { - status: '01', - trainLColor: '#00FF00', - trainRColor: '#00FF00' - }, - { - status: '02', - trainLColor: '#FF8000', - trainRColor: '#FF8000' - }, - { - status: '03', - trainLColor: '#FFFF00', - trainRColor: '#FFFF00' - }, - { - status: '04', - trainLColor: '#C2C2C2', - trainRColor: '#C2C2C2' - }, - { - status: '05', - trainLColor: '#C2C2C2', - trainRColor: '#C2C2C2' - } - ], // 列车运行模式对应车头颜色 01未知 02 ATO自动驾驶模式AM 03 ATP监控下的人工驾驶模式CM 04 限制人工驾驶模式RM 05 非限制人工驾驶模式RM - runControlStatus: [ - { - status: '01', - hShow: false, - sShow: false - }, - { - status: '02', - hShow: true, - sShow: false - }, - { - status: '03', - hShow: false, - sShow: true - } - ], // 设置运行控制状态类型 01正常 02扣车 03停跳 - doorStatus: [ - {status: '01', dShow: false}, - {status: '02', dShow: true} - ], // 设置车门状态类型 01关门 02开门 - communicationStatus: [ - {status: '01', trainColor: '#725A64'}, - {status: '02', trainColor: '#C0C0C0'} - ], // 设置通信状态 01正常 02故障 - alarmStatus: [ - {status: '01', aShow: false}, - {status: '02', aShow: true} - ] // 设置报警状态 01不报警 02报警 - } - }; - } -} - -export default new SkinCode(); diff --git a/src/jmap/config/skinCode/chengdu_04.js b/src/jmap/config/skinCode/chengdu_04.js deleted file mode 100644 index d369c45cf..000000000 --- a/src/jmap/config/skinCode/chengdu_04.js +++ /dev/null @@ -1,564 +0,0 @@ -import defaultStyle from '../defaultStyle'; -import deviceType from '../../constant/deviceType'; - -class SkinCode extends defaultStyle { - constructor() { - super(); - this[deviceType.Link] = { - lineWidthColor: '#FFFFFF', // line 颜色 - linkWidth: 4, // link 宽度 - linkColor: '#4e8de6', // link 线条颜色 - linkTextColor: '#FFFFFF' // link 字体颜色 - }; - - this[deviceType.Section] = { - active: { - routeColor: false // 进路触发颜色 - }, - text: { - show: true, // 物理区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 10, // 文字离区段距离 - fontSize: 12, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: 'lightgreen', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - logicText: { // 逻辑区段名称 - show: false, // 逻辑区段名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 12, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - standText: { // 站台 - show: true, // 站台轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 24, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - reentryText: { // 折返 - show: true, // 折返轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 36, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - transferText: { // 转换轨 - show: true, // 转换轨名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 36, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - fontColor: '#FFFFFF', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - destinationText: { // 目的地 - show: true, // 目的码名称显示 - opposite: true, // 对称相反 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - distance: 12, // 文字离区段距离 - fontSize: 11, // 字体大小 - fontWeight: 'bold', // 字体粗细 - fontColor: 'yellow', // 字体颜色 - textAlign: 'center', // 水平对齐方式 - textPosition: 'inside', // 文字位置 - textVerticalAlign: 'middle' // 文字垂直对齐方式 - }, - line: { - width: 5, // 区段宽度 - beyondWidth: 0, // 区段宽超出宽度 - invadeColor: '#FFFFFF', // 区段侵入颜色 - spareColor: '#5578B6', // 区段空闲颜色 - communicationOccupiedColor: 'lightpink', // 区段通信车占用颜色 - unCommunicationOccupiedColor: 'red', // 区段非通讯车占用颜色 - routeLockColor: 'rgba(0, 255, 0, 1)', // 区段路由锁定颜色 - faultLockColor: 'white', // 区段故障锁定颜色 - undefinedColor: '#0071C1', // 区段未定义颜色 - protectionLockedColor: '#FFFFFF', // 保护区段锁闭 - blockColor: 'pink', // 区段封锁颜色 - atcExcisionColor: '#A0522D', // 区段atc切除颜色 - atsExcisionColor: '#A0522D', // 区段ats切除颜色 - timeReleaseColor: '#3F3F3F', // 区段延时释放颜色 - protectiveLockColor: '#92D14F', // 区段保护锁闭 - protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁 - logicalColor: '#FFFF00', // 逻辑区段颜色 (未用) - logicalTextColor: 'white' // 逻辑区段名称颜色 (未用) - }, - axle: { - radius: 3, // 计轴 半径 - distance: 5, // 计轴和区段之间的距离 (未用) - color: 'white', // 区段计轴颜色 - resetColor: '#00FFFF', // 区段计轴预复位颜色 - Failure: '#E6A23C' // #FFFF00 计轴失效 - }, - speedLimit: { // 限速元素 - width: 1, // 限速线的宽度 - distance: 5, // 限速线距离区段距离 - lineColor: '#C0C000', // 限速线颜色 (黄色透明光) - nameBackground: '#C0C000', // 限速名称背景颜色 - nameShow: true, // 名称显示 - nameNumberColor: '#C00808', // 限速值颜色 - nameNumberFontSize: 11, // 限速值大小 - kilometerColor: '#fff', // 公里标颜色 - kilometerFontSize: 8, // 公里标大小 - drogueWidth: 19, // 浮标宽度 - drogueHeight: 12 // 浮标高度 - }, - separator: { - z: 6, // 分割符层级 - width: 1.5, // 分隔符宽度 - endWidth: 1.5, // 尽头分隔符宽度 - endColor: '#FFFFFF', // 尽头分隔符颜色 - color: 'white' // 区段边界符颜色 - } - }; - - this[deviceType.Signal] = { - distance: 3, // 设备距离区段的距离 - post: { - standardColor: '#C0C0C0', // 灯柱颜色 - standardWidth: 2 // 灯柱宽度 - }, - text: { - show: true, // 信号机名称显示 - distance: 3, // 文字和灯杆的距离 - isNoRotation: true, // 是否禁止旋转 - isAlignCenter: false, // 信号字体对其方式 - fontSize: 11, // 信号机名称字体大小 - fontWeight: 'bold', // 信号机名称字体粗细 - defaultColor: 'white', // 信号灯字体默认色 - blockColor: '#EF0C08', // 信号灯字体锁定颜色 - checkColor: '#00FF00' // 信号保护区段检查颜色 - }, - lamp: { - guidName: 'defult', // 默认引导类型 - borderVariable: true, // 信号灯边框可变 - stopWidth: 2, // 禁止线宽度 - borderWidth: 2, // 信号灯边框线宽度 - borderColor: '#3149C3', // 信号灯边框线颜色 - radiusR: 3, // 信号灯半径 - blockColor: '#EF0C08', // 信号灯锁闭 - grayColor: '#C0C0C0', // 信号灯灰色 - redColor: 'red', // 信号灯红色 - greenColor: 'green', // 信号灯绿色 - yellowColor: 'yellow', // 信号灯黄色 - whiteColor: '#FFFFFF', // 信号灯白色 - blueColor: '#0070C0' // 信号灯蓝色 - }, - route: { - direction: true, // 自动通过方向 - offset: { x: 4, y: 0}, // 自动通过偏移量 - routeColor: '#00FF00' // 自动进路 - }, - auto: { - direction: false, // 自动通过方向 - offset: { x: -4, y: 0}, // 自动通过偏移量 - width: 5, // 自动宽度 - manualControl: '#FFFF00', // 人工控制 - autoRoute: '#00FF00', // 自动进路 - autoTrigger: '#FFFF00', // 自动触发 - outConflict: '#C00808' // 出车冲突 - }, - delay: { - direction: false, // 延时解锁方向 - offset: { x: -5, y: 0}, // 延时解锁偏移量 - fontSize: 11, // 延迟解锁字体大小 - fontColor: '#C00808', // 延迟解锁颜色 - fontWeight: 'bold' // 字体粗细 - - }, - button: { - distance: 5, // 信号灯按钮距离区段的距离 - borderDashColor: '#FFFFFF', // 信号灯按钮边线 - buttonColor: 'darkgreen', // 信号灯按钮颜色 - buttonLightenColor: 'yellow' // 信号灯按钮闪烁颜色 - } - }; - - this[deviceType.StationStand] = { - common: { // 通用属性 - textFontSize: 10, // 站台默认字体大小 - haveJumpShow: true // 站台是否有列车停跳显示 - }, - safetyDoor: { // 屏蔽门 - height: 3, // 站台屏蔽门高度 - distance: 4, // 站台和屏蔽门之间的距离 - defaultColor: 'green', // 屏蔽门默认颜色 - splitDoorColor: 'green' // 屏蔽门切除颜色 - }, - stand: { // 站台 - headFontSize: 10, // 站台首端字体大小 - spareColor: 'white', // 站台空闲颜色 - stopColor: 'yellow', // 站台列车停站颜色 - jumpStopColor: 'blue', // 站台跳停颜色 - designatedJumpStopColor: 'lightSkyBlue' // 站台指定列车跳停颜色 - }, - standEmergent: { // 紧急关闭 - mergentR: 4, // 站台紧急关闭半径 - offset: {x: 0, y: 40}, // 站台紧急关闭偏移量 - closeColor: 'red' // 站台紧急关闭颜色 - }, - reentry: { // 站台折返策略 - position: 0, // 折返方向 - offset: {x: -16, y: 20}, // 折返偏移量 - noHumanColor: '#0F16DA', // 站台无人折返 - autoChangeEndsColor: '#0BF400' // 站台自动换端 - }, - detainCar: { // 扣车 - text: '扣', // 扣车显示内容 - position: -1, // 扣车方向 - offset: {x: -8, y: -20}, // 扣车偏移量 - trainColor: 'yellow', // 车站扣车颜色 - centerTrainColor: 'white', // 中心扣车颜色 - andCenterTrainColor: 'red', // 车站+中心扣车颜色 - detainTrainTextColor: '#E4EF50' // 车站扣除文字颜色 - }, - stopTime: { // 停站时间 - position: 1, // 运行时间方向 - offset: {x: -8, y: -4}, // 运行时间偏移量 - textColor: 'white' // 停站时间字体颜色 - }, - jump: { - text: '跳', // 停跳显示内容 - position: -1, // 停跳方向 - offset: {x: -8, y: 0}, - textColor: '#0000FF', // 停跳文字颜色 - arcColor: '#0000FF', // 停跳圆圈颜色 - fillColor: 'rgba(0,0,0,0)', // 透明填充颜色 - r: 8 // 圆半径大小 - }, - level: { // 运行等级 - position: 1, // 运行等级方向 - offset: {x: -8, y: 30}, // 运行等级偏移量 - textColor: '#FFF000' // 停站等级字体颜色 - } - }; - - this[deviceType.StationControl] = { - text: { - distance: 2, // 灯和文字之间的距离 - fontSize: 12, // 字体大小 - fontFormat: 'consolas', // 字体格式 - fontColor: '#ffffff', // 字体颜色 - fontWeight: 'normal', // 字体粗细 - textAlign: 'middle', // 字体水平对齐 - textVerticalAlign: 'top' // 字体垂直对齐 - }, - lamp: { - count: 4, // 控制模式的个数 - offset: {x: 0, y: 0}, // 偏移量 - radiusR: 4, // 控制模式灯的半径 - distance: 36, // 控制模式之间灯之间的距离 - grayColor: '#C0C0C0', // 控制模式灰色 - greenColor: 'green', // 控制模式绿色 - redColor: 'red', // 控制模式红色 - yellowColor: 'yellow', // 控制模式黄色 - emergencyControlShow: true, // 紧急站控显示 - centerControlShow: true, // 中控显示 - substationControlShow: true, // 站控按钮显示 - interconnectedControlShow: false // 联锁控显示 - }, - arrow: { - show: false // 控制模式箭头显隐 - } - }; - - this[deviceType.StationCounter] = { - text: { - distance: 2, // 计数器名称和文字的距离 - fontColor: '#FFFFFF', // 计数器字体颜色 - borderColor: '#E4EF50' // 计数器边框颜色 - } - }; - - this[deviceType.StationDelayUnlock] = { - text: { - distance: 3, // 延迟解锁和设备之间的距离 - fontColor: '#FFFFFF', // 延时解锁字体颜色 - borderColor: '#FFFFFF' // 延迟解锁边框颜色 - } - }; - - this[deviceType.Station] = { - // text: { - // show: true // 公里标名称显示 - // }, - kmPostShow: false, // 公里标显示 - kilometerPosition: 'up' // 公里标朝向 - }; - - this[deviceType.Switch] = { - text: { - show: true, // 道岔名称显示 - position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 - offset: {x: 5, y: -10}, // 道岔名称与区段距离 - fontSize: 11, // 字体大小 - fontColor: '#C0C0C0', // 道岔名称颜色 - fontWeight: 'normal', // 字体粗细 - borderColor: '#FE0000', // 道岔边框颜色 - lossColor: 'lightgreen', // 道岔失去颜色 - locateColor: 'lightgreen', // 道岔定位颜色 - inversionColor: 'lightgreen', // 道岔反位颜色 - monolockColor: '#FFFFFF' // 道岔单锁颜色 - }, - core: { - length: 10 // 道岔单边长度 - }, - monolock: { // 道岔单锁配置 - locationColor: '#00FF00', // 道岔单锁'定位'颜色 (绿色) - inversionColor: '#FFFF00', // 道岔单锁'反位'颜色 (黄色) - rectShow: true, // 道岔单锁 矩形框是否显示 - rectWidth: 18, // 矩形框 宽高 - rectBorderColor: '#fff' // 矩形边框颜色 - }, - block: { // 道岔封锁配置 - nameBorderShow: false, // 道岔名称是否有包围框 显示 - contentRectShow: true, // 道岔封锁显示 - contentRectColor: 'red' // 道岔封锁边框颜色 - } - }; - - this[deviceType.LcControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#FFFF00' // 控制灯颜色 - } - }; - - this[deviceType.ZcControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#00FF00' // 控制灯颜色 - } - }; - - this[deviceType.LimitControl] = { - text: { - fontSize: 11, // 字体大小 - fontWeight: 'normal', // 字体粗细 - distance: 5 // 灯跟文字距离 - }, - lamp: { - radiusR: 6, // 控制灯大小 - controlColor: '#ECE9D8' // 控制灯颜色 - } - }; - - this[deviceType.Line] = { - lineColor: '#FFFFFF' // 线条颜色 - }; - - this[deviceType.TrainWindow] = { - lineColor: '#4DD43F', // 车次窗颜色 - lineDash: null, // 车次窗虚线间隔 - lineWidth: 1, // 车次窗线宽 - trainWindowSmooth: 0 // 车次窗矩形圆滑程度 - }; - - this[deviceType.Train] = { - trainBody: { - trainBodyLineWidth: 1, // 车身line宽 - changeTrainWidth: false, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度 - specialTrainType: [], // 特殊列车类型需设置显示格式 - lrPadding: 4, // 两边间隔 - upPadding: 4, // 上边距离 - trainBodyFillColor: '#000099', // 列车车身填充颜色 - trainNameFormat: 'serviceNumber:targetCode'// 列车显示格式 - }, - hsda: { - lrPaddingHSDA: 3, // HSDA两边间隔 - upPaddingHSDA: 4, // HSDA上边距离 - trainHSDATextFontSize: 8, // 列车HDSA字号 - textHContent: '扣', // textH文本 - textSContent: '跳', // textS文本 - textDContent: '门', // textD文本 - textAContent: '警' // textA文本 - }, - trainNumber: { - targetCodePrefix: '000', // 目的地码前缀 - defaultTargetCode: 'DDD', // 默认目的地码 - trainTargetTextAlign: 'left', // 目的地码文字显示位置 - trainNumberOffset: { x: 24, y: 4}// 目的地码偏移量 - }, - trainServer: { - serviceNumberPrefix: '000', // 服务号(表号)前缀 - defaultServiceNumber: 'TTT', // 默认服务号(表号) - defaultServerNoColor: '#FFFFFF', // 默认服务号状态显示颜色 - trainServerOffset: { x: 4, y: 4} // 列车服务号偏移 - }, - trainTarget: { - tripNumberPrefix: '000', // 车次号前缀 - defaultTripNumber: 'DDD', // 默认车次号2 - trainTargetOffset: { x: 36, y: 4}, // 列车车次号偏移 - trainTargetTextAlign: 'right' // 车次号文字显示位置 - }, - trainTargetNumber: { - trainTargetNumberOffset: {x: 0, y: 0}// 车组号偏移量 - }, - trainHead: { - trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框 - trainHeadTriangleFirst: { x: 7, y: 1}, // 列车车头三角坐标1偏移量 - trainHeadTriangleSecond: { x: 13, y: 10}, // 列车车头三角坐标2偏移量 - trainHeadTriangleThird: { x: 7, y: 19}, // 列车车头三角坐标3偏移量 - trainConntWidth: 4, // 列车竖杠的宽度 - trainHeadFillColor: '#000000', // 列车车头矩形填充颜色 - trainHeadRectHeight: 20 // 列车车头矩形高度 - }, - common: { - trainHeight: 20, // 列车高度 - trainHeadDistance: 2, // 列车和车头之间的间距 - trainWidth: 55, // 列车长度 - trainTextFontSize: 16, // 列车字号 - fontFamily: 'consolas', // 默认字体 族类 - haveTextHSDA: true, // 是否需创建textHSDA对象 - haveArrowText: true, // 是否需创建arrowText对象 - haveTrainBorder: false, // 是否需创建trainBorder对象 - aspectRatio: 7 / 5, // 字体宽高比例(用以拼接text是计算位置) - textOffset: 4, // 字体偏移(用以控制字体据车头的距离) - trainWidthMoreText: 8, // 计算列车长度时--列车长比text多出尺寸 - useSelfFormat: true, // 使用配置项的nameFormat - useSelfText: true // 使用配置项的字体大小 - }, - trainStatusStyle: { - defaultDestinationColor: '#FFFFFF', // 默认目的地状态显示颜色 - destinationStatusSetText: 'trainTarget', // 目的地状态设置的对应哪个text的颜色 - destinationStatus: [ - {status: '01', showColor: '#FFFFFF'}, - {status: '02', showColor: '#00FF00'}, - {status: '03', showColor: '#A0522D'}, - {status: '04', showColor: '#FFFF00'} - ], // 目的地状态 01准点 02早点 03晚点 04头码车 - serverNoType: [ - {type: '01', showColor: '#FFFFFF'}, - {type: '02', showColor: '#FFF000'} - ], // 服务号状态类型 01显示服务号 计划车 02显示车组号: 头码车与人工车 - directionType: [ - { - type: '01', - lineLShow: true, - lineRShow: true, - arrowLShow: false, - arrowRShow: false - }, - { - type: '02', - lineLShow: false, - lineRShow: true, - arrowLShow: false, - arrowRShow: true - }, - { - type: '03', - lineLShow: true, - lineRShow: false, - arrowLShow: true, - arrowRShow: false - } - ], // 列车运行方向状态类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - directionStopType: [ - { - type: '01', - lineLShow: false, - lineRShow: false - }, - { - type: '02', - lineLShow: false, - lineRShow: true - }, - { - type: '03', - lineLShow: true, - lineRShow: false - } - ], // 列车停止方向类型对应车头显示状态 01未知方向 02从左往右 上行 03从右往左 下行 - runModeStatus: [ - { - status: '01', - trainLColor: '#FFFFFF', - trainRColor: '#FFFFFF' - }, - { - status: '02', - trainLColor: '#00FF00', - trainRColor: '#00FF00' - }, - { - status: '03', - trainLColor: '#FFFF00', - trainRColor: '#FFFF00' - }, - { - status: '04', - trainLColor: '#A0522D', - trainRColor: '#A0522D' - }, - { - status: '05', - trainLColor: '#A0522D', - trainRColor: '#A0522D' - } - ], // 列车运行模式对应车头颜色 01未知 02 ATO自动驾驶模式AM 03 ATP监控下的人工驾驶模式CM 04 限制人工驾驶模式RM 05 非限制人工驾驶模式RM - runControlStatus: [ - { - status: '01', - hShow: false, - sShow: false - }, - { - status: '02', - hShow: true, - sShow: false - }, - { - status: '03', - hShow: false, - sShow: true - } - ], // 设置运行控制状态类型 01正常 02扣车 03停跳 - doorStatus: [ - {status: '01', dShow: false}, - {status: '02', dShow: true} - ], // 设置车门状态类型 01关门 02开门 - communicationStatus: [ - {status: '01', trainColor: '#725A64'}, - {status: '02', trainColor: '#C0C0C0'} - ], // 设置通信状态 01正常 02故障 - alarmStatus: [ - {status: '01', aShow: false}, - {status: '02', aShow: true} - ] // 设置报警状态 01不报警 02报警 - } - }; - } -} - -export default new SkinCode(); diff --git a/src/jmap/constant/deviceRender.js b/src/jmap/constant/deviceRender.js index b13a4fb94..1bac56f0e 100644 --- a/src/jmap/constant/deviceRender.js +++ b/src/jmap/constant/deviceRender.js @@ -6,125 +6,107 @@ const deviceRender = {}; deviceRender[deviceType.Link] = { _type: deviceType.Link, zlevel: 1 - // progressive: 1 }; /** Section渲染配置*/ deviceRender[deviceType.Section] = { _type: deviceType.Section, zlevel: 1 - // progressive: 2 }; /** Signal渲染配置*/ deviceRender[deviceType.Signal] = { _type: deviceType.Signal, zlevel: 1 - // progressive: 3 }; /** Switch渲染配置*/ deviceRender[deviceType.Switch] = { _type: deviceType.Switch, zlevel: 1 - // progressive: 5 }; /** Station渲染配置*/ deviceRender[deviceType.Station] = { _type: deviceType.Station, zlevel: 1 - // progressive: 4 }; /** StationStand渲染配置*/ deviceRender[deviceType.StationStand] = { _type: deviceType.StationStand, zlevel: 1 - // progressive: 5 }; /** StationControl渲染配置*/ deviceRender[deviceType.StationControl] = { _type: deviceType.StationControl, zlevel: 1 - // progressive: 4 }; /** ImageControl渲染配置*/ deviceRender[deviceType.ImageControl] = { _type: deviceType.ImageControl, zlevel: 1 - // progressive: 5 }; /** ZcControl渲染配置*/ deviceRender[deviceType.ZcControl] = { _type: deviceType.ZcControl, zlevel: 1 - // progressive: 6 }; /** LcControl渲染配置*/ deviceRender[deviceType.LcControl] = { _type: deviceType.LcControl, zlevel: 1 - // progressive: 6 }; /** LimitControl渲染配置*/ deviceRender[deviceType.LimitControl] = { _type: deviceType.LimitControl, zlevel: 1 - // progressive: 5 }; /** StationDelayUnlock渲染配置*/ deviceRender[deviceType.StationDelayUnlock] = { _type: deviceType.StationDelayUnlock, zlevel: 1 - // progressive: 6 }; /** Train渲染配置*/ deviceRender[deviceType.Train] = { _type: deviceType.Train, zlevel: 1 - // progressive: 9 }; /** TrainWindow渲染配置*/ deviceRender[deviceType.TrainWindow] = { _type: deviceType.TrainWindow, zlevel: 1 - // progressive: 8 }; /** Line渲染配置*/ deviceRender[deviceType.Line] = { _type: deviceType.Line, zlevel: 1 - // progressive: 7 }; /** Text渲染配置*/ deviceRender[deviceType.Text] = { _type: deviceType.Text, zlevel: 1 - // progressive: 7 }; /** TrainWindow渲染配置*/ deviceRender[deviceType.TrainWindow] = { _type: deviceType.TrainWindow, zlevel: 1 - // progressive: 4 }; /** Train渲染配置*/ deviceRender[deviceType.TRain] = { _type: deviceType.TRain, zlevel: 1 - // progressive: 4 }; /** CheckBox渲染配置*/ deviceRender[deviceType.CheckBox] = { diff --git a/src/jmap/theme/beijing_01/menus/dialog/alxeEffective.vue b/src/jmap/theme/beijing_01/menus/dialog/alxeEffective.vue deleted file mode 100644 index f8e3cd1a8..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/alxeEffective.vue +++ /dev/null @@ -1,442 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/cancelAllLimit.vue b/src/jmap/theme/beijing_01/menus/dialog/cancelAllLimit.vue deleted file mode 100644 index e6737e5d2..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/cancelAllLimit.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/childDialog/noticeInfo.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/childDialog/noticeInfo.vue deleted file mode 100644 index 0b3c0676a..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/childDialog/noticeInfo.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index 25e224a51..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index a4abfd9c4..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index 9f0177313..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTip.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTip.vue deleted file mode 100644 index 0edcbe768..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTip.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue deleted file mode 100644 index 7b6ea7caf..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/confirmTrain.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/childDialog/popupAlarm.vue b/src/jmap/theme/beijing_01/menus/dialog/childDialog/popupAlarm.vue deleted file mode 100644 index 617c619e0..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/childDialog/popupAlarm.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeCmdControl.vue b/src/jmap/theme/beijing_01/menus/dialog/routeCmdControl.vue deleted file mode 100644 index d53952a42..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeCmdControl.vue +++ /dev/null @@ -1,439 +0,0 @@ - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeControl.vue b/src/jmap/theme/beijing_01/menus/dialog/routeControl.vue deleted file mode 100644 index 08b7b789a..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeControl.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeDetail.vue b/src/jmap/theme/beijing_01/menus/dialog/routeDetail.vue deleted file mode 100644 index eff2325d1..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeDetail.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeHandControl.vue b/src/jmap/theme/beijing_01/menus/dialog/routeHandControl.vue deleted file mode 100644 index fbbaaae52..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeHandControl.vue +++ /dev/null @@ -1,342 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeLock.vue b/src/jmap/theme/beijing_01/menus/dialog/routeLock.vue deleted file mode 100644 index b3172930b..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeLock.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/routeSelection.vue b/src/jmap/theme/beijing_01/menus/dialog/routeSelection.vue deleted file mode 100644 index 5101fb230..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/routeSelection.vue +++ /dev/null @@ -1,253 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/sectionCmdControl.vue b/src/jmap/theme/beijing_01/menus/dialog/sectionCmdControl.vue deleted file mode 100644 index b2364f5b6..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/sectionCmdControl.vue +++ /dev/null @@ -1,435 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/sectionControl.vue b/src/jmap/theme/beijing_01/menus/dialog/sectionControl.vue deleted file mode 100644 index 2bed358f9..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/sectionControl.vue +++ /dev/null @@ -1,207 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/speedCmdControl.vue b/src/jmap/theme/beijing_01/menus/dialog/speedCmdControl.vue deleted file mode 100644 index 27b1bb77a..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/speedCmdControl.vue +++ /dev/null @@ -1,895 +0,0 @@ - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/speedLimitControl.vue b/src/jmap/theme/beijing_01/menus/dialog/speedLimitControl.vue deleted file mode 100644 index d21d7f8f7..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/speedLimitControl.vue +++ /dev/null @@ -1,554 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/standBackStrategy.vue b/src/jmap/theme/beijing_01/menus/dialog/standBackStrategy.vue deleted file mode 100644 index 2dbd2c8a4..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standBackStrategy.vue +++ /dev/null @@ -1,212 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/standControl.vue b/src/jmap/theme/beijing_01/menus/dialog/standControl.vue deleted file mode 100644 index ab3a3799b..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standControl.vue +++ /dev/null @@ -1,323 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/standDetail.vue b/src/jmap/theme/beijing_01/menus/dialog/standDetail.vue deleted file mode 100644 index 4ec92219e..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standDetail.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/standDetainTrainAll.vue b/src/jmap/theme/beijing_01/menus/dialog/standDetainTrainAll.vue deleted file mode 100644 index cec1b47fd..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standDetainTrainAll.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/standJumpStopControl.vue b/src/jmap/theme/beijing_01/menus/dialog/standJumpStopControl.vue deleted file mode 100644 index b76ddb523..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standJumpStopControl.vue +++ /dev/null @@ -1,359 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/standRunLevel.vue b/src/jmap/theme/beijing_01/menus/dialog/standRunLevel.vue deleted file mode 100644 index f647198f8..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standRunLevel.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/standStopTime.vue b/src/jmap/theme/beijing_01/menus/dialog/standStopTime.vue deleted file mode 100644 index df28e585e..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/standStopTime.vue +++ /dev/null @@ -1,238 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/stationCmdControl.vue b/src/jmap/theme/beijing_01/menus/dialog/stationCmdControl.vue deleted file mode 100644 index b77bd10f6..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/stationCmdControl.vue +++ /dev/null @@ -1,389 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/stationHumanControlAll.vue b/src/jmap/theme/beijing_01/menus/dialog/stationHumanControlAll.vue deleted file mode 100644 index 8f1bcae54..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/stationHumanControlAll.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue b/src/jmap/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue deleted file mode 100644 index cef06ac81..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/stationSetRouteControlAll.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/switchCmdControl.vue b/src/jmap/theme/beijing_01/menus/dialog/switchCmdControl.vue deleted file mode 100644 index 1ba0d403e..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/switchCmdControl.vue +++ /dev/null @@ -1,459 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/switchControl.vue b/src/jmap/theme/beijing_01/menus/dialog/switchControl.vue deleted file mode 100644 index b446fb596..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/switchControl.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainAddPlan.vue b/src/jmap/theme/beijing_01/menus/dialog/trainAddPlan.vue deleted file mode 100644 index c187eb6ac..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainAddPlan.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainCreate.vue b/src/jmap/theme/beijing_01/menus/dialog/trainCreate.vue deleted file mode 100644 index c201c17f7..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainCreate.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainDefine.vue b/src/jmap/theme/beijing_01/menus/dialog/trainDefine.vue deleted file mode 100644 index 782fe407d..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainDefine.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainDelete.vue b/src/jmap/theme/beijing_01/menus/dialog/trainDelete.vue deleted file mode 100644 index 155e29ee3..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainDelete.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainDeletePlan.vue b/src/jmap/theme/beijing_01/menus/dialog/trainDeletePlan.vue deleted file mode 100644 index 5d3c4e0d6..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainDeletePlan.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainEdit.vue b/src/jmap/theme/beijing_01/menus/dialog/trainEdit.vue deleted file mode 100644 index 11355a4da..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainEdit.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainFlag.vue b/src/jmap/theme/beijing_01/menus/dialog/trainFlag.vue deleted file mode 100644 index 53c33a4df..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainFlag.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainMove.vue b/src/jmap/theme/beijing_01/menus/dialog/trainMove.vue deleted file mode 100644 index 76e0044a5..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainMove.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainMoveEvently.vue b/src/jmap/theme/beijing_01/menus/dialog/trainMoveEvently.vue deleted file mode 100644 index 2549bf35a..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainMoveEvently.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainSetHead.vue b/src/jmap/theme/beijing_01/menus/dialog/trainSetHead.vue deleted file mode 100644 index 7557accbb..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainSetHead.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainSetPlan.vue b/src/jmap/theme/beijing_01/menus/dialog/trainSetPlan.vue deleted file mode 100644 index 3a495d805..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainSetPlan.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/dialog/trainSetWork.vue b/src/jmap/theme/beijing_01/menus/dialog/trainSetWork.vue deleted file mode 100644 index 1b1779caa..000000000 --- a/src/jmap/theme/beijing_01/menus/dialog/trainSetWork.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/index.vue b/src/jmap/theme/beijing_01/menus/index.vue deleted file mode 100644 index 60e92cc34..000000000 --- a/src/jmap/theme/beijing_01/menus/index.vue +++ /dev/null @@ -1,369 +0,0 @@ - - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuBar.vue b/src/jmap/theme/beijing_01/menus/menuBar.vue deleted file mode 100644 index 221e19047..000000000 --- a/src/jmap/theme/beijing_01/menus/menuBar.vue +++ /dev/null @@ -1,1227 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuButton.vue b/src/jmap/theme/beijing_01/menus/menuButton.vue deleted file mode 100644 index 9c58482f7..000000000 --- a/src/jmap/theme/beijing_01/menus/menuButton.vue +++ /dev/null @@ -1,389 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuCancel.vue b/src/jmap/theme/beijing_01/menus/menuCancel.vue deleted file mode 100644 index 36896b645..000000000 --- a/src/jmap/theme/beijing_01/menus/menuCancel.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/twoConfirmation.vue b/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/twoConfirmation.vue deleted file mode 100644 index 53e1eceb7..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/twoConfirmation.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userAdd.vue b/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userAdd.vue deleted file mode 100644 index 0c7555a39..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue b/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue deleted file mode 100644 index ec304506c..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userDelete.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue b/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue deleted file mode 100644 index ec87e0f81..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/childDialog/userEdit.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue b/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue deleted file mode 100644 index 15ac09aa4..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorl.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorlUpDown.vue b/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorlUpDown.vue deleted file mode 100644 index cd38b1882..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/detainTrainContorlUpDown.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/helpAbout.vue b/src/jmap/theme/beijing_01/menus/menuDialog/helpAbout.vue deleted file mode 100644 index 3881848e4..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/helpAbout.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/manageUser.vue b/src/jmap/theme/beijing_01/menus/menuDialog/manageUser.vue deleted file mode 100644 index 2ec6fadfa..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/manageUser.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/stationControl.vue b/src/jmap/theme/beijing_01/menus/menuDialog/stationControl.vue deleted file mode 100644 index 37fb64b72..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/stationControl.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/trainAdd.vue b/src/jmap/theme/beijing_01/menus/menuDialog/trainAdd.vue deleted file mode 100644 index 6bf8c82a0..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/trainAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/trainDelete.vue b/src/jmap/theme/beijing_01/menus/menuDialog/trainDelete.vue deleted file mode 100644 index bbdd4bb4f..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/trainDelete.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/trainTranstalet.vue b/src/jmap/theme/beijing_01/menus/menuDialog/trainTranstalet.vue deleted file mode 100644 index 8b62effb9..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/trainTranstalet.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/viewDevice.vue b/src/jmap/theme/beijing_01/menus/menuDialog/viewDevice.vue deleted file mode 100644 index 75084ae0f..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/viewDevice.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/viewName.vue b/src/jmap/theme/beijing_01/menus/menuDialog/viewName.vue deleted file mode 100644 index 1b86114c8..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/viewName.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuDialog/viewTrainId.vue b/src/jmap/theme/beijing_01/menus/menuDialog/viewTrainId.vue deleted file mode 100644 index 7449859bc..000000000 --- a/src/jmap/theme/beijing_01/menus/menuDialog/viewTrainId.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuLimit.vue b/src/jmap/theme/beijing_01/menus/menuLimit.vue deleted file mode 100644 index 938e1b368..000000000 --- a/src/jmap/theme/beijing_01/menus/menuLimit.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuSection.vue b/src/jmap/theme/beijing_01/menus/menuSection.vue deleted file mode 100644 index df3785d46..000000000 --- a/src/jmap/theme/beijing_01/menus/menuSection.vue +++ /dev/null @@ -1,413 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuSignal.vue b/src/jmap/theme/beijing_01/menus/menuSignal.vue deleted file mode 100644 index 13f74d900..000000000 --- a/src/jmap/theme/beijing_01/menus/menuSignal.vue +++ /dev/null @@ -1,500 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuStation.vue b/src/jmap/theme/beijing_01/menus/menuStation.vue deleted file mode 100644 index 9f2bfecb9..000000000 --- a/src/jmap/theme/beijing_01/menus/menuStation.vue +++ /dev/null @@ -1,307 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuStationControl.vue b/src/jmap/theme/beijing_01/menus/menuStationControl.vue deleted file mode 100644 index 6e394cecd..000000000 --- a/src/jmap/theme/beijing_01/menus/menuStationControl.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuStationStand.vue b/src/jmap/theme/beijing_01/menus/menuStationStand.vue deleted file mode 100644 index 341c4ba16..000000000 --- a/src/jmap/theme/beijing_01/menus/menuStationStand.vue +++ /dev/null @@ -1,508 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuSwitch.vue b/src/jmap/theme/beijing_01/menus/menuSwitch.vue deleted file mode 100644 index 2a7275c2b..000000000 --- a/src/jmap/theme/beijing_01/menus/menuSwitch.vue +++ /dev/null @@ -1,448 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/menuTool.vue b/src/jmap/theme/beijing_01/menus/menuTool.vue deleted file mode 100644 index d278e2adf..000000000 --- a/src/jmap/theme/beijing_01/menus/menuTool.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menus/menuTrain.vue b/src/jmap/theme/beijing_01/menus/menuTrain.vue deleted file mode 100644 index a37eb1d68..000000000 --- a/src/jmap/theme/beijing_01/menus/menuTrain.vue +++ /dev/null @@ -1,601 +0,0 @@ - - - diff --git a/src/jmap/theme/beijing_01/menus/passiveDialog/alarm.vue b/src/jmap/theme/beijing_01/menus/passiveDialog/alarm.vue deleted file mode 100644 index 02ffc2026..000000000 --- a/src/jmap/theme/beijing_01/menus/passiveDialog/alarm.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/passiveDialog/control.vue b/src/jmap/theme/beijing_01/menus/passiveDialog/control.vue deleted file mode 100644 index f8e1f1b62..000000000 --- a/src/jmap/theme/beijing_01/menus/passiveDialog/control.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/passiveDialog/timeout.vue b/src/jmap/theme/beijing_01/menus/passiveDialog/timeout.vue deleted file mode 100644 index e8ec3b556..000000000 --- a/src/jmap/theme/beijing_01/menus/passiveDialog/timeout.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/menus/utils/menuItemStatus.js b/src/jmap/theme/beijing_01/menus/utils/menuItemStatus.js deleted file mode 100644 index 9778d96b3..000000000 --- a/src/jmap/theme/beijing_01/menus/utils/menuItemStatus.js +++ /dev/null @@ -1,570 +0,0 @@ -import Vue from 'vue'; -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 SystemType = { - '01': 'local', // 现地工作站 - '02': 'central' // 中心调度工作站 -}; - -export const StationControlType = { - '01': 'center', // 中控 - '02': '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() { - }, - // 区段取消限速 - cancelSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit == deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 新建列车 - newTrain() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 设置计轴有效 - alxeEffective() { - }, - // 设置计轴失效 - alxeFailure() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Section.status.State13) { - 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 (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) { - return true; - } - }, - // 取消扣车 - cancelDetainTrain() { - const device = getCurrentStateObject(); - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) { - 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(); - }, - // 设置计轴有效 - alxeEffective() { - }, - // 道岔取消速度 - 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; - } - }, - // 添加计划车 - addPlanTrain() { - }, - // 设置计划车 - setPlanTrain() { - }, - // 设置头码车 - setHeadTrain() { - }, - // 设置人工车 - setWorkTrain() { - }, - // 标记重点车 - trainToFlag() { - }, - // 取消标记重点车 - trainUnFlag() { - } - } -}; - -/** - * 将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) { - 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 = SystemType[store.state.training.prdType]; - const status = StationControlType[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 = SystemType[store.state.training.prdType]; - 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; - } - } - }); - } - } - return menu; -} - -/** - * 离开菜单以及执行完菜单取消选中状态 - */ -export function mouseCancelState(selected) { - const device = Vue.prototype.$jlmap.getDeviceByCode(selected.code); - const instance = (device || {}).instance; - if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) { - device['down'] = false; - instance.mouseEvent.mouseout(Vue.prototype.$jlmap.$zr.curEvent); - } -} diff --git a/src/jmap/theme/beijing_01/menusPlan/addTask.vue b/src/jmap/theme/beijing_01/menusPlan/addTask.vue deleted file mode 100644 index 009c19f02..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/addTask.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/beijing_01/menusPlan/chooseTemplatePlan.vue deleted file mode 100644 index 947163306..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/chooseTemplatePlan.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue b/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue deleted file mode 100644 index fa98a48e7..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/components/dataTable.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/createTodayPlan.vue b/src/jmap/theme/beijing_01/menusPlan/createTodayPlan.vue deleted file mode 100644 index 0c483abb4..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/createTodayPlan.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/createWeekPlan.vue b/src/jmap/theme/beijing_01/menusPlan/createWeekPlan.vue deleted file mode 100644 index 2eabc8044..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/createWeekPlan.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/deleteTask.vue b/src/jmap/theme/beijing_01/menusPlan/deleteTask.vue deleted file mode 100644 index cd79c305f..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/deleteTask.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/deleteTodayPlan.vue b/src/jmap/theme/beijing_01/menusPlan/deleteTodayPlan.vue deleted file mode 100644 index 2e22a7c64..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/deleteTodayPlan.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/managePlanList.vue b/src/jmap/theme/beijing_01/menusPlan/managePlanList.vue deleted file mode 100644 index 7fcd45639..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/managePlanList.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue b/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue deleted file mode 100644 index 1d2b31102..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/modifyingPlan.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/menusPlan/modifyingTask.vue b/src/jmap/theme/beijing_01/menusPlan/modifyingTask.vue deleted file mode 100644 index 8cc14cd09..000000000 --- a/src/jmap/theme/beijing_01/menusPlan/modifyingTask.vue +++ /dev/null @@ -1,327 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/model.js b/src/jmap/theme/beijing_01/model.js deleted file mode 100644 index 3dd21ca8f..000000000 --- a/src/jmap/theme/beijing_01/model.js +++ /dev/null @@ -1,68 +0,0 @@ -import deviceType from '../../constant/deviceType'; - -class Model { - constructor() { - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; - - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: 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] = { - 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/jmap/theme/beijing_01/planConvert.js b/src/jmap/theme/beijing_01/planConvert.js deleted file mode 100644 index 6806a9052..000000000 --- a/src/jmap/theme/beijing_01/planConvert.js +++ /dev/null @@ -1,314 +0,0 @@ -import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan'; - -export default { - /** 边缘高度*/ - EdgeHeight: 600, - - /** 间隔高度*/ - CoordMultiple: 1, - - /** 偏移时间*/ - TranslationTime: 60 * 60 * 2, - - /** excel解析配置*/ - ExcelConfig: { - beginRow: 1, - beginCol: 0, - fieldNum: 10, - 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) { - var dataList = convertSheetToList(Sheet, true); - var needList = Object.keys(this.ExcelConfig.columns); - - if (dataList && dataList.length) { - for (var colIndex = this.ExcelConfig.beginCol; colIndex < dataList.length; colIndex += this.ExcelConfig.fieldNum + 1) { - var isContinue = true; - var tripObj = { code: '', arrivalList: [] }; - - for (var rowIndex = this.ExcelConfig.beginRow; isContinue; rowIndex += 1) { - isContinue = false; - - var stationObj = {}; - for (var index = 0; index < this.ExcelConfig.fieldNum; index += 1) { - if (dataList[colIndex + index]) { - var title = dataList[colIndex + index][0]; - var value = dataList[colIndex + index][rowIndex]; - - if (title && value) { - // 数据列解析 - isContinue = true; - var titleStr = `${title}`.trim(); - var valueStr = `${value}`.trim(); - - if (titleStr == this.ExcelConfig.sepField) { - if (tripObj.code) { - const length = tripObj.arrivalList.length; - if (length == 1) { - tripObj.arrivalList[0]['flag'] = true; - } - JsonData.push(tripObj); - tripObj = { code: valueStr, arrivalList: [] }; - } else { - tripObj.code = valueStr; - } - } - - // 取需要的字段 - if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { - stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr); - } - } - } - } - - // 添加字段值 - if (Object.keys(stationObj).length) { - 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.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 = ''; - - stations.forEach(elem => { - if (elem.kmRange < parseInt(params.value) / this.CoordMultiple - this.EdgeHeight) { - yText = 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; - } -}; diff --git a/src/jmap/theme/beijing_01/planSchedule/index.vue b/src/jmap/theme/beijing_01/planSchedule/index.vue deleted file mode 100644 index 6fa39ed23..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/index.vue +++ /dev/null @@ -1,403 +0,0 @@ - - - - - diff --git a/src/jmap/theme/beijing_01/planSchedule/menuBar.vue b/src/jmap/theme/beijing_01/planSchedule/menuBar.vue deleted file mode 100644 index e64ae3063..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/menuBar.vue +++ /dev/null @@ -1,514 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/planSchedule/menuTool.vue b/src/jmap/theme/beijing_01/planSchedule/menuTool.vue deleted file mode 100644 index d3ecde016..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/menuTool.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/beijing_01/planSchedule/schedule.vue b/src/jmap/theme/beijing_01/planSchedule/schedule.vue deleted file mode 100644 index 6434528f8..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/schedule.vue +++ /dev/null @@ -1,471 +0,0 @@ - - - - diff --git a/src/jmap/theme/beijing_01/planSchedule/statusBar.vue b/src/jmap/theme/beijing_01/planSchedule/statusBar.vue deleted file mode 100644 index 28b29b1e5..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/statusBar.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - diff --git a/src/jmap/theme/beijing_01/planSchedule/titleBar.vue b/src/jmap/theme/beijing_01/planSchedule/titleBar.vue deleted file mode 100644 index 689c3486a..000000000 --- a/src/jmap/theme/beijing_01/planSchedule/titleBar.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/childDialog/noticeInfo.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/childDialog/noticeInfo.vue deleted file mode 100644 index 85c64832c..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/childDialog/noticeInfo.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index bbb3a2587..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index 31d4587e0..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index c6f069ffe..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue deleted file mode 100644 index 6917c9a94..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTip.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTrain.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTrain.vue deleted file mode 100644 index ccfcf9036..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/confirmTrain.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/password.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/password.vue deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue deleted file mode 100644 index b706da32d..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/passwordInputBox.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/popupAlarm.vue b/src/jmap/theme/chengdu_03/menus/dialog/childDialog/popupAlarm.vue deleted file mode 100644 index e3375f76f..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/childDialog/popupAlarm.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue deleted file mode 100644 index 6af5a13b5..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeControl.vue +++ /dev/null @@ -1,312 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeDetail.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeDetail.vue deleted file mode 100644 index 1450d834a..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeDetail.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue deleted file mode 100644 index 847ab9fd2..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeGuide.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue deleted file mode 100644 index 1d0b730c5..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeHandControl.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/routeSelection.vue b/src/jmap/theme/chengdu_03/menus/dialog/routeSelection.vue deleted file mode 100644 index 549952d84..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/routeSelection.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/sectionControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/sectionControl.vue deleted file mode 100644 index ddf690e1e..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/sectionControl.vue +++ /dev/null @@ -1,245 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/sectionDetail.vue b/src/jmap/theme/chengdu_03/menus/dialog/sectionDetail.vue deleted file mode 100644 index 21c0c7e13..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/sectionDetail.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/standControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/standControl.vue deleted file mode 100644 index 2c4e47ce4..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/standControl.vue +++ /dev/null @@ -1,726 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/standDetail.vue b/src/jmap/theme/chengdu_03/menus/dialog/standDetail.vue deleted file mode 100644 index f5656c12b..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/standDetail.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/stationCmdControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/stationCmdControl.vue deleted file mode 100644 index 4680847c6..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/stationCmdControl.vue +++ /dev/null @@ -1,389 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/switchCmdControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/switchCmdControl.vue deleted file mode 100644 index ae66d1d28..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/switchCmdControl.vue +++ /dev/null @@ -1,459 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/switchControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/switchControl.vue deleted file mode 100644 index 911e471b5..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/switchControl.vue +++ /dev/null @@ -1,376 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainControl.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainControl.vue deleted file mode 100644 index e4e95d303..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainControl.vue +++ /dev/null @@ -1,334 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainCreate.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainCreate.vue deleted file mode 100644 index 7f603d961..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainCreate.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainCreateNumber.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainCreateNumber.vue deleted file mode 100644 index ccf9241d2..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainCreateNumber.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainDelete.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainDelete.vue deleted file mode 100644 index 109e1c918..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainDelete.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainDeleteNumber.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainDeleteNumber.vue deleted file mode 100644 index bf186229d..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainDeleteNumber.vue +++ /dev/null @@ -1,180 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainDetailInfo.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainDetailInfo.vue deleted file mode 100644 index 43efab3d2..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainDetailInfo.vue +++ /dev/null @@ -1,375 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainEditNumber.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainEditNumber.vue deleted file mode 100644 index 57b2d5a64..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainEditNumber.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainMove.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainMove.vue deleted file mode 100644 index 83f886708..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainMove.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainMoveNumber.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainMoveNumber.vue deleted file mode 100644 index 913491341..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainMoveNumber.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/dialog/trainSwitch.vue b/src/jmap/theme/chengdu_03/menus/dialog/trainSwitch.vue deleted file mode 100644 index 9299e92d3..000000000 --- a/src/jmap/theme/chengdu_03/menus/dialog/trainSwitch.vue +++ /dev/null @@ -1,195 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/index.vue b/src/jmap/theme/chengdu_03/menus/index.vue deleted file mode 100644 index 6c8937b5d..000000000 --- a/src/jmap/theme/chengdu_03/menus/index.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuBar.vue b/src/jmap/theme/chengdu_03/menus/menuBar.vue deleted file mode 100644 index 1b7125fe5..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuBar.vue +++ /dev/null @@ -1,1057 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuButton.vue b/src/jmap/theme/chengdu_03/menus/menuButton.vue deleted file mode 100644 index d361e118e..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuButton.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuCancel.vue b/src/jmap/theme/chengdu_03/menus/menuCancel.vue deleted file mode 100644 index 5b20d2fd3..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuCancel.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/twoConfirmation.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/twoConfirmation.vue deleted file mode 100644 index 747b7cbfc..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/twoConfirmation.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userAdd.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userAdd.vue deleted file mode 100644 index 2bea83e3e..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userDelete.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userDelete.vue deleted file mode 100644 index 9316bb37b..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userDelete.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userEdit.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userEdit.vue deleted file mode 100644 index 95e4e8fa8..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/childDialog/userEdit.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/helpAbout.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/helpAbout.vue deleted file mode 100644 index 698bd5429..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/helpAbout.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/limitSpeed.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/limitSpeed.vue deleted file mode 100644 index 0ac49d4d4..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/limitSpeed.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/manageUser.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/manageUser.vue deleted file mode 100644 index f7a2e1589..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/manageUser.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/passwordBox.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/passwordBox.vue deleted file mode 100644 index 9feaf8232..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/passwordBox.vue +++ /dev/null @@ -1,221 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/setLimitSpeed.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/setLimitSpeed.vue deleted file mode 100644 index 6f19587a8..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/setLimitSpeed.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/stationControlConvert.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/stationControlConvert.vue deleted file mode 100644 index 4bd00cc1b..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/stationControlConvert.vue +++ /dev/null @@ -1,414 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/trainAdd.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/trainAdd.vue deleted file mode 100644 index 7ddcff22c..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/trainAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/trainDelete.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/trainDelete.vue deleted file mode 100644 index 398ccb370..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/trainDelete.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/trainTranstalet.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/trainTranstalet.vue deleted file mode 100644 index c82352003..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/trainTranstalet.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/viewDevice.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/viewDevice.vue deleted file mode 100644 index dd4fc2e38..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/viewDevice.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/viewName.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/viewName.vue deleted file mode 100644 index 9061c3e87..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/viewName.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuDialog/viewTrainId.vue b/src/jmap/theme/chengdu_03/menus/menuDialog/viewTrainId.vue deleted file mode 100644 index b21f46e0f..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuDialog/viewTrainId.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuSection.vue b/src/jmap/theme/chengdu_03/menus/menuSection.vue deleted file mode 100644 index 9e14a2b4d..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuSection.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuSignal.vue b/src/jmap/theme/chengdu_03/menus/menuSignal.vue deleted file mode 100644 index 6be66a90a..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuSignal.vue +++ /dev/null @@ -1,491 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuStation.vue b/src/jmap/theme/chengdu_03/menus/menuStation.vue deleted file mode 100644 index f865e6cc3..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuStation.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuStationControl.vue b/src/jmap/theme/chengdu_03/menus/menuStationControl.vue deleted file mode 100644 index 6e394cecd..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuStationControl.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuStationStand.vue b/src/jmap/theme/chengdu_03/menus/menuStationStand.vue deleted file mode 100644 index 1ca52fccf..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuStationStand.vue +++ /dev/null @@ -1,345 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuSwitch.vue b/src/jmap/theme/chengdu_03/menus/menuSwitch.vue deleted file mode 100644 index e12a1e0ce..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuSwitch.vue +++ /dev/null @@ -1,453 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuTool.vue b/src/jmap/theme/chengdu_03/menus/menuTool.vue deleted file mode 100644 index 8c96fd532..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuTool.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menus/menuTrain.vue b/src/jmap/theme/chengdu_03/menus/menuTrain.vue deleted file mode 100644 index 0e9da652a..000000000 --- a/src/jmap/theme/chengdu_03/menus/menuTrain.vue +++ /dev/null @@ -1,404 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_03/menus/passiveDialog/alarm.vue b/src/jmap/theme/chengdu_03/menus/passiveDialog/alarm.vue deleted file mode 100644 index 268e5011f..000000000 --- a/src/jmap/theme/chengdu_03/menus/passiveDialog/alarm.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/passiveDialog/control.vue b/src/jmap/theme/chengdu_03/menus/passiveDialog/control.vue deleted file mode 100644 index 1e0175452..000000000 --- a/src/jmap/theme/chengdu_03/menus/passiveDialog/control.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/passiveDialog/timeout.vue b/src/jmap/theme/chengdu_03/menus/passiveDialog/timeout.vue deleted file mode 100644 index 91cb2849d..000000000 --- a/src/jmap/theme/chengdu_03/menus/passiveDialog/timeout.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/menus/utils/menuItemStatus.js b/src/jmap/theme/chengdu_03/menus/utils/menuItemStatus.js deleted file mode 100644 index 3b5e29d01..000000000 --- a/src/jmap/theme/chengdu_03/menus/utils/menuItemStatus.js +++ /dev/null @@ -1,601 +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 SystemType = { - '01': 'local', // 现地工作站 - '02': 'central' // 中心调度工作站 -}; - -export const StationControlType = { - '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() { - }, - // 区段取消限速 - cancelSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit == deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 新建列车 - newTrain() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 设置计轴有效 - alxeEffective() { - }, - // 设置计轴失效 - alxeFailure() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Section.status.State13) { - return true; - } - }, - // 设置故障 - 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; - } - }, - // 总人解 - humanTrainRoute() { - }, - // 人工控 - 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 (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) { - return true; - } - }, - // 取消扣车 - cancelDetainTrain() { - const device = getCurrentStateObject(); - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) { - 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(); - }, - // 设置计轴有效 - alxeEffective() { - }, - // 道岔取消速度 - cancelSpeed() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - }, - // 单操到定位 - locate() { - }, - // 单操到反位 - reverse() { - }, - // 属性 - property() { - } - }, - Train: { - // 添加列车识别号 - addTrainId() { - }, - // 删除列车识别号 - delTrainId() { - }, - // 修改列车识别号 - editTrainId() { - }, - // 修改车组号 - editTrainNo() { - }, - // 创建车组号 - createTrainNo() { - }, - // 移动车组号 - moveTrainNo() { - }, - // 删除车组号 - deleteTrainNo() { - }, - // 移动列车识别号 - moveTrainId() { - }, - // 交换列车识别号 - switchTrainId() { - }, - // 设计划车 - setPlanTrainId() { - }, - // 设目的地车 - destinationTrainId() { - }, - // 设人工车 - artificialTrainId() { - }, - // 详细列车信息 - detailTrainInfo() { - }, - // 设置限速 - limitSpeed() { - }, - // 设置通信故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消通信故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - 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 = SystemType[store.state.training.prdType]; - const status = StationControlType[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 != '') { - var type = SystemType[store.state.training.prdType]; - 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; - } - } - }); - } - } - return menu; -} - -/** - * 离开菜单以及执行完菜单取消选中状态 - */ -export function mouseCancelState(device) { - // Object.assign(device, { _selected: false }); - // var viewInstance = store.state.map.jlmap.getViewInstanceByDevice({ _type: device._type, _code: device.code }); - // if (viewInstance && viewInstance['mouseleave']) { - // viewInstance['selected'] = false; - // viewInstance['mouseleave'](store.state.map.jlmap._zr.curEvent); - // } -} - diff --git a/src/jmap/theme/chengdu_03/menusPlan/addTask.vue b/src/jmap/theme/chengdu_03/menusPlan/addTask.vue deleted file mode 100644 index 009c19f02..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/addTask.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/chengdu_03/menusPlan/chooseTemplatePlan.vue deleted file mode 100644 index fa220d049..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/chooseTemplatePlan.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue b/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue deleted file mode 100644 index 7b8f1756b..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/components/dataTable.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/createTodayPlan.vue b/src/jmap/theme/chengdu_03/menusPlan/createTodayPlan.vue deleted file mode 100644 index 80860a01e..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/createTodayPlan.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/createWeekPlan.vue b/src/jmap/theme/chengdu_03/menusPlan/createWeekPlan.vue deleted file mode 100644 index 2eabc8044..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/createWeekPlan.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/deleteTask.vue b/src/jmap/theme/chengdu_03/menusPlan/deleteTask.vue deleted file mode 100644 index cd79c305f..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/deleteTask.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/deleteTodayPlan.vue b/src/jmap/theme/chengdu_03/menusPlan/deleteTodayPlan.vue deleted file mode 100644 index 2e22a7c64..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/deleteTodayPlan.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/managePlanList.vue b/src/jmap/theme/chengdu_03/menusPlan/managePlanList.vue deleted file mode 100644 index 7fcd45639..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/managePlanList.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/modifyingPlan.vue b/src/jmap/theme/chengdu_03/menusPlan/modifyingPlan.vue deleted file mode 100644 index 1d2b31102..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/modifyingPlan.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/menusPlan/modifyingTask.vue b/src/jmap/theme/chengdu_03/menusPlan/modifyingTask.vue deleted file mode 100644 index 4679c003e..000000000 --- a/src/jmap/theme/chengdu_03/menusPlan/modifyingTask.vue +++ /dev/null @@ -1,326 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/model.js b/src/jmap/theme/chengdu_03/model.js deleted file mode 100644 index 3dd21ca8f..000000000 --- a/src/jmap/theme/chengdu_03/model.js +++ /dev/null @@ -1,68 +0,0 @@ -import deviceType from '../../constant/deviceType'; - -class Model { - constructor() { - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; - - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: 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] = { - 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/jmap/theme/chengdu_03/planConvert.js b/src/jmap/theme/chengdu_03/planConvert.js deleted file mode 100644 index b2ad80657..000000000 --- a/src/jmap/theme/chengdu_03/planConvert.js +++ /dev/null @@ -1,292 +0,0 @@ -import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan'; - -export default { - /** 边缘高度*/ - EdgeHeight: 600, - - /** 间隔高度*/ - CoordMultiple: 1, - - /** 偏移时间*/ - TranslationTime: 60 * 60 * 2, - - /** excel解析配置*/ - ExcelConfig: { - beginRow: 1, - beginCol: 0, - fieldNum: 8, - 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) { - var dataList = convertSheetToList(Sheet, false); - var needList = Object.keys(this.ExcelConfig.columns); - if (dataList && dataList.length) { - for (var rowIndex = this.ExcelConfig.beginRow; rowIndex < dataList.length; rowIndex += 1) { - for (var colIndex = this.ExcelConfig.beginCol; colIndex < dataList[this.ExcelConfig.beginCol].length; colIndex += this.ExcelConfig.fieldNum + 1) { - var tripNew, tripObj; - var stationObj = {}; - - tripNew = tripObj = { code: '', arrivalList: [] }; - for (var index = 0; index < this.ExcelConfig.fieldNum; index += 1) { - var title = dataList[0][colIndex + index]; - var value = dataList[rowIndex][colIndex + index]; - - if (title && value) { - var titleStr = `${title}`.trim(); - var valueStr = `${value}`.trim(); - - if (titleStr.includes(this.ExcelConfig.sepField)) { - tripObj.code = valueStr; - JsonData.forEach(elem => { - if (elem.code == valueStr) { - tripObj = elem; - return; - } - }); - } - - // 取需要的字段 - if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { - stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr); - } - } - } - - tripObj.arrivalList.push(stationObj); - if (tripObj.code && tripObj == tripNew) { - JsonData.push(tripObj); - } - } - } - } - - return JsonData; - }, - - /** 将后台数据解析成图表*/ - convertDataToModels(data, stations, kmRangeCoordMap, lineStyle) { - var models = []; - - if (data && data.serviceNumberDataList && data.serviceNumberDataList.length) { - /** 按服务遍历数据*/ - data.serviceNumberDataList.forEach((service) => { - /** 按车次遍历数据*/ - 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.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 (!service.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 (service.backup) { - /** 创建一条完成的服务数据*/ - opt.name += j; - var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle)); - if (model) { - models.push(model); - opt = { name: '', markPointData: [], data: [] }; - } - } - }); - - // 不是备用车,按服务添加线 - if (!service.backup) { - /** 创建一条完成的服务数据*/ - 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 = ''; - - stations.forEach(elem => { - if (elem.kmRange < parseInt(params.value) / this.CoordMultiple - this.EdgeHeight) { - yText = 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; - } -}; diff --git a/src/jmap/theme/chengdu_03/planSchedule/index.vue b/src/jmap/theme/chengdu_03/planSchedule/index.vue deleted file mode 100644 index 696eed1e0..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/index.vue +++ /dev/null @@ -1,403 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_03/planSchedule/menuBar.vue b/src/jmap/theme/chengdu_03/planSchedule/menuBar.vue deleted file mode 100644 index e64ae3063..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/menuBar.vue +++ /dev/null @@ -1,514 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/planSchedule/menuTool.vue b/src/jmap/theme/chengdu_03/planSchedule/menuTool.vue deleted file mode 100644 index a2ee9e8f0..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/menuTool.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/planSchedule/schedule.vue b/src/jmap/theme/chengdu_03/planSchedule/schedule.vue deleted file mode 100644 index 2acc66540..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/schedule.vue +++ /dev/null @@ -1,481 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue b/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue deleted file mode 100644 index 170553e15..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/statusBar.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_03/planSchedule/titleBar.vue b/src/jmap/theme/chengdu_03/planSchedule/titleBar.vue deleted file mode 100644 index 689c3486a..000000000 --- a/src/jmap/theme/chengdu_03/planSchedule/titleBar.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/alxeEffective.vue b/src/jmap/theme/chengdu_04/menus/dialog/alxeEffective.vue deleted file mode 100644 index 37b8fda24..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/alxeEffective.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/cancelAllLimit.vue b/src/jmap/theme/chengdu_04/menus/dialog/cancelAllLimit.vue deleted file mode 100644 index 1f90d642c..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/cancelAllLimit.vue +++ /dev/null @@ -1,371 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/childDialog/noticeInfo.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/childDialog/noticeInfo.vue deleted file mode 100644 index 574e2ed4c..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/childDialog/noticeInfo.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControl.vue deleted file mode 100644 index bbb3a2587..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControl.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControlSpeed.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControlSpeed.vue deleted file mode 100644 index 31d4587e0..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmControlSpeed.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmSignalUnlock.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmSignalUnlock.vue deleted file mode 100644 index c6f069ffe..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmSignalUnlock.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTip.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTip.vue deleted file mode 100644 index 6917c9a94..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTip.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTrain.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTrain.vue deleted file mode 100644 index b0a7ffc5d..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/confirmTrain.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/password.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/password.vue deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/passwordInputBox.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/passwordInputBox.vue deleted file mode 100644 index dda9defa7..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/passwordInputBox.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/popupAlarm.vue b/src/jmap/theme/chengdu_04/menus/dialog/childDialog/popupAlarm.vue deleted file mode 100644 index f71cf4158..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/childDialog/popupAlarm.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/routeControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/routeControl.vue deleted file mode 100644 index 4c7ab1437..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/routeControl.vue +++ /dev/null @@ -1,363 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/routeDetail.vue b/src/jmap/theme/chengdu_04/menus/dialog/routeDetail.vue deleted file mode 100644 index c93dc7380..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/routeDetail.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/routeGuide.vue b/src/jmap/theme/chengdu_04/menus/dialog/routeGuide.vue deleted file mode 100644 index 4d0534ee1..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/routeGuide.vue +++ /dev/null @@ -1,283 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/routeSelection.vue b/src/jmap/theme/chengdu_04/menus/dialog/routeSelection.vue deleted file mode 100644 index 88df28887..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/routeSelection.vue +++ /dev/null @@ -1,270 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/sectionCmdControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/sectionCmdControl.vue deleted file mode 100644 index 96bd8f04b..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/sectionCmdControl.vue +++ /dev/null @@ -1,435 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/sectionControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/sectionControl.vue deleted file mode 100644 index 13ac35839..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/sectionControl.vue +++ /dev/null @@ -1,215 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/sectionDetail.vue b/src/jmap/theme/chengdu_04/menus/dialog/sectionDetail.vue deleted file mode 100644 index 21c0c7e13..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/sectionDetail.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/speedCmdControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/speedCmdControl.vue deleted file mode 100644 index 5a3b9e7dc..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/speedCmdControl.vue +++ /dev/null @@ -1,896 +0,0 @@ - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/standControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/standControl.vue deleted file mode 100644 index 7e019bfd0..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/standControl.vue +++ /dev/null @@ -1,621 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/standDetail.vue b/src/jmap/theme/chengdu_04/menus/dialog/standDetail.vue deleted file mode 100644 index 5aea6cf4c..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/standDetail.vue +++ /dev/null @@ -1,219 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/dialog/stationCmdControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/stationCmdControl.vue deleted file mode 100644 index 4680847c6..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/stationCmdControl.vue +++ /dev/null @@ -1,389 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/switchCmdControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/switchCmdControl.vue deleted file mode 100644 index ae66d1d28..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/switchCmdControl.vue +++ /dev/null @@ -1,459 +0,0 @@ - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/dialog/switchControl.vue b/src/jmap/theme/chengdu_04/menus/dialog/switchControl.vue deleted file mode 100644 index c45f04de0..000000000 --- a/src/jmap/theme/chengdu_04/menus/dialog/switchControl.vue +++ /dev/null @@ -1,416 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/index.vue b/src/jmap/theme/chengdu_04/menus/index.vue deleted file mode 100644 index ec218b332..000000000 --- a/src/jmap/theme/chengdu_04/menus/index.vue +++ /dev/null @@ -1,360 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuBar.vue b/src/jmap/theme/chengdu_04/menus/menuBar.vue deleted file mode 100644 index 943662caa..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuBar.vue +++ /dev/null @@ -1,1220 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuCancel.vue b/src/jmap/theme/chengdu_04/menus/menuCancel.vue deleted file mode 100644 index 90d599739..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuCancel.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/twoConfirmation.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/twoConfirmation.vue deleted file mode 100644 index d15dda0a8..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/twoConfirmation.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userAdd.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userAdd.vue deleted file mode 100644 index 2bea83e3e..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userDelete.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userDelete.vue deleted file mode 100644 index 631bcf2ea..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userDelete.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userEdit.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userEdit.vue deleted file mode 100644 index 95e4e8fa8..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/childDialog/userEdit.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/helpAbout.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/helpAbout.vue deleted file mode 100644 index 698bd5429..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/helpAbout.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/limitSpeed.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/limitSpeed.vue deleted file mode 100644 index 0ac49d4d4..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/limitSpeed.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/manageUser.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/manageUser.vue deleted file mode 100644 index f7a2e1589..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/manageUser.vue +++ /dev/null @@ -1,290 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/passwordBox.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/passwordBox.vue deleted file mode 100644 index 9feaf8232..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/passwordBox.vue +++ /dev/null @@ -1,221 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/setLimitSpeed.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/setLimitSpeed.vue deleted file mode 100644 index 6f19587a8..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/setLimitSpeed.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/stationControlConvert.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/stationControlConvert.vue deleted file mode 100644 index 4bd00cc1b..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/stationControlConvert.vue +++ /dev/null @@ -1,414 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/trainAdd.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/trainAdd.vue deleted file mode 100644 index 7ddcff22c..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/trainAdd.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/trainDelete.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/trainDelete.vue deleted file mode 100644 index 398ccb370..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/trainDelete.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/trainTranstalet.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/trainTranstalet.vue deleted file mode 100644 index c82352003..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/trainTranstalet.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/viewDevice.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/viewDevice.vue deleted file mode 100644 index dd4fc2e38..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/viewDevice.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/viewName.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/viewName.vue deleted file mode 100644 index 98c5df083..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/viewName.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuDialog/viewTrainId.vue b/src/jmap/theme/chengdu_04/menus/menuDialog/viewTrainId.vue deleted file mode 100644 index 888ba8d38..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuDialog/viewTrainId.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuLimit.vue b/src/jmap/theme/chengdu_04/menus/menuLimit.vue deleted file mode 100644 index d8600220a..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuLimit.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuSection.vue b/src/jmap/theme/chengdu_04/menus/menuSection.vue deleted file mode 100644 index 3cc709001..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuSection.vue +++ /dev/null @@ -1,403 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/menuSignal.vue b/src/jmap/theme/chengdu_04/menus/menuSignal.vue deleted file mode 100644 index b01c897d3..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuSignal.vue +++ /dev/null @@ -1,583 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuStation.vue b/src/jmap/theme/chengdu_04/menus/menuStation.vue deleted file mode 100644 index a4e2e0c7d..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuStation.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuStationControl.vue b/src/jmap/theme/chengdu_04/menus/menuStationControl.vue deleted file mode 100644 index b569ec165..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuStationControl.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuStationStand.vue b/src/jmap/theme/chengdu_04/menus/menuStationStand.vue deleted file mode 100644 index 5350140d1..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuStationStand.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuSwitch.vue b/src/jmap/theme/chengdu_04/menus/menuSwitch.vue deleted file mode 100644 index d6c79e675..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuSwitch.vue +++ /dev/null @@ -1,462 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuTool.vue b/src/jmap/theme/chengdu_04/menus/menuTool.vue deleted file mode 100644 index dc32a9673..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuTool.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/menuTrain.vue b/src/jmap/theme/chengdu_04/menus/menuTrain.vue deleted file mode 100644 index 989ceb08e..000000000 --- a/src/jmap/theme/chengdu_04/menus/menuTrain.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - diff --git a/src/jmap/theme/chengdu_04/menus/passiveDialog/alarm.vue b/src/jmap/theme/chengdu_04/menus/passiveDialog/alarm.vue deleted file mode 100644 index 9ec516a1c..000000000 --- a/src/jmap/theme/chengdu_04/menus/passiveDialog/alarm.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menus/passiveDialog/control.vue b/src/jmap/theme/chengdu_04/menus/passiveDialog/control.vue deleted file mode 100644 index 1e0175452..000000000 --- a/src/jmap/theme/chengdu_04/menus/passiveDialog/control.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/passiveDialog/timeout.vue b/src/jmap/theme/chengdu_04/menus/passiveDialog/timeout.vue deleted file mode 100644 index 91cb2849d..000000000 --- a/src/jmap/theme/chengdu_04/menus/passiveDialog/timeout.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/menus/utils/menuItemStatus.js b/src/jmap/theme/chengdu_04/menus/utils/menuItemStatus.js deleted file mode 100644 index cf14bd2b0..000000000 --- a/src/jmap/theme/chengdu_04/menus/utils/menuItemStatus.js +++ /dev/null @@ -1,587 +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 SystemType = { - '01': 'local', // 现地工作站 - '02': 'central' // 中心调度工作站 -}; - -export const StationControlType = { - '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() { - }, - // 区段取消限速 - cancelSpeed() { - const device = getCurrentStateObject(); - if (device && device.speedUpperLimit == deviceState.Section.speedUpperLimit.Default) { - return true; - } - }, - // 新建列车 - newTrain() { - }, - // 计轴预复位 - axlePreReset() { - }, - // 设置计轴有效 - alxeEffective() { - }, - // 设置计轴失效 - alxeFailure() { - const device = getCurrentStateObject(); - if (device && device.status == deviceState.Section.status.State13) { - 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; - } - }, - // 总人解 - humanTrainRoute() { - }, - // 人工控 - 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 (device && device.holdStatus != deviceState.StationStand.holdStatus.State01) { - return true; - } - }, - // 取消扣车 - cancelDetainTrain() { - const device = getCurrentStateObject(); - if (device && device.holdStatus == deviceState.StationStand.holdStatus.State01) { - 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(); - }, - // 设置计轴有效 - alxeEffective() { - }, - // 道岔取消速度 - cancelSpeed() { - }, - // 设置故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - return true; - } - }, - // 单操到定位 - locate() { - }, - // 单操到反位 - reverse() { - }, - // 属性 - property() { - } - }, - Train: { - // 添加列车识别号 - addTrainId() { - }, - // 删除列车识别号 - delTrainId() { - }, - // 修改列车识别号 - editTrainId() { - }, - // 修改车组号 - editTrainNo() { - }, - // 创建车组号 - createTrainNo() { - }, - // 移动车组号 - moveTrainNo() { - }, - // 删除车组号 - deleteTrainNo() { - }, - // 移动列车识别号 - moveTrainId() { - }, - // 交换列车识别号 - switchTrainId() { - }, - // 设计划车 - setPlanTrainId() { - }, - // 设目的地车 - destinationTrainId() { - }, - // 设人工车 - artificialTrainId() { - }, - // 详细列车信息 - detailTrainInfo() { - }, - // 设置限速 - limitSpeed() { - }, - // 设置通信故障 - setStoppage() { - const device = getCurrentStateObject(); - if (device && device.fault) { - return true; - } - }, - // 取消通信故障 - cancelStoppage() { - const device = getCurrentStateObject(); - if (device && !device.fault) { - 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 = SystemType[store.state.training.prdType]; - const status = StationControlType[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 != '') { - var type = SystemType[store.state.training.prdType]; - 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; - } - } - }); - } - } - return menu; -} - -/** - * 离开菜单以及执行完菜单取消选中状态 - */ -export function mouseCancelState(device) { - // Object.assign(device, { _selected: false }); - // var viewInstance = store.state.map.jlmap.getViewInstanceByDevice({ _type: device._type, _code: device.code }); - // if (viewInstance && viewInstance['mouseleave']) { - // viewInstance['selected'] = false; - // viewInstance['mouseleave'](store.state.map.jlmap._zr.curEvent); - // } -} - diff --git a/src/jmap/theme/chengdu_04/menusPlan/addTask.vue b/src/jmap/theme/chengdu_04/menusPlan/addTask.vue deleted file mode 100644 index 009c19f02..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/addTask.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue b/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue deleted file mode 100644 index fa220d049..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/chooseTemplatePlan.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue b/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue deleted file mode 100644 index ef76ee150..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/components/dataTable.vue +++ /dev/null @@ -1,206 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue deleted file mode 100644 index 061b7f8d0..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/createTodayPlan.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue deleted file mode 100644 index 2eabc8044..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/createWeekPlan.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue b/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue deleted file mode 100644 index cd79c305f..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/deleteTask.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue deleted file mode 100644 index 2e22a7c64..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/deleteTodayPlan.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue b/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue deleted file mode 100644 index 7fcd45639..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/managePlanList.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue b/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue deleted file mode 100644 index 1d2b31102..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/modifyingPlan.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue b/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue deleted file mode 100644 index 4679c003e..000000000 --- a/src/jmap/theme/chengdu_04/menusPlan/modifyingTask.vue +++ /dev/null @@ -1,326 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/model.js b/src/jmap/theme/chengdu_04/model.js deleted file mode 100644 index 3dd21ca8f..000000000 --- a/src/jmap/theme/chengdu_04/model.js +++ /dev/null @@ -1,68 +0,0 @@ -import deviceType from '../../constant/deviceType'; - -class Model { - constructor() { - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; - - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: 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] = { - 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/jmap/theme/chengdu_04/planConvert.js b/src/jmap/theme/chengdu_04/planConvert.js deleted file mode 100644 index dadb1996b..000000000 --- a/src/jmap/theme/chengdu_04/planConvert.js +++ /dev/null @@ -1,310 +0,0 @@ -import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan'; - -export default { - /** 边缘高度*/ - EdgeHeight: 600, - - /** 间隔高度*/ - CoordMultiple: 1, - - /** 偏移时间*/ - TranslationTime: 60 * 60 * 2, - - /** excel解析配置*/ - ExcelConfig: { - beginRow: 1, - beginCol: 0, - fieldNum: 10, - 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) { - var dataList = convertSheetToList(Sheet, true); - var needList = Object.keys(this.ExcelConfig.columns); - - if (dataList && dataList.length) { - for (var colIndex = this.ExcelConfig.beginCol; colIndex < dataList.length; colIndex += this.ExcelConfig.fieldNum + 1) { - var isContinue = true; - var tripObj = { code: '', arrivalList: [] }; - - for (var rowIndex = this.ExcelConfig.beginRow; isContinue; rowIndex += 1) { - isContinue = false; - - var stationObj = {}; - for (var index = 0; index < this.ExcelConfig.fieldNum; index += 1) { - if (dataList[colIndex + index]) { - var title = dataList[colIndex + index][0]; - var value = dataList[colIndex + index][rowIndex]; - - if (title && value) { - // 数据列解析 - isContinue = true; - var titleStr = `${title}`.trim(); - var valueStr = `${value}`.trim(); - - if (titleStr == this.ExcelConfig.sepField) { - if (tripObj.code) { - const length = tripObj.arrivalList.length; - if (length == 1) { - tripObj.arrivalList[0]['flag'] = true; - } - JsonData.push(tripObj); - tripObj = { code: valueStr, arrivalList: [] }; - } else { - tripObj.code = valueStr; - } - } - - // 取需要的字段 - if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { - stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr); - } - } - } - } - - // 添加字段值 - if (Object.keys(stationObj).length) { - 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 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.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 (!service.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); - opt.data.push([lastPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode]); - opt.data.push([nextPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode]); - } - - /** 如果是备用车,按车次添加线*/ - if (service.backup) { - /** 创建一条完成的服务数据*/ - opt.name += j; - var model = createSeriesModel(opt, Object.assign({ color: hexColor.toCreate() }, lineStyle)); - if (model) { - models.push(model); - opt = { name: '', markPointData: [], data: [] }; - } - } - }); - - // 不是备用车,按服务添加线 - if (!service.backup) { - /** 创建一条完成的服务数据*/ - 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 = ''; - - stations.forEach(elem => { - if (elem.kmRange < parseInt(params.value) / this.CoordMultiple - this.EdgeHeight) { - yText = 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; - } -}; diff --git a/src/jmap/theme/chengdu_04/planSchedule/index.vue b/src/jmap/theme/chengdu_04/planSchedule/index.vue deleted file mode 100644 index 6fa39ed23..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/index.vue +++ /dev/null @@ -1,403 +0,0 @@ - - - - - diff --git a/src/jmap/theme/chengdu_04/planSchedule/menuBar.vue b/src/jmap/theme/chengdu_04/planSchedule/menuBar.vue deleted file mode 100644 index e64ae3063..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/menuBar.vue +++ /dev/null @@ -1,514 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/planSchedule/menuTool.vue b/src/jmap/theme/chengdu_04/planSchedule/menuTool.vue deleted file mode 100644 index d3ecde016..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/menuTool.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/planSchedule/schedule.vue b/src/jmap/theme/chengdu_04/planSchedule/schedule.vue deleted file mode 100644 index 81d8f0787..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/schedule.vue +++ /dev/null @@ -1,482 +0,0 @@ - - - - diff --git a/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue b/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue deleted file mode 100644 index 170553e15..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/statusBar.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/jmap/theme/chengdu_04/planSchedule/titleBar.vue b/src/jmap/theme/chengdu_04/planSchedule/titleBar.vue deleted file mode 100644 index 689c3486a..000000000 --- a/src/jmap/theme/chengdu_04/planSchedule/titleBar.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/jmap/theme/factory.js b/src/jmap/theme/factory.js index d1d180c21..717cd04d8 100644 --- a/src/jmap/theme/factory.js +++ b/src/jmap/theme/factory.js @@ -2,10 +2,10 @@ class Theme { constructor(code) { this._code = '02'; this._mapMenu = { - '01': 'chengdu_04', + // '01': 'chengdu_04', '02': 'fuzhou_01', - '03': 'beijing_01', - '04': 'chengdu_03', + // '03': 'beijing_01', + // '04': 'chengdu_03', '05': 'fuzhou_01' // 国际版运行图皮肤 指向05 福州线路 }; } From b34a9fdf250a2f86ba565395508374ac5286b582 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 14:08:52 +0800 Subject: [PATCH 09/31] =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ningbo_01/menus/dialog/alxeEffective.vue | 3 +- .../ningbo_01/menus/dialog/routeSelection.vue | 3 +- .../ningbo_01/menus/dialog/routeUnLock.vue | 3 +- .../ningbo_01/menus/dialog/routerCommand.vue | 3 +- .../ningbo_01/menus/dialog/sectionUnLock.vue | 3 +- .../menus/dialog/standBulkBuckleTrain.vue | 3 +- .../ningbo_01/menus/dialog/standDetail.vue | 3 +- .../menus/dialog/stationCmdControl.vue | 757 +++++++++--------- .../ningbo_01/menus/dialog/stationControl.vue | 3 +- .../menus/dialog/stationHumanControlAll.vue | 3 +- .../dialog/stationSetRouteControlAll.vue | 3 +- .../ningbo_01/menus/dialog/switchUnLock.vue | 3 +- .../ningbo_01/menus/dialog/trainDefine.vue | 3 +- .../ningbo_01/menus/dialog/trainDelete.vue | 3 +- .../ningbo_01/menus/dialog/trainEdit.vue | 3 +- .../ningbo_01/menus/dialog/trainFlag.vue | 3 +- .../ningbo_01/menus/dialog/trainMove.vue | 3 +- .../ningbo_01/menus/dialog/trainSetHead.vue | 3 +- .../ningbo_01/menus/dialog/trainSetPlan.vue | 3 +- .../ningbo_01/menus/dialog/trainSetWork.vue | 3 +- .../menus/dialog/trainSetWorkATP.vue | 3 +- .../menus/dialog/turnBackControl.vue | 3 +- .../theme/ningbo_01/menus/menuStation.vue | 5 +- .../theme/ningbo_01/menus/menuTrain.vue | 5 +- .../xian_01/menus/dialog/standDetail.vue | 1 - .../xian_02/menus/dialog/alxeEffective.vue | 1 - .../xian_02/menus/dialog/cancelAllLimit.vue | 1 - .../xian_02/menus/dialog/routeDetail.vue | 1 - .../xian_02/menus/dialog/routeHandControl.vue | 1 - .../theme/xian_02/menus/dialog/routeLock.vue | 1 - .../xian_02/menus/dialog/routeSelection.vue | 1 - .../xian_02/menus/dialog/routeUnLock.vue | 1 - .../xian_02/menus/dialog/routerCommand.vue | 1 - .../xian_02/menus/dialog/sectionUnLock.vue | 1 - .../menus/dialog/standBackStrategy.vue | 1 - .../menus/dialog/standBulkBuckleTrain.vue | 1 - .../xian_02/menus/dialog/standControl.vue | 1 - .../xian_02/menus/dialog/standDetail.vue | 1 - .../menus/dialog/standJumpStopControl.vue | 1 - .../xian_02/menus/dialog/standRunLevel.vue | 1 - .../xian_02/menus/dialog/standStopTime.vue | 1 - .../menus/dialog/stationCmdControl.vue | 4 +- .../xian_02/menus/dialog/stationControl.vue | 1 - .../menus/dialog/stationHumanControlAll.vue | 1 - .../dialog/stationSetRouteControlAll.vue | 1 - .../xian_02/menus/dialog/switchUnLock.vue | 1 - .../xian_02/menus/dialog/trainDefine.vue | 1 - .../xian_02/menus/dialog/trainDelete.vue | 1 - .../xian_02/menus/dialog/trainDestination.vue | 1 - .../theme/xian_02/menus/dialog/trainEdit.vue | 1 - .../theme/xian_02/menus/dialog/trainFlag.vue | 1 - .../theme/xian_02/menus/dialog/trainMove.vue | 1 - .../xian_02/menus/dialog/trainSetHead.vue | 1 - .../xian_02/menus/dialog/trainSetPlan.vue | 1 - .../xian_02/menus/dialog/trainSetWork.vue | 1 - .../xian_02/menus/dialog/trainSetWorkATP.vue | 1 - .../xian_02/menus/dialog/turnBackControl.vue | 1 - .../theme/xian_02/menus/menuStation.vue | 3 - src/jmapNew/theme/xian_02/menus/menuTrain.vue | 2 - 59 files changed, 438 insertions(+), 433 deletions(-) diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue index 71db53d29..70959eca7 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue @@ -94,6 +94,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo' import PopupAlarm from './childDialog/popupAlarm'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; export default { name: 'AlxeEffective', @@ -254,7 +255,7 @@ export default { doClose() { this.dialogShow = false; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, getSectionList(code) { this.randomSectionList = []; diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue index 0acf3d257..4a8051f6c 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue @@ -38,6 +38,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; import { deepAssign } from '@/utils/index'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; import { mapGetters } from 'vuex'; export default { @@ -132,7 +133,7 @@ export default { this.restoreBeforeDevices(); this.$refs.table.setCurrentRow(); this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, restoreBeforeDevices() { // 恢复之前选中设备 diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue index 124d23cca..671e435e6 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue @@ -64,6 +64,7 @@ import { mapGetters } from 'vuex'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; export default { name: 'StandDetainTrain', @@ -146,7 +147,7 @@ export default { this.disabledConfirm1 = false; this.disabledConfirm2 = true; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, SelectChange() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue index 2abf61684..96aebeafd 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue @@ -32,6 +32,7 @@ import { mapGetters } from 'vuex'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; export default { name: 'RouteLock', @@ -88,7 +89,7 @@ export default { this.loading = false; this.dialogShow = false; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, commit() { if (this.operate == OperationEvent.Signal.cancelGuide.menu.operation) { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue index df5d39a63..215878598 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/sectionUnLock.vue @@ -64,6 +64,7 @@ import { mapGetters } from 'vuex'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; export default { name: 'StandDetainTrain', @@ -187,7 +188,7 @@ export default { this.sectionCode = ''; this.messageText2 = ''; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, SelectChange() { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue index d1e3d2dd8..54d202939 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standBulkBuckleTrain.vue @@ -39,6 +39,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import OperationHandler from '@/scripts/cmdPlugin/OperationHandler'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; import { mapGetters } from 'vuex'; export default { @@ -159,7 +160,7 @@ export default { this.dialogShow = false; this.operation = ''; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, handleSelectionChangeUp(val) { this.upSelectList = val; diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue index 7dd519532..d368080fe 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/standDetail.vue @@ -45,6 +45,7 @@ import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; export default { name: 'StandDetail', @@ -207,7 +208,7 @@ export default { this.loading = false; this.dialogShow = false; this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, commit() { const operate = { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue index 42f8e9a05..88c2fae82 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue @@ -1,388 +1,407 @@ \ No newline at end of file +}; + diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue index 0727f5a85..7b628d6f9 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue @@ -46,6 +46,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import {mouseCancelState} from '@/jmapNew/theme/components/utils/menuItemStatus'; import { mapGetters } from 'vuex'; export default { @@ -182,7 +183,7 @@ export default { this.restoreBeforeDevices(); this.$refs.table.setCurrentRow(); this.$store.dispatch('training/emitTipFresh'); - this.mouseCancelState(this.selected); + mouseCancelState(this.selected); }, restoreBeforeDevices() { // 恢复之前选中设备 diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue index 10d637e3b..af1ac923d 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationHumanControlAll.vue @@ -29,6 +29,7 @@ diff --git a/src/views/system/deviceManage/index.vue b/src/views/system/deviceManage/index.vue index 34123d576..6af31b7d2 100644 --- a/src/views/system/deviceManage/index.vue +++ b/src/views/system/deviceManage/index.vue @@ -1,7 +1,8 @@ @@ -9,11 +10,14 @@ - - diff --git a/src/views/mapdraft/dataRelation/automaticoperate/detail.vue b/src/views/mapdraft/dataRelation/automaticoperate/detail.vue deleted file mode 100644 index 69c86bd14..000000000 --- a/src/views/mapdraft/dataRelation/automaticoperate/detail.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/automaticoperate/index.vue b/src/views/mapdraft/dataRelation/automaticoperate/index.vue deleted file mode 100644 index f34b6496f..000000000 --- a/src/views/mapdraft/dataRelation/automaticoperate/index.vue +++ /dev/null @@ -1,84 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/automaticoperate/route.vue b/src/views/mapdraft/dataRelation/automaticoperate/route.vue deleted file mode 100644 index ed6fcfee0..000000000 --- a/src/views/mapdraft/dataRelation/automaticoperate/route.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/espOperate/index.vue b/src/views/mapdraft/dataRelation/espOperate/index.vue deleted file mode 100644 index fd4b5353f..000000000 --- a/src/views/mapdraft/dataRelation/espOperate/index.vue +++ /dev/null @@ -1,154 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/index.vue b/src/views/mapdraft/dataRelation/index.vue deleted file mode 100644 index bae9e2fb3..000000000 --- a/src/views/mapdraft/dataRelation/index.vue +++ /dev/null @@ -1,252 +0,0 @@ - - - - diff --git a/src/views/mapdraft/dataRelation/pathoperate/detail.vue b/src/views/mapdraft/dataRelation/pathoperate/detail.vue deleted file mode 100644 index 3861174e8..000000000 --- a/src/views/mapdraft/dataRelation/pathoperate/detail.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/pathoperate/index.vue b/src/views/mapdraft/dataRelation/pathoperate/index.vue deleted file mode 100644 index 191c9df12..000000000 --- a/src/views/mapdraft/dataRelation/pathoperate/index.vue +++ /dev/null @@ -1,84 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue b/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue deleted file mode 100644 index 25ae9d74a..000000000 --- a/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/pathoperate/route.vue b/src/views/mapdraft/dataRelation/pathoperate/route.vue deleted file mode 100644 index feaecfac7..000000000 --- a/src/views/mapdraft/dataRelation/pathoperate/route.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/psdOperate/index.vue b/src/views/mapdraft/dataRelation/psdOperate/index.vue deleted file mode 100644 index b71ca8f56..000000000 --- a/src/views/mapdraft/dataRelation/psdOperate/index.vue +++ /dev/null @@ -1,154 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/routeoperate/detail.vue b/src/views/mapdraft/dataRelation/routeoperate/detail.vue deleted file mode 100644 index 68ecf6fd0..000000000 --- a/src/views/mapdraft/dataRelation/routeoperate/detail.vue +++ /dev/null @@ -1,446 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routeoperate/index.vue b/src/views/mapdraft/dataRelation/routeoperate/index.vue deleted file mode 100644 index 33ace43fb..000000000 --- a/src/views/mapdraft/dataRelation/routeoperate/index.vue +++ /dev/null @@ -1,85 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/routeoperate/preview.vue b/src/views/mapdraft/dataRelation/routeoperate/preview.vue deleted file mode 100644 index 09b2554ee..000000000 --- a/src/views/mapdraft/dataRelation/routeoperate/preview.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routeoperate/related.vue b/src/views/mapdraft/dataRelation/routeoperate/related.vue deleted file mode 100644 index efd8c828d..000000000 --- a/src/views/mapdraft/dataRelation/routeoperate/related.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routeoperate/route.vue b/src/views/mapdraft/dataRelation/routeoperate/route.vue deleted file mode 100644 index 1ef7cc5bc..000000000 --- a/src/views/mapdraft/dataRelation/routeoperate/route.vue +++ /dev/null @@ -1,541 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routingoperate/detail.vue b/src/views/mapdraft/dataRelation/routingoperate/detail.vue deleted file mode 100644 index 93f36fbfa..000000000 --- a/src/views/mapdraft/dataRelation/routingoperate/detail.vue +++ /dev/null @@ -1,251 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routingoperate/index.vue b/src/views/mapdraft/dataRelation/routingoperate/index.vue deleted file mode 100644 index 888de5cee..000000000 --- a/src/views/mapdraft/dataRelation/routingoperate/index.vue +++ /dev/null @@ -1,84 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/routingoperate/preview.vue b/src/views/mapdraft/dataRelation/routingoperate/preview.vue deleted file mode 100644 index 2392047b5..000000000 --- a/src/views/mapdraft/dataRelation/routingoperate/preview.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/routingoperate/route.vue b/src/views/mapdraft/dataRelation/routingoperate/route.vue deleted file mode 100644 index a7bdcd243..000000000 --- a/src/views/mapdraft/dataRelation/routingoperate/route.vue +++ /dev/null @@ -1,377 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/signaloperate/detail.vue b/src/views/mapdraft/dataRelation/signaloperate/detail.vue deleted file mode 100644 index e61a029c1..000000000 --- a/src/views/mapdraft/dataRelation/signaloperate/detail.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - diff --git a/src/views/mapdraft/dataRelation/signaloperate/index.vue b/src/views/mapdraft/dataRelation/signaloperate/index.vue deleted file mode 100644 index eb4fb632b..000000000 --- a/src/views/mapdraft/dataRelation/signaloperate/index.vue +++ /dev/null @@ -1,84 +0,0 @@ - - diff --git a/src/views/mapdraft/dataRelation/signaloperate/route.vue b/src/views/mapdraft/dataRelation/signaloperate/route.vue deleted file mode 100644 index ffbc56bf6..000000000 --- a/src/views/mapdraft/dataRelation/signaloperate/route.vue +++ /dev/null @@ -1,207 +0,0 @@ - - - diff --git a/src/views/mapdraft/index.vue b/src/views/mapdraft/index.vue deleted file mode 100644 index d1e642c5c..000000000 --- a/src/views/mapdraft/index.vue +++ /dev/null @@ -1,427 +0,0 @@ - - - diff --git a/src/views/mapdraft/mapoperate/ImageControl.vue b/src/views/mapdraft/mapoperate/ImageControl.vue deleted file mode 100644 index 2552c1afc..000000000 --- a/src/views/mapdraft/mapoperate/ImageControl.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/buttonDraft.vue b/src/views/mapdraft/mapoperate/buttonDraft.vue deleted file mode 100644 index 8a4c6b97d..000000000 --- a/src/views/mapdraft/mapoperate/buttonDraft.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/checkboxDraft.vue b/src/views/mapdraft/mapoperate/checkboxDraft.vue deleted file mode 100644 index 828ad259c..000000000 --- a/src/views/mapdraft/mapoperate/checkboxDraft.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/config/data.vue b/src/views/mapdraft/mapoperate/config/data.vue deleted file mode 100644 index 36e6e02ce..000000000 --- a/src/views/mapdraft/mapoperate/config/data.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - diff --git a/src/views/mapdraft/mapoperate/config/list.vue b/src/views/mapdraft/mapoperate/config/list.vue deleted file mode 100644 index 4f5c3faa3..000000000 --- a/src/views/mapdraft/mapoperate/config/list.vue +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - diff --git a/src/views/mapdraft/mapoperate/counter.vue b/src/views/mapdraft/mapoperate/counter.vue deleted file mode 100644 index fe9f4760c..000000000 --- a/src/views/mapdraft/mapoperate/counter.vue +++ /dev/null @@ -1,255 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/delayunlock.vue b/src/views/mapdraft/mapoperate/delayunlock.vue deleted file mode 100644 index 3f50a5633..000000000 --- a/src/views/mapdraft/mapoperate/delayunlock.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/index.vue b/src/views/mapdraft/mapoperate/index.vue deleted file mode 100644 index 171e6b2cb..000000000 --- a/src/views/mapdraft/mapoperate/index.vue +++ /dev/null @@ -1,453 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/lcControl.vue b/src/views/mapdraft/mapoperate/lcControl.vue deleted file mode 100644 index 85ab25e8c..000000000 --- a/src/views/mapdraft/mapoperate/lcControl.vue +++ /dev/null @@ -1,255 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/limitControl.vue b/src/views/mapdraft/mapoperate/limitControl.vue deleted file mode 100644 index ca371e788..000000000 --- a/src/views/mapdraft/mapoperate/limitControl.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/line.vue b/src/views/mapdraft/mapoperate/line.vue deleted file mode 100644 index ea5127960..000000000 --- a/src/views/mapdraft/mapoperate/line.vue +++ /dev/null @@ -1,310 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/link.vue b/src/views/mapdraft/mapoperate/link.vue deleted file mode 100644 index 4eda10514..000000000 --- a/src/views/mapdraft/mapoperate/link.vue +++ /dev/null @@ -1,551 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/section.vue b/src/views/mapdraft/mapoperate/section.vue deleted file mode 100644 index b1f2ad1bb..000000000 --- a/src/views/mapdraft/mapoperate/section.vue +++ /dev/null @@ -1,1238 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/signal.vue b/src/views/mapdraft/mapoperate/signal.vue deleted file mode 100644 index 02565de38..000000000 --- a/src/views/mapdraft/mapoperate/signal.vue +++ /dev/null @@ -1,445 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/station.vue b/src/views/mapdraft/mapoperate/station.vue deleted file mode 100644 index 94e462aec..000000000 --- a/src/views/mapdraft/mapoperate/station.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/stationcontrol.vue b/src/views/mapdraft/mapoperate/stationcontrol.vue deleted file mode 100644 index a074e67ec..000000000 --- a/src/views/mapdraft/mapoperate/stationcontrol.vue +++ /dev/null @@ -1,254 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/stationstand.vue b/src/views/mapdraft/mapoperate/stationstand.vue deleted file mode 100644 index 93d71d1bc..000000000 --- a/src/views/mapdraft/mapoperate/stationstand.vue +++ /dev/null @@ -1,308 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/switch.vue b/src/views/mapdraft/mapoperate/switch.vue deleted file mode 100644 index 4e764d272..000000000 --- a/src/views/mapdraft/mapoperate/switch.vue +++ /dev/null @@ -1,513 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/text.vue b/src/views/mapdraft/mapoperate/text.vue deleted file mode 100644 index 136a37d7c..000000000 --- a/src/views/mapdraft/mapoperate/text.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/train/create.vue b/src/views/mapdraft/mapoperate/train/create.vue deleted file mode 100644 index 249208f8b..000000000 --- a/src/views/mapdraft/mapoperate/train/create.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/train/index.vue b/src/views/mapdraft/mapoperate/train/index.vue deleted file mode 100644 index 4e9f34139..000000000 --- a/src/views/mapdraft/mapoperate/train/index.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/train/trainmodel.vue b/src/views/mapdraft/mapoperate/train/trainmodel.vue deleted file mode 100644 index 802171bd8..000000000 --- a/src/views/mapdraft/mapoperate/train/trainmodel.vue +++ /dev/null @@ -1,199 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/trainwindow.vue b/src/views/mapdraft/mapoperate/trainwindow.vue deleted file mode 100644 index 76072f9a7..000000000 --- a/src/views/mapdraft/mapoperate/trainwindow.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - diff --git a/src/views/mapdraft/mapoperate/zcControl.vue b/src/views/mapdraft/mapoperate/zcControl.vue deleted file mode 100644 index ba87a30cb..000000000 --- a/src/views/mapdraft/mapoperate/zcControl.vue +++ /dev/null @@ -1,253 +0,0 @@ - - - - From c463f8ef6935be759c367517c7e0a5efdcb3e2af Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 18:32:31 +0800 Subject: [PATCH 19/31] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E4=B8=80=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E5=93=88=E5=B0=94=E6=BB=A8=E4=B8=80=E5=8F=B7=E7=BA=BF?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=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 --- .../menus/dialog/speedCmdControl.vue | 23 +++--- .../theme/haerbin_01/menus/menuSection.vue | 70 +++---------------- .../menus/dialog/stationCmdControl.vue | 2 +- .../theme/ningbo_01/menus/menuStation.vue | 21 +++--- .../menus/dialog/stationCmdControl.vue | 2 +- 5 files changed, 35 insertions(+), 83 deletions(-) diff --git a/src/jmapNew/theme/haerbin_01/menus/dialog/speedCmdControl.vue b/src/jmapNew/theme/haerbin_01/menus/dialog/speedCmdControl.vue index c306c07a2..7c360feaf 100644 --- a/src/jmapNew/theme/haerbin_01/menus/dialog/speedCmdControl.vue +++ b/src/jmapNew/theme/haerbin_01/menus/dialog/speedCmdControl.vue @@ -24,7 +24,7 @@ - + @@ -96,9 +96,7 @@ export default { speedSpace: 5, stationName: '', name: '', - formData: { - speedLimitValue: '' - } + speed: '' }; }, computed: { @@ -258,7 +256,7 @@ export default { }, deep: true }, - 'formData.speedLimitValue': function (val) { + 'speed': function (val) { if (val) this.cmdDisabled[0] = false; } }, @@ -316,7 +314,7 @@ export default { this.stationName = station.name; } - this.formData.speedLimitValue = ''; + this.speed = ''; this.tableData = []; this.selected = selected; this.timeCountCommand = -1; @@ -327,8 +325,7 @@ export default { this.operation = operate.operation; this.setMessage(this.$t('tip.selectSpeedLimitValueTip')); if (this.isCancelSpeed) { - console.log(tempData, 'tempData'); - this.formData.speedLimitValue = `${tempData}`; + this.speed = selected.speedUpLimit; this.spdDisabled = true; this.cmdDisabled = [false, true, true]; } @@ -371,21 +368,21 @@ export default { if (this.operation == OperationEvent.Section.setSpeed.menu.operation) { /** 区段设置限速*/ operate.operation = OperationEvent.Section.setSpeed.order.operation; - operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.sectionSetLimitPrefix') + `${this.formData.speedLimitValue}` + this.$t('menu.sectionLimitSuffix'); + operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.sectionSetLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix'); } else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) { /** 区段取消限速*/ operate.operation = OperationEvent.Section.cancelSpeed.order.operation; operate.message = `在【${this.name}】区段,区段取消限速,确认下达吗?`; - // operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.sectionCancelLimitPrefix') + `${this.formData.speedLimitValue}` + this.$t('menu.sectionLimitSuffix'); + // operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.sectionCancelLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix'); } else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) { /** 道岔设置限速*/ operate.operation = OperationEvent.Switch.setSpeed.order.operation; - operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.switchSetLimitPrefix') + `${this.formData.speedLimitValue}` + this.$t('menu.sectionLimitSuffix'); + operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.switchSetLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix'); } else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) { /** 道岔取消限速*/ operate.operation = OperationEvent.Switch.cancelSpeed.order.operation; operate.message = `在【${this.name}】道岔,道岔取消限速,确认下达吗?`; - // operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.switchCancelLimitPrefix') + `${this.formData.speedLimitValue}` + this.$t('menu.sectionLimitSuffix'); + // operate.message = this.$t('menu.in') + `【${this.name}】` + this.$t('menu.switchCancelLimitPrefix') + `${this.speed}` + this.$t('menu.sectionLimitSuffix'); } this.setMessage(this.$t('tip.firstConfirmTip')); @@ -439,7 +436,7 @@ export default { const operate = { over: true, param: { - speedLimitValue: this.formData.speedLimitValue + speedLimitValue: this.speed } }; diff --git a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue index 40db7e9a0..6ce497f43 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuSection.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuSection.vue @@ -142,19 +142,9 @@ export default { } }, createPlanTrain() { - const step = { - start: true, - code: this.selected.code, - operation: OperationEvent.Train.createPlanTrain.menu.operation, - param: { - sectionCode: this.selected.code - } - }; - - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Train.createPlanTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('training/setCommonMenuStep', step); + this.$store.dispatch('training/setCommonMenuStep', operate); } }); }, @@ -190,75 +180,37 @@ export default { this.$refs.sectionCmdControl.doShow(step, this.selected); } }); + }, // 区段封锁 lock() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Section.lock.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Section.lock, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.sectionControl.doShow(step, this.selected); + this.$refs.sectionControl.doShow(operate, this.selected); } }); }, // 区段解锁 unlock() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Section.unlock.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Section.unlock, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.sectionCmdControl.doShow(step, this.selected); + this.$refs.sectionCmdControl.doShow(operate, this.selected); } }); }, // 设置速度 setSpeed() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Section.setSpeed.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Section.setSpeed, { sectionCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.speedCmdControl.doShow(step, this.selected); + this.$refs.speedCmdControl.doShow(operate, this.selected); } }); }, // 取消速度 cancelSpeed() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Section.cancelSpeed.menu.operation, - param: { - sectionCode: `${this.selected.code}` - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Section.cancelSpeed, { sectionCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - // Handler.execute(CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, {}).then(resp => { - // const tempData = resp.data; - this.$refs.speedCmdControl.doShow(step, this.selected, -1); - // }); + this.$refs.speedCmdControl.doShow(operate, this.selected); } }); } diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue index 88c2fae82..a564350f9 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationCmdControl.vue @@ -163,7 +163,7 @@ export default { title() { if (this.dialogShow) { if (this.operation == OperationEvent.Station.powerUnLock.menu.operation) { - return '信号解封'; + return '上电解锁'; } else if (this.operation == OperationEvent.Station.execKeyOperationTest.menu.operation) { return '执行关键操作测试'; } diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue index 56698a1d0..edca4148a 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStation.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStation.vue @@ -14,6 +14,7 @@ import StationCmdControl from './dialog/stationCmdControl'; import StationHumanControlAll from './dialog/stationHumanControlAll'; import StationSetRouteControlAll from './dialog/stationSetRouteControlAll'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; +import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { mapGetters } from 'vuex'; import { OperateMode } from '@/scripts/ConstDic'; import { OperationEvent, DeviceMenu } from '@/scripts/ConstDic'; @@ -45,50 +46,52 @@ export default { { label: '全站设置联锁自动触发', handler: this.setAutoTrigger, - auth: { station: true, center: false } + cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER }, { label: '全站取消联锁自动触发', handler: this.cancelAutoTrigger, - auth: { station: true, center: false } + cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER }, { label: '上电解锁', handler: this.powerUnLock, - auth: { station: true, center: false } + cmdType: CMD.Station.CMD_STATION_POWER_ON_UNLOCK }, { label: '执行关键操作测试', handler: this.execKeyOperationTest, - auth: { station: true, center: false } + cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST } ], Center: [ { label: '所有进路自排关', handler: this.humanControlALL, - auth: { station: false, center: true } + cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING }, { label: '所有进路自排开', handler: this.atsAutoControlALL, - auth: { station: false, center: true } + cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING }, { label: '执行关键操作测试', handler: this.execKeyOperationTest, - auth: { station: false, center: true } + cmdType: CMD.Station.CMD_STATION_KEY_OPERATION_TEST } ] }, menuForce: [ { label: '设置ZC故障', - handler: this.setStoppage + handler: this.setStoppage, + cmdType: CMD.Station.CMD_STATION_ADD_FAULT }, { label: '取消ZC故障', - handler: this.cancelStoppage + handler: this.cancelStoppage, + cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT } ] }; diff --git a/src/jmapNew/theme/xian_01/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/xian_01/menus/dialog/stationCmdControl.vue index fd2b2973e..8bcab70aa 100644 --- a/src/jmapNew/theme/xian_01/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/xian_01/menus/dialog/stationCmdControl.vue @@ -167,7 +167,7 @@ export default { title() { if (this.dialogShow) { if (this.operation == OperationEvent.Station.powerUnLock.menu.operation) { - return this.$t('menu.signalDeblocking'); + return '上电解锁'; } else if (this.operation == OperationEvent.Station.execKeyOperationTest.menu.operation) { return this.$t('menu.menuStation.execKeyOperationTest'); } From 4d3a1eed731f96dcaa8bbea37d3594f1c3ef1aa7 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 19 Jun 2020 18:39:41 +0800 Subject: [PATCH 20/31] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project.js | 6 +++--- src/views/system/deviceManage/editConfig.vue | 7 +++++-- src/views/system/deviceManage/editConfigGateway.vue | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/project.js b/src/api/project.js index ce0e79f5b..189dfb351 100644 --- a/src/api/project.js +++ b/src/api/project.js @@ -26,14 +26,14 @@ export function getProjectDeviceList(params) { /** 删除项目设备 */ export function deleteProjectDevice(id) { return request({ - url: `/api/project/device/${id}`, + url: `/api/device/${id}`, method: 'delete' }); } /** 获取设备详情 */ export function getDeviceDetail(id) { return request({ - url: `/api/project/device/${id}`, + url: `/api/device/${id}`, method: 'get' }); } @@ -64,7 +64,7 @@ export function setSwitchConfig(id, data) { /** 查询项目下的所有设备 */ export function getAllDeviceInProject(params) { return request({ - url: `/api/project/device/project`, + url: `/api/device/project`, method: 'get', params }); diff --git a/src/views/system/deviceManage/editConfig.vue b/src/views/system/deviceManage/editConfig.vue index 54339c123..c21407a77 100644 --- a/src/views/system/deviceManage/editConfig.vue +++ b/src/views/system/deviceManage/editConfig.vue @@ -75,9 +75,12 @@ export default { methods: { initData(row) { getDeviceDetail(row.id).then(resp => { - if (resp.data.config) { - this.formModel = resp.data.config; + if (resp.data.config && resp.data.type === 'IBP') { + this.formIbp = JSON.parse(resp.data.config); + } else if (resp.data.config && resp.data.type === 'LW') { + this.formLw = JSON.parse(resp.data.config); } + console.log(this.formIbp, this.formLw); }).catch(()=> { this.$message.error('获取项目设备详情失败!'); }); diff --git a/src/views/system/deviceManage/editConfigGateway.vue b/src/views/system/deviceManage/editConfigGateway.vue index afdd0f5b2..eb9a28577 100644 --- a/src/views/system/deviceManage/editConfigGateway.vue +++ b/src/views/system/deviceManage/editConfigGateway.vue @@ -370,7 +370,7 @@ export default { initData(row) { getDeviceDetail(row.id).then(resp => { if (resp.data.config) { - this.formModel = resp.data.config; + this.formModel = JSON.parse(resp.data.config); } }).catch(()=> { this.$message.error('获取项目设备详情失败!'); From 32f4ead0360e1a48443c3ac7ff9f3930ebf1dc9a Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 18:58:55 +0800 Subject: [PATCH 21/31] =?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/views/newMap/displayNew/index.vue | 32 ++++++++++++---------- src/views/newMap/displayNew/menuScript.vue | 4 +-- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 718d7a064..d39fc155f 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -52,7 +52,7 @@ @showScheduling="showScheduling" /> - + 现地 @@ -326,6 +327,9 @@ export default { '$store.state.map.map': function (val) { this.showSelectStation = val.skinVO.code === '06' && this.$store.state.training.prdType === '01'; this.showSelectStation && this.setStationList(val); + }, + 'group':function(group) { + this.grouper = group; } }, async created() { @@ -335,15 +339,15 @@ export default { EventBus.$on('clearCheckLogin', () => { this.clearCheckLogin(); }); - + this.grouper = this.group; await this.setWindowSize(); await this.initLoadData(); }, - async beforeDestroy() { - await this.clearAllTimer(); - await this.quit(); - await this.$store.dispatch('training/reset'); - await this.$store.dispatch('map/mapClear'); + beforeDestroy() { + this.quit(this.grouper); + this.clearAllTimer(); + this.$store.dispatch('training/reset'); + this.$store.dispatch('map/mapClear'); EventBus.$off('clearCheckLogin'); }, methods: { @@ -577,9 +581,9 @@ export default { }, // 销毁仿真 - async quit() { - await clearSimulation(this.group); - await this.$store.dispatch('training/over'); + quit(group) { + clearSimulation(group); + this.$store.dispatch('training/over'); }, // 仿真错误时,被动退出时调用 async back() { @@ -624,10 +628,10 @@ export default { window.open(routeData.href, '_blank', 'noopener noreferrer'); } }, - script3ddriveshow(){ - this.panelShow = false; - this.drivingShow = true; - this.$refs.Jl3dDrive.show(this.mapId, this.group); + script3ddriveshow() { + this.panelShow = false; + this.drivingShow = true; + this.$refs.Jl3dDrive.show(this.mapId, this.group); }, passflow() { const routeData = this.$router.resolve({ diff --git a/src/views/newMap/displayNew/menuScript.vue b/src/views/newMap/displayNew/menuScript.vue index eed2bfb73..5cb240510 100644 --- a/src/views/newMap/displayNew/menuScript.vue +++ b/src/views/newMap/displayNew/menuScript.vue @@ -7,7 +7,7 @@ 重置剧本 --> - {{ $t('joinTraining.driverPerspective') }} + {{ $t('joinTraining.driverPerspective') }} {{ $t('scriptRecord.drivingByPlan') }} 初始化 {{ $t('scriptRecord.scriptBack') }} @@ -200,7 +200,7 @@ export default { }); }, jumpjlmap3d() { - this.$emit('script3ddriveshow'); + this.$emit('script3ddriveshow'); }, async loadSystemTime() { From 9cb46f16b7379cf6b01c71c111f97867037acc74 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 19 Jun 2020 19:08:33 +0800 Subject: [PATCH 22/31] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E7=B1=BB=E5=9E=8BDrive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scriptManage/scriptRecord/getActionNew.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/scriptManage/scriptRecord/getActionNew.vue b/src/views/scriptManage/scriptRecord/getActionNew.vue index a01eac958..309828f73 100644 --- a/src/views/scriptManage/scriptRecord/getActionNew.vue +++ b/src/views/scriptManage/scriptRecord/getActionNew.vue @@ -11,6 +11,11 @@ 邀请 {{ actionInfo.targetName }} + + {{ actionInfo.memberName }} + 把车开到 + 区段{{ actionInfo.targetName }} + {{ actionInfo.memberName }} @@ -121,6 +126,10 @@ export default { this.actionInfoList.push({id: element.id, isStartCoversition: true, memberName: memberName, targetName:targetNameList.toString() }); break; } + case 'Drive': { + this.actionInfoList.push({id: element.id, isDrive: true, memberName: memberName, targetName:this.covertSection(element.targetSectionCode)}); + break; + } case 'Conversation': { this.actionInfoList.push({id: element.id, isCoversition: true, memberName: memberName, reply: element.content, row: element, visible: true}); @@ -143,6 +152,14 @@ export default { } } }, + covertSection(sectionCode) { + const section = this.$store.getters['map/getDeviceByCode'](sectionCode); + if (section && section.name) { + return section.name; + } else { + return ''; + } + }, loadOtherData(obj) { const group = obj.group; getScriptMemberDataNew(this.group).then(response => { From 1b36efd8592e97e18a15c66b97c16e4cd3baeae3 Mon Sep 17 00:00:00 2001 From: sunleking Date: Sat, 20 Jun 2020 19:35:54 +0800 Subject: [PATCH 23/31] =?UTF-8?q?=E4=BF=AE=E6=94=B9cctv=E8=80=81=E6=9D=BF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=8A=A0=E8=BD=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3dpassflow/jl3dpassflownew.js | 108 +++++++++++--------- 1 file changed, 59 insertions(+), 49 deletions(-) diff --git a/src/jlmap3d/jl3dpassflow/jl3dpassflownew.js b/src/jlmap3d/jl3dpassflow/jl3dpassflownew.js index ce6f2aca2..8b55b8ecc 100644 --- a/src/jlmap3d/jl3dpassflow/jl3dpassflownew.js +++ b/src/jlmap3d/jl3dpassflow/jl3dpassflownew.js @@ -55,7 +55,8 @@ let passerwebwork = new Worker("../../static/workertest/passsimulation/passer.js let stationwebwork = new Worker("../../static/workertest/passsimulation/station.js"); let stationzon = new ZoneManager(); - +//老版本临时ai控制 +let olddataai = false; for(let i=0;i<5;i++){ checkdoor1[i]={ id:"c1"+i, @@ -947,6 +948,9 @@ export function Jl3dpassflow(dom,skinCode,routegroup) { }else if(humanlist.children[i].stage == 3){ humanlist.children[i].stage = 4; + if(olddataai){ + humanlist.children[i].stage = 5; + } }else if(humanlist.children[i].stage == 2){ humanlist.children[i].stage = 3; @@ -1031,64 +1035,70 @@ export function Jl3dpassflow(dom,skinCode,routegroup) { // console.log(humanlist.children.length); } function initstationlist(stationdata,standdata,psddata){ - // console.log(standdata); + let list = []; - for(let i=0,leni = standdata.length;i0){ - let stationobject = { - code : list[k][0].stationCode, - name : k, - toppsd:null, - downpsd:null, - topsection:null, - downsection:null, - }; - if(list[k][0].position.y0){ + let stationobject = { + code : list[k][0].stationCode, + name : k, + toppsd:null, + downpsd:null, + topsection:null, + downsection:null, + }; + if(list[k][0].position.y Date: Mon, 22 Jun 2020 09:49:45 +0800 Subject: [PATCH 24/31] =?UTF-8?q?=E8=B4=B5=E8=A3=85=E5=A4=87=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=AD=A6=E7=94=9F=E4=BF=A1=E6=81=AF=E5=90=8E=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E7=8F=AD=E7=BA=A7=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/beijing_01/menus/menuSection.vue | 17 +++++++++++++---- .../theme/beijing_01/menus/menuSignal.vue | 11 ++++++++--- src/views/studentManage/index.vue | 9 ++++++++- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index 80309f8fc..283f981af 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -5,6 +5,8 @@ + +
@@ -21,6 +23,8 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; +import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; +import TrainAddPlan from '@/jmapNew/theme/components/menus/dialog/trainAddPlan'; export default { name: 'SectionMenu', @@ -29,7 +33,9 @@ export default { SectionControl, SpeedLimitControl, AlxeEffective, - NoticeInfo + NoticeInfo, + SetFault, + TrainAddPlan }, props: { selected: { @@ -177,7 +183,8 @@ export default { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$store.dispatch('training/setCommonMenuStep', operate); + // this.$store.dispatch('training/setCommonMenuStep', operate); + this.$refs.trainAddPlan.doShow(operate); } }); }, @@ -271,7 +278,8 @@ export default { setStoppage() { commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); + // this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.setFault); + this.$refs.setFault.doShow(menuOperate.Common.SetFault, this.selected); } }); }, @@ -279,7 +287,8 @@ export default { cancelStoppage() { commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); + // this.$store.dispatch('training/setCommonMenuStep', menuOperate.Common.cancelFault); + this.$refs.setFault.doShow(menuOperate.Common.SetFault, this.selected); } }); } diff --git a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue index fdaf78500..024e7383d 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue @@ -7,12 +7,14 @@ + - diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue index e09600777..52b022d73 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSection.vue @@ -21,7 +21,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; -import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; +// import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; export default { name: 'SectionMenu', diff --git a/src/jmapNew/theme/xian_02/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/xian_02/menus/dialog/alxeEffective.vue deleted file mode 100644 index 091261ac9..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/alxeEffective.vue +++ /dev/null @@ -1,401 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/dialog/childDialog/popupAlarm.vue b/src/jmapNew/theme/xian_02/menus/dialog/childDialog/popupAlarm.vue deleted file mode 100644 index c62af4396..000000000 --- a/src/jmapNew/theme/xian_02/menus/dialog/childDialog/popupAlarm.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - diff --git a/src/jmapNew/theme/xian_02/menus/menuSection.vue b/src/jmapNew/theme/xian_02/menus/menuSection.vue index 7b3a63bd8..9a6cd12a3 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSection.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSection.vue @@ -4,7 +4,6 @@ - @@ -14,7 +13,6 @@ import PopMenu from '@/components/PopMenu/index'; import SectionControl from '@/jmapNew/theme/components/menus/dialog/sectionControl'; import SectionUnLock from './dialog/sectionUnLock'; import SpeedLimitControl from './dialog/speedLimitControl'; -import AlxeEffective from './dialog/alxeEffective'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; @@ -30,7 +28,6 @@ export default { SectionControl, SectionUnLock, SpeedLimitControl, - AlxeEffective, NoticeInfo }, props: { @@ -236,14 +233,6 @@ export default { } }); }, - // 确认计轴有效 - alxeEffective() { - commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ - if (valid) { - this.$refs.alxeEffective.doShow(operate, this.selected); - } - }); - }, // 区段激活 active() { commitOperate(menuOperate.Section.active, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{ diff --git a/src/jmapNew/theme/xian_02/menus/menuSwitch.vue b/src/jmapNew/theme/xian_02/menus/menuSwitch.vue index 5be14c7c5..b98f3617e 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSwitch.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSwitch.vue @@ -4,7 +4,6 @@ - @@ -14,7 +13,6 @@ import PopMenu from '@/components/PopMenu/index'; import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl'; import SwitchUnLock from './dialog/switchUnLock'; import SpeedLimitControl from './dialog/speedLimitControl'; -import AlxeEffective from './dialog/alxeEffective'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { mapGetters } from 'vuex'; @@ -30,7 +28,6 @@ export default { SwitchControl, SwitchUnLock, SpeedLimitControl, - AlxeEffective, NoticeInfo }, props: { @@ -324,14 +321,6 @@ export default { } }); }, - // 确认计轴有效 - alxeEffective() { - commitOperate(menuOperate.Switch.alxeEffective, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{ - if (valid) { - this.$refs.alxeEffective.doShow(operate, this.selected); - } - }); - }, enabledConfirm() { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, diff --git a/src/utils/index.js b/src/utils/index.js index 74f5b079d..ea5999a7e 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -153,7 +153,31 @@ export function deepAssign(obj, item) { const targetObj = item[keys].constructor == Array ? [] : {}; target[keys] = deepAssign(targetObj, item[keys]); } else { - target[keys] = item[keys]; + target[keys] = item[keys] || ''; + } + } + } + return Object.assign(obj, target); +} + +// 对象深拷贝并赋值 +export function deepAssigns(obj, item) { + const target = item.constructor === Array ? [] : {}; // 判断复制的目标是数组还是对象 + for (const keys in obj) { + if (item.hasOwnProperty(keys) && keys != 'instance') { // instance 对面不拷贝 + if (item[keys] && typeof item[keys] == 'object') { // 如果值是对象,就递归一下 + const targetObj = item[keys].constructor == Array ? [] : {}; + target[keys] = deepAssign(targetObj, item[keys]); + } else { + target[keys] = item[keys] || ''; + } + } else { + if (typeof obj[keys] == 'boolean') { + target[keys] = false; + } else if (typeof obj[keys] == 'number') { + target[keys] = 0; + } else if (typeof obj[keys] == 'string') { + target[keys] = ''; } } } diff --git a/src/views/newMap/newMapdraft/index.vue b/src/views/newMap/newMapdraft/index.vue index a9bd5d151..10f5e7854 100644 --- a/src/views/newMap/newMapdraft/index.vue +++ b/src/views/newMap/newMapdraft/index.vue @@ -498,9 +498,8 @@ export default { }, saveMapEvent() { // 保存地图 const map = this.$store.state.map.map; - // map.signalList.forEach(item => { - // item.namePosition = { x: 0, y: 0 }; - // item.lampPositionType = '02'; + // map.sectionList.forEach(item => { + // item.belongStation = ''; // }); if (this.$refs.jlmapVisual && map && parseInt(this.$route.params.mapId)) { if (this.verifySectionPoint(map)) { diff --git a/src/views/newMap/newMapdraft/mapoperate/section/index.vue b/src/views/newMap/newMapdraft/mapoperate/section/index.vue index 9040ccb6c..fbef3012f 100644 --- a/src/views/newMap/newMapdraft/mapoperate/section/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/section/index.vue @@ -56,7 +56,7 @@ import { mapGetters } from 'vuex'; import JTriangle from '@/jmapNew/utils/JTriangle'; import ConfigList from '../config/list'; -import { deepAssign } from '@/utils/index'; +import { deepAssign, deepAssigns } from '@/utils/index'; import LogicBlock from './logicBlock'; import TipInfo from './tipInfo'; import CreateSection from './create'; @@ -501,7 +501,7 @@ export default { } this.clear(); this.activeName = 'first'; - this.editModel = deepAssign(this.editModel, selected); + this.editModel = deepAssigns(this.editModel, selected); this.oldPoint = selected.points; this.oldLeftSectionCode = selected.leftSectionCode; this.oldRightSectionCode = selected.rightSectionCode; From 5580a793447ad4ff82a515bcfdae009056156c7a Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 22 Jun 2020 14:29:55 +0800 Subject: [PATCH 28/31] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E5=88=97=E8=BD=A6=E5=88=97=E8=A1=A8=E8=B0=83=E6=95=B4=20?= =?UTF-8?q?=E7=A6=8F=E5=B7=9E=E7=BA=BF=E6=93=8D=E4=BD=9C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 2 +- .../theme/fuzhou_01/menus/menuSection.vue | 17 ---- .../theme/fuzhou_01/menus/menuStation.vue | 89 ++++--------------- src/store/modules/map.js | 19 ++-- src/views/newMap/displayNew/menuDemon.vue | 1 + src/views/newMap/displayNew/menuTrainList.vue | 39 ++++---- .../newMap/jointTrainingNew/menuDemon.vue | 3 +- .../newMap/jointTrainingNew/menuTrainList.vue | 37 ++++---- 8 files changed, 73 insertions(+), 134 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 7fb82e824..ee1d9e9d5 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -423,7 +423,7 @@ class Jlmap { } else { if (elem.deviceType === 'TRAIN') { this.isUpdateShowTrainList = true; - store.dispatch('map/updateTrainList', elem); + store.dispatch('map/updateActiveTrainList', elem); // store.dispatch('map/updateTrainState', elem); } else if (elem.deviceType === 'STAND') { store.dispatch('map/updateStationStand', elem); diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue index fa9bc2dff..728360dcf 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue @@ -297,23 +297,6 @@ export default { this.$refs.speedCmdControl.doShow(operate, this.selected); } }); - // const step = { - // start: true, - // code: `${this.selected.code}`, - // operation: OperationEvent.Section.cancelSpeed.menu.operation, - // param: { - // Section_Code: `${this.selected.code}` - // } - // }; - // this.$store.dispatch('training/next', step).then(({ valid }) => { - // if (valid) { - // this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - // Handler.execute(CMD.Section.CMD_QUERY, {}).then(resp => { - // const tempData = resp.data; - // this.$refs.speedCmdControl.doShow(step, this.selected, tempData); - // }); - // } - // }); } } }; diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuStation.vue b/src/jmapNew/theme/fuzhou_01/menus/menuStation.vue index 13178093d..7bc2b434b 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuStation.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuStation.vue @@ -19,6 +19,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; +import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; export default { name: 'StationMenu', @@ -197,107 +198,47 @@ export default { }, // 全站设置联锁自动触发 setAutoTrigger() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.setAutoTrigger.menu.operation, - cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, - param: { - Station_Code: `${this.selected.code}` - } - }; - this.$store.dispatch('training/next', step).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } - }).catch(() => { - this.$refs.noticeInfo.doShow(step); + commitOperate(menuOperate.Station.setAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{ + }).catch(error=>{ + this.$refs.noticeInfo.doShow(error.message); }); }, // 全站取消联锁自动触发 cancelAutoTrigger() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.cancelAutoTrigger.menu.operation, - cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, - param: { - Station_Code: `${this.selected.code}` - } - }; - this.$store.dispatch('training/next', step).then(({ valid }) => { - if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - } - }).catch(() => { - this.$refs.noticeInfo.doShow(step); + commitOperate(menuOperate.Station.cancelAutoTrigger, { stationCode: this.selected.code }, 3).then(({valid, operate})=>{ + }).catch(error=>{ + this.$refs.noticeInfo.doShow(error.message); }); }, // 上电解锁 powerUnLock() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.powerUnLock.menu.operation, - param: { - Station_Code: `${this.selected.code}` - } - }; - this.$store.dispatch('training/next', step).then(({ valid }) => { + commitOperate(menuOperate.Station.powerUnLock, { stationCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.stationCmdControl.doShow(step, this.selected); + this.$refs.stationCmdControl.doShow(operate, this.selected); } }); }, // 执行关键操作测试 execKeyOperationTest() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.execKeyOperationTest.menu.operation, - param: { - stationCode: this.selected.code - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Station.execKeyOperationTest, { stationCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.stationCmdControl.doShow(step, this.selected); + this.$refs.stationCmdControl.doShow(operate, this.selected); } }); }, // 所有进路自排关 humanControlALL() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.humanControlALL.menu.operation, - param: { - stationCode: this.selected.code - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Station.humanControlALL, { stationCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.stationHumanControlAll.doShow(step); + this.$refs.stationHumanControlAll.doShow(operate, this.selected); } }); }, // 所有进路自排开 atsAutoControlALL() { - const step = { - start: true, - code: `${this.selected.code}`, - operation: OperationEvent.Station.atsAutoControlALL.menu.operation, - param: { - stationCode: this.selected.code - } - }; - this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + commitOperate(menuOperate.Station.atsAutoControlALL, { stationCode: this.selected.code }, 0).then(({valid, operate})=>{ if (valid) { - this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.$refs.stationSetRouteControlAll.doShow(step, this.selected); + this.$refs.stationSetRouteControlAll.doShow(operate, this.selected); } }); } diff --git a/src/store/modules/map.js b/src/store/modules/map.js index a3cbc6e43..cd8c99d51 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -206,6 +206,7 @@ const map = { mousemove: 0, // 实训战场图移动标识 version: '', // 地图版本, activeTrainListUpdate:0, // 当前按计划行车的列车列表更新标识 + activeTrainList:[], // 当前按计划行车的列车列表 runPlanStatus:false, // 是否正处于按计划行车 showCentralizedStationCode: '', // 现地分集中站显示(集中站code) showCentralizedStationNum: 0, // 现地分集中站显示判断 @@ -731,6 +732,7 @@ const map = { }, resetActiveTrainList:(state) => { state.activeTrainListUpdate = 0; + state.activeTrainList = []; }, setDeleteCount: (state) => { state.deleteCount++; @@ -830,13 +832,14 @@ const map = { } }); }, - updateTrainList: (state, data)=>{ - const trainList = state.map.trainList; - trainList.forEach(elem => { - if (elem.code == data.code) { - elem = deepAssign(elem || {}, data); + updateActiveTrainList: (state, data)=>{ + let isExist = false; + state.activeTrainList.forEach(elem => { + if (elem == data.code) { + isExist = true; } }); + if (!isExist) { state.activeTrainList.push(data.code); } } }, @@ -911,9 +914,9 @@ const map = { } }, - // 更新列车信息 - updateTrainList:({ commit }, train) => { - commit('updateTrainList', train); + // 更新激活的列车信息 + updateActiveTrainList:({ commit }, train) => { + commit('updateActiveTrainList', train); }, setMapDataIdList: ({ state }, data) => { diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue index bc9c97560..ca523e4b9 100644 --- a/src/views/newMap/displayNew/menuDemon.vue +++ b/src/views/newMap/displayNew/menuDemon.vue @@ -221,6 +221,7 @@ export default { this.$store.dispatch('training/over').then(() => { this.$store.dispatch('training/setMapDefaultState').then(() => { this.$store.dispatch('map/setRunPlanStatus', false); + this.$store.dispatch('map/resetActiveTrainList'); this.$store.dispatch('map/clearJlmapTrainView'); this.$store.dispatch('map/setTrainWindowShow', false); }); diff --git a/src/views/newMap/displayNew/menuTrainList.vue b/src/views/newMap/displayNew/menuTrainList.vue index 3e2b95207..3d519871d 100644 --- a/src/views/newMap/displayNew/menuTrainList.vue +++ b/src/views/newMap/displayNew/menuTrainList.vue @@ -71,19 +71,26 @@ export default { watch:{ '$store.state.map.activeTrainListUpdate': function (val) { if (val) { - const trainList = this.$store.state.map.map.trainList; + const activeTrainList = this.$store.state.map.activeTrainList; if (this.lineCode == '10' || this.lineCode == '11') { - this.topTrainList = trainList.filter((train)=>{ + this.topTrainList = []; + this.bottomTrainList = []; + activeTrainList.forEach((trainCode)=>{ // train.serviceNumber != '' && train.serviceNumber != undefined && - return !train.right && train.sectionCode; - }); - this.bottomTrainList = trainList.filter((train)=>{ - // train.serviceNumber != '' && train.serviceNumber != undefined && - return train.right && train.sectionCode; + const train = this.$store.getters['map/getDeviceByCode'](trainCode); + if (train && !train.right && train.sectionCode) { + this.topTrainList.push(train); + } else if (train && train.right && train.sectionCode) { + this.bottomTrainList.push(train); + } }); } else { - this.trainList = trainList.filter((train)=>{ - return train.serviceNumber != '' && train.serviceNumber != undefined && train.sectionCode; + this.trainList = []; + activeTrainList.forEach((trainCode)=>{ + const train = this.$store.getters['map/getDeviceByCode'](trainCode); + if (train && train.sectionCode) { + this.trainList.push(train); + } }); } } else { @@ -91,11 +98,6 @@ export default { this.bottomTrainList = []; this.trainList = []; } - }, - '$store.state.map.runPlanStatus': function (val) { - if (!val) { - this.$store.dispatch('map/resetActiveTrainList'); - } } }, mounted() { @@ -116,11 +118,14 @@ export default { this.$emit('setCenter', code); }, covert(data) { - let min = (Math.abs(data) - Math.abs(data) % 60) / 60; - let seconds = Math.abs(data) % 60; + const absData = Math.abs(data); + const hours = Math.floor(absData / 3600); + let min = Math.floor((absData % 3600) / 60); + let seconds = (absData % 3600) % 60; min = min > 9 ? min : '0' + min; seconds = seconds > 9 ? seconds : '0' + seconds; - return data == 0 ? '00:00' : (data > 0 ? min + ':' + seconds + 'E' : min + ':' + seconds + 'L'); + const time = hours + ':' + min + ':' + seconds; + return data == 0 ? '00:00:00' : (data > 0 ? time + 'E' : time + 'L'); } } }; diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 6749c3324..b8f0cf4ea 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -100,7 +100,7 @@ export default { return this.userRole == 'STATION_SUPERVISOR'; }, isDriver() { - console.log(this.userRole); + console.log(this.userRole); return this.userRole == 'DRIVER'; }, isAdmin() { @@ -296,6 +296,7 @@ export default { }).catch(() => { this.$store.dispatch('training/over').then(() => { this.isDisable = true; + this.$store.dispatch('map/resetActiveTrainList'); this.$messageBox(this.$t('error.endSimulationFailed')); }); }); diff --git a/src/views/newMap/jointTrainingNew/menuTrainList.vue b/src/views/newMap/jointTrainingNew/menuTrainList.vue index e0ec40550..3d519871d 100644 --- a/src/views/newMap/jointTrainingNew/menuTrainList.vue +++ b/src/views/newMap/jointTrainingNew/menuTrainList.vue @@ -71,17 +71,26 @@ export default { watch:{ '$store.state.map.activeTrainListUpdate': function (val) { if (val) { - const trainList = this.$store.state.map.map.trainList; + const activeTrainList = this.$store.state.map.activeTrainList; if (this.lineCode == '10' || this.lineCode == '11') { - this.topTrainList = trainList.filter((train)=>{ - return train.serviceNumber != '' && train.serviceNumber != undefined && !train.right && train.sectionCode; - }); - this.bottomTrainList = trainList.filter((train)=>{ - return train.serviceNumber != '' && train.serviceNumber != undefined && train.right && train.sectionCode; + this.topTrainList = []; + this.bottomTrainList = []; + activeTrainList.forEach((trainCode)=>{ + // train.serviceNumber != '' && train.serviceNumber != undefined && + const train = this.$store.getters['map/getDeviceByCode'](trainCode); + if (train && !train.right && train.sectionCode) { + this.topTrainList.push(train); + } else if (train && train.right && train.sectionCode) { + this.bottomTrainList.push(train); + } }); } else { - this.trainList = trainList.filter((train)=>{ - return train.serviceNumber != '' && train.serviceNumber != undefined && train.sectionCode; + this.trainList = []; + activeTrainList.forEach((trainCode)=>{ + const train = this.$store.getters['map/getDeviceByCode'](trainCode); + if (train && train.sectionCode) { + this.trainList.push(train); + } }); } } else { @@ -89,11 +98,6 @@ export default { this.bottomTrainList = []; this.trainList = []; } - }, - '$store.state.map.runPlanStatus': function (val) { - if (!val) { - this.$store.dispatch('map/resetActiveTrainList'); - } } }, mounted() { @@ -114,9 +118,10 @@ export default { this.$emit('setCenter', code); }, covert(data) { - const hours = Math.floor(data / 3600); - let min = Math.floor((data % 3600) / 60); - let seconds = (data % 3600) % 60; + const absData = Math.abs(data); + const hours = Math.floor(absData / 3600); + let min = Math.floor((absData % 3600) / 60); + let seconds = (absData % 3600) % 60; min = min > 9 ? min : '0' + min; seconds = seconds > 9 ? seconds : '0' + seconds; const time = hours + ':' + min + ':' + seconds; From d789a30333de5f3d1b358a6f81cb7e95ceb6c2a9 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 22 Jun 2020 18:37:09 +0800 Subject: [PATCH 29/31] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E7=BC=96=E5=88=B6?= =?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/scriptRecord.js | 14 ++++++++++++- .../newMap/displayNew/chatView/chatBox.vue | 20 ++++++++++--------- .../chatView/chatCoversitionList.vue | 3 +++ .../displayNew/chatView/chatMemberList.vue | 3 +++ src/views/newMap/displayNew/menuScript.vue | 2 +- .../display/tipScriptRecordNew.vue | 6 ++++++ .../scriptRecord/getActionNew.vue | 2 +- 7 files changed, 38 insertions(+), 12 deletions(-) diff --git a/src/store/modules/scriptRecord.js b/src/store/modules/scriptRecord.js index eb4f46783..b67204a37 100644 --- a/src/store/modules/scriptRecord.js +++ b/src/store/modules/scriptRecord.js @@ -9,7 +9,9 @@ const scriptRecord = { scriptId: '', bgSet: false, isScriptCommand:false, // 当前是否为添加剧本动作指令状态 - scriptCommand:{} // 剧本动作添加的指令 + scriptCommand:{}, // 剧本动作添加的指令 + updateRoleStatus:0, // 剧本更新角色标志 + userRole:null // 剧本更新的角色 }, getters: { mapLocation: (state)=>{ @@ -29,6 +31,9 @@ const scriptRecord = { }, scriptCommand:(state)=>{ return state.scriptCommand; + }, + updateRoleStatus:(state)=>{ + return state.updateRoleStatus; } }, mutations: { @@ -49,6 +54,10 @@ const scriptRecord = { }, setScriptCommand:(state, scriptCommand) => { state.scriptCommand = scriptCommand; + }, + updateRole:(state, userRole) => { + state.updateRoleStatus += 1; + state.userRole = userRole; } }, actions: { @@ -72,6 +81,9 @@ const scriptRecord = { }, updateScriptCommand:({ commit }, scriptCommand) => { commit('setScriptCommand', scriptCommand); + }, + updateRole:({ commit }, userRole) => { + commit('updateRole', userRole); } } }; diff --git a/src/views/newMap/displayNew/chatView/chatBox.vue b/src/views/newMap/displayNew/chatView/chatBox.vue index 866a914d6..5955f57bc 100644 --- a/src/views/newMap/displayNew/chatView/chatBox.vue +++ b/src/views/newMap/displayNew/chatView/chatBox.vue @@ -11,7 +11,7 @@
-
+
@@ -19,7 +19,7 @@
- +
@@ -31,7 +31,7 @@ @@ -83,7 +83,6 @@ export default { minimize:true, bottom:15, recordSending:false, - currentCoversition:{}, memberListCoversition:{}, seconds:0, inter:null, @@ -132,6 +131,9 @@ export default { const objectBottom = parseInt(object.style.bottom) || 0; this.bottom = this.bottom + object.offsetHeight + objectBottom; } + }, + 'userRole':function(val) { + this.isHasCoversition = false; } }, @@ -159,7 +161,7 @@ export default { }, setCurrentCoversition(coversition) { if (coversition && coversition.id) { - this.currentCoversition = coversition; + // this.currentCoversition = coversition; this.headerTitle = coversition.name; } else { this.headerTitle = ''; @@ -175,9 +177,9 @@ export default { }, quitCoversition() { this.quitLoading = true; - quitCoversition(this.group, this.currentCoversition.id).then(res=>{ + quitCoversition(this.group, this.memberListCoversition.id).then(res=>{ this.quitLoading = false; - this.currentCoversition = {all:undefined, id:null}; + this.memberListCoversition = {all:undefined, id:null}; this.$refs.chatCoversitionList.initPage(true); this.isHasCoversition = false; }).catch(error=>{ @@ -191,7 +193,7 @@ export default { addCoversition({data, headerTitle}) { this.$refs.chatCoversitionList.addCoversition(data, headerTitle); this.isHasCoversition = true; - this.currentCoversition = {id:data.id, all:data.all}; + // this.currentCoversition = {id:data.id, all:data.all}; this.memberListCoversition = {id:data.id, all:data.all}; this.headerTitle = headerTitle; }, @@ -290,7 +292,7 @@ export default { const blob = that.recorders.getBlob(); const fd = new FormData(); fd.append('file', blob); - uploadAudioFileNew(that.group, that.form.language, that.form.sex, that.currentCoversition.id, fd) + uploadAudioFileNew(that.group, that.form.language, that.form.sex, that.memberListCoversition.id, fd) .then((data) => { }) .catch(error => { diff --git a/src/views/newMap/displayNew/chatView/chatCoversitionList.vue b/src/views/newMap/displayNew/chatView/chatCoversitionList.vue index 04f3dfc30..91b3f9b6b 100644 --- a/src/views/newMap/displayNew/chatView/chatCoversitionList.vue +++ b/src/views/newMap/displayNew/chatView/chatCoversitionList.vue @@ -31,6 +31,9 @@ export default { 'userRole':function(val) { this.initPage(true); } + // '$store.state.scriptRecord.updateRoleStatus':function(val) { + // this.initPage(true); + // } }, mounted() { }, diff --git a/src/views/newMap/displayNew/chatView/chatMemberList.vue b/src/views/newMap/displayNew/chatView/chatMemberList.vue index a58adb699..b191b744e 100644 --- a/src/views/newMap/displayNew/chatView/chatMemberList.vue +++ b/src/views/newMap/displayNew/chatView/chatMemberList.vue @@ -49,6 +49,9 @@ export default { if (val) { this.getSimulationMembers(); } + }, + '$store.state.scriptRecord.updateRoleStatus':function(val) { + this.getSimulationMembers(); } }, mounted() { diff --git a/src/views/newMap/displayNew/menuScript.vue b/src/views/newMap/displayNew/menuScript.vue index 5cb240510..65a3ea535 100644 --- a/src/views/newMap/displayNew/menuScript.vue +++ b/src/views/newMap/displayNew/menuScript.vue @@ -88,7 +88,7 @@ export default { } else if (this.$store.state.training.prdType == null) { return ''; } else { - return 'AUDIENCE'; + return this.$store.state.scriptRecord.userRole ? this.$store.state.scriptRecord.userRole : 'AUDIENCE'; } } }, diff --git a/src/views/scriptManage/display/tipScriptRecordNew.vue b/src/views/scriptManage/display/tipScriptRecordNew.vue index 1056d28e4..d1195f505 100644 --- a/src/views/scriptManage/display/tipScriptRecordNew.vue +++ b/src/views/scriptManage/display/tipScriptRecordNew.vue @@ -98,6 +98,7 @@ export default { beforeDestroy() { this.clearAutoSave(); this.$store.dispatch('scriptRecord/updateBgSet', false); + this.$store.dispatch('scriptRecord/updateRole', null); }, mounted() { this.initData(); @@ -149,6 +150,11 @@ export default { } } this.$store.dispatch('training/setPrdType', prdType); + ConstConfig.ConstSelect.roleTypeNew.forEach(each=>{ + if (each.label == memberInfo.role) { + this.$store.dispatch('scriptRecord/updateRole', each.value); + } + }); }).catch(()=>{ this.$messageBox('切换角色失败'); }); diff --git a/src/views/scriptManage/scriptRecord/getActionNew.vue b/src/views/scriptManage/scriptRecord/getActionNew.vue index 309828f73..f3ada43a4 100644 --- a/src/views/scriptManage/scriptRecord/getActionNew.vue +++ b/src/views/scriptManage/scriptRecord/getActionNew.vue @@ -10,6 +10,7 @@ {{ actionInfo.memberName }} 邀请 {{ actionInfo.targetName }} + 开始会话 {{ actionInfo.memberName }} @@ -110,7 +111,6 @@ export default { return lastData; }, covertData(memberVOList, element) { - debugger; const member = memberVOList.find(elem=>{ return elem.id == element.memberId; }); const memberName = member.name; switch (element.type) { From 4e36c7b45653ec6022cd5a49578985c83e858a8c Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Tue, 23 Jun 2020 09:26:58 +0800 Subject: [PATCH 30/31] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 4 +-- src/jmapNew/mouseController.js | 4 +-- src/jmapNew/shape/Signal/index.js | 12 +++++++++ src/jmapNew/shape/Train/index.js | 4 +-- .../theme/components/utils/menuOperate.js | 8 +++++- .../ningbo_01/menus/dialog/alxeEffective.vue | 5 +--- .../theme/ningbo_01/menus/dialog/setFault.vue | 2 +- .../newMapdraft/mapoperate/config/list.vue | 25 +++---------------- 8 files changed, 31 insertions(+), 33 deletions(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 7fb82e824..1e6e68458 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -11,7 +11,7 @@ import { selectLineCode } from './config/deviceStyle'; import { deviceFactory, createBoundingRect, calculateDCenter } from './utils/parser'; import { deepAssign } from '@/utils/index'; import store from '@/store/index_APP_TARGET'; -import Vue from 'vue'; +import { loadPropConvert } from './theme/factory'; const renderer = 'canvas'; const devicePixelRatio = 1; @@ -179,7 +179,7 @@ class Jlmap { } } } - const screenSplit = opts.list.length ? opts.list : Vue.prototype.$theme.loadPropConvert(store.state.map.map.skinVO.code).screenSplit; + const screenSplit = opts.list.length ? opts.list : loadPropConvert(store.state.map.map.skinVO.code).screenSplit; const splitList = JSON.parse(JSON.stringify(screenSplit)); const num = screenSplit.length + 1; const offsetY = (opts.height - 100) / num; // 高度差 diff --git a/src/jmapNew/mouseController.js b/src/jmapNew/mouseController.js index de4a2928d..eb18bcbd7 100644 --- a/src/jmapNew/mouseController.js +++ b/src/jmapNew/mouseController.js @@ -174,7 +174,7 @@ class MouseController extends Eventful { moveEvent(e) { const newEm = new EventModel(e); - const trainDetails = store.state.map.trainDetails; + const trainDetails = store.state.map.trainDetails; // 获取当前拿到train详情 对比 移除 if (trainDetails) { if (newEm.deviceType != deviceType.Train || trainDetails.code != newEm.deviceCode) { var instance = (this.$jmap.getDeviceByCode(trainDetails.code) || {} ).instance; @@ -285,7 +285,7 @@ class MouseController extends Eventful { } }); this.deviceList = includeDeviceList; - store.dispatch('map/setSeclectDeviceList', this.deviceList); + store.dispatch('map/setSeclectDeviceList', this.deviceList); // 给store设置框选的 model } // 生成包围盒对象坐标 createFakeBoundingRect(instance) { diff --git a/src/jmapNew/shape/Signal/index.js b/src/jmapNew/shape/Signal/index.js index e58f575a2..9cabd52e6 100644 --- a/src/jmapNew/shape/Signal/index.js +++ b/src/jmapNew/shape/Signal/index.js @@ -36,6 +36,12 @@ class Signal extends Group { y: 0 }; } + if (!model.positionPoint.x) { + model.positionPoint.x = 0; + } + if (!model.positionPoint.y) { + model.positionPoint.y = 0; + } this.cbtcStatus = ''; this.create(); this.createMouseEvent(); @@ -53,6 +59,12 @@ class Signal extends Group { const drict = this.model.right ? 1 : -1; // 朝向 左:右 const posit = this.model.positionType == '01' ? -1 : 1; // 位置 上:下 + model.position.x = Number(model.position.x); + model.position.y = Number(model.position.y); + model.positionPoint.x = Number(model.positionPoint.x); + model.positionPoint.y = Number(model.positionPoint.y); + model.namePosition.x = Number(model.namePosition.x); + model.namePosition.y = Number(model.namePosition.y); // 信号机高柱矮柱 (信号机底座) this.sigPost = new ESigPost({ zlevel: this.zlevel, diff --git a/src/jmapNew/shape/Train/index.js b/src/jmapNew/shape/Train/index.js index d87469e5a..ce12503eb 100644 --- a/src/jmapNew/shape/Train/index.js +++ b/src/jmapNew/shape/Train/index.js @@ -214,7 +214,7 @@ export default class Train extends Group { setDirectionType(right, flag) { if (this.style.Train.trainStatusStyle.directionType.length > 0) { this.style.Train.trainStatusStyle.directionType.forEach((item) => { - if (right === item.type) { + if (right == item.type) { let lineLShow = item.lineLShow; let arrowLShow = item.arrowLShow; let lineRShow = item.lineRShow; @@ -238,7 +238,7 @@ export default class Train extends Group { setDirectionStopType(right) { if (this.style.Train.trainStatusStyle.directionStopType.length > 0) { this.style.Train.trainStatusStyle.directionStopType.forEach((item) => { - if (right === item.type) { + if (right == item.type) { if (this.style.Train.trainHead.directionStopType == 'special') { this.trainL && this.trainL.setArrowShow(item.lineLShow); this.trainR && this.trainR.setArrowShow(item.lineRShow); diff --git a/src/jmapNew/theme/components/utils/menuOperate.js b/src/jmapNew/theme/components/utils/menuOperate.js index 9448884b8..b3b834b51 100644 --- a/src/jmapNew/theme/components/utils/menuOperate.js +++ b/src/jmapNew/theme/components/utils/menuOperate.js @@ -400,6 +400,13 @@ export const menuOperate = { }; +/** + * 发送请求参数 + * @param {*} operate + * @param {*} paramList 请求参数 + * @param {*} over 0为首次操作,1为中间操作,2为最后操作,3为直接一次性操作 + * @param {*} val 教学模式val 校验模式判断 + */ export function commitOperate(operate, paramList, over, val) { const step = { start: true, @@ -408,7 +415,6 @@ export function commitOperate(operate, paramList, over, val) { }; if (val) { step.val = val; } step.param = paramList; - // over 0为首次操作,1为中间操作,2为最后操作,3为直接一次性操作 if (over == 0 || over == 3) { const codeList = Object.values(paramList); step.code = codeList[0]; diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue index c8fe65d30..37e5e560b 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue @@ -179,10 +179,7 @@ export default { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; }, title() { - if ( this.operation == OperationEvent.Section.alxeEffective.menu.operation || this.operation == OperationEvent.Switch.alxeEffective.menu.operation ) { - return '确认计轴恢复工作'; - } - return ''; + return '确认计轴恢复工作'; } }, watch: { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue index 2d8914afc..93b1e6f44 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/setFault.vue @@ -35,7 +35,7 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import OperationHandler from '@/scripts/cmdPlugin/OperationHandler'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; -import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; +import { commitOperate } from '@/jmapNew/theme/components/utils/menuOperate'; import { deviceFaultType, deviceType} from '@/scripts/cmdPlugin/Config'; export default { diff --git a/src/views/newMap/newMapdraft/mapoperate/config/list.vue b/src/views/newMap/newMapdraft/mapoperate/config/list.vue index 36130d4a6..034167b6f 100644 --- a/src/views/newMap/newMapdraft/mapoperate/config/list.vue +++ b/src/views/newMap/newMapdraft/mapoperate/config/list.vue @@ -1,8 +1,8 @@