From a6ff9e2c08ba6a81cbe987937ece6a408ae362a8 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 16 Sep 2019 19:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en/error.js | 4 +- src/i18n/langs/en/menu.js | 128 +++++++++++++++-- src/i18n/langs/en/rules.js | 8 +- src/i18n/langs/en/tip.js | 16 ++- src/i18n/langs/zh/error.js | 4 +- src/i18n/langs/zh/menu.js | 131 ++++++++++++++++-- src/i18n/langs/zh/rules.js | 8 +- src/i18n/langs/zh/tip.js | 16 ++- .../dialog/childDialog/confirmControl.vue | 8 +- .../menus/dialog/routeCmdControl.vue | 74 +++++----- .../fuzhou_01/menus/dialog/routeControl.vue | 30 ++-- .../fuzhou_01/menus/dialog/routeDetail.vue | 22 +-- .../menus/dialog/routeHandControl.vue | 28 ++-- .../fuzhou_01/menus/dialog/routeLock.vue | 18 +-- .../fuzhou_01/menus/dialog/routeSelection.vue | 22 +-- .../menus/dialog/sectionCmdControl.vue | 78 +++++------ .../fuzhou_01/menus/dialog/sectionControl.vue | 16 +-- .../menus/dialog/speedCmdControl.vue | 96 ++++++------- .../menus/dialog/standBackStrategy.vue | 36 ++--- .../fuzhou_01/menus/dialog/standControl.vue | 18 +-- .../fuzhou_01/menus/dialog/standDetail.vue | 40 +++--- .../menus/dialog/standDetainTrainAll.vue | 22 +-- .../fuzhou_01/menus/dialog/standRunLevel.vue | 28 ++-- .../fuzhou_01/menus/dialog/standStopTime.vue | 32 ++--- .../menus/dialog/stationCmdControl.vue | 72 +++++----- .../menus/dialog/stationHumanControlAll.vue | 8 +- .../dialog/stationSetRouteControlAll.vue | 14 +- .../menus/dialog/switchCmdControl.vue | 74 +++++----- .../fuzhou_01/menus/dialog/switchControl.vue | 26 ++-- .../fuzhou_01/menus/dialog/trainControl.vue | 38 ++--- .../fuzhou_01/menus/dialog/trainCreate.vue | 22 +-- .../fuzhou_01/menus/dialog/trainDelete.vue | 10 +- .../menus/dialog/trainEditNumber.vue | 12 +- .../fuzhou_01/menus/dialog/trainMove.vue | 36 ++--- .../fuzhou_01/menus/dialog/trainSwitch.vue | 40 +++--- src/views/jlmap3d/drive/sceneview/mmiview.vue | 2 +- 36 files changed, 749 insertions(+), 488 deletions(-) diff --git a/src/i18n/langs/en/error.js b/src/i18n/langs/en/error.js index f820c8816..bdbc822f5 100644 --- a/src/i18n/langs/en/error.js +++ b/src/i18n/langs/en/error.js @@ -89,5 +89,7 @@ export default { destroyedRoomFailed: 'Destroyed room failed!', exceededTheTotalNumberOfAssignableRoles: 'The number of assigned roles has exceeded the total number of assignable roles!', getRunGraphDataFailed: 'Failed to get run graph data', - getStationListFail: 'Failed to get station list' + getStationListFail: 'Failed to get station list', + obtainTrainGroupNumberFailed: 'Failed to obtain train group number', + getTrainListFailed: 'Failed to get train list' }; diff --git a/src/i18n/langs/en/menu.js b/src/i18n/langs/en/menu.js index 9ee5c7981..78d184960 100644 --- a/src/i18n/langs/en/menu.js +++ b/src/i18n/langs/en/menu.js @@ -43,7 +43,9 @@ export default { axisPreReset: 'Axis PreReset', createTrain: 'Create Train', setFault: 'Set Fault', - cancelFault: 'Cancel Fault' + cancelFault: 'Cancel Fault', + orbitalSectionActive: 'Orbital section active', + orbitalSectionResection: 'Orbital section resection' }, menuSignal: { routeSelect: 'Route Select', @@ -62,7 +64,9 @@ export default { atsAutoControl: 'ATS Auto Control', queryRouteControlMode: 'Query Route Control Mode', setFault: 'Set Fault', - cancelFault: 'Cancel Fault' + cancelFault: 'Cancel Fault', + cancelTheTrainApproach: 'Cancel the train approach', + reopenTrainSignal: 'Re-open train signal' }, menuStation: { fullSiteSetInterlockAutoTrigger: 'Full Site Set Interlock Auto Trigger', @@ -90,7 +94,10 @@ export default { setStopTime: 'Set Stop Time', setFault: 'Set Fault', cancelFault: 'Cancel Fault', - cancelDetainTrainAll: 'All Cancel Detain Train' + cancelDetainTrainAll: 'All Cancel Detain Train', + cancelJumpStopAll: 'All Cancel Jump Stop', + earlyDeparture: 'Early departure', + setJumpStop: 'Set jump stop' }, menuSwitch: { switchLock: 'Switch Lock', @@ -105,7 +112,10 @@ export default { switchSectionSetSpeedLimit: 'Switch Section Set Speed Limit', switchSectionCancelSpeedLimit: 'Switch Section Cancel Speed Limit', setFault: 'Set Fault', - cancelFault: 'Cancel Fault' + cancelFault: 'Cancel Fault', + switchMalfunctionUnlock: 'Switch Malfunction Unlock', + switchBlockade: 'Switch Blockade', + switchForcedPull: 'Switch Forced Pull' }, menuTrain: { addTrainId: 'Add Train Identifier', @@ -116,7 +126,7 @@ export default { switchTrainId: 'Switch Train Identifier', setCommunicationFault: 'Set Communication Fault', cancelCommunicationFault: 'Cancel Communication Fault', - confirmRunToFrontStation: 'Confirm Run To Front Station', + confirmRunToFrontStation: 'Confirm Run To Front Station' }, platform: 'Platform', arrivalTime: 'Arrival time', @@ -184,17 +194,115 @@ export default { description: 'Description', modifyTask: 'Modify task', accessSetting: 'Access setting', - signalOff: 'SignalOff', - signalReopening: 'Signal reopening', cancelTheWay: 'Cancel the way', approachManualControl: 'Approach manual control', accessToATSAutomaticControl: 'Access to ATS automatic control', - setTheRunLevel: 'Set the run level', - setTheFoldbackStrategy: 'Set the foldback strategy', turnoutSettingSpeedLimit: 'Turnout setting speed limit', turnoutCancelsSpeedLimit: 'Turnout cancels speed limit', signalDeblocking: 'Signal deblocking', in: 'In the', signalConfirmed: 'signal, the signal is unlocked, is it confirmed?', - commandInformation: 'Command information' + sectionSetLimitPrefix: 'section, the section is set to a speed limit of', + sectionCancelLimitPrefix: 'section, the section cancels the speed limit of', + switchSetLimitPrefix: 'switch, the switch is set a speed limit of', + switchCancelLimitPrefix: 'switch, this switch cancels the speed limit of', + sectionLimitSuffix: '5km/h. Is it confirmed?', + commandInformation: 'Command information', + type: 'Type', + signalName: 'Signal name', + serialNumber2: 'Serial number', + time: 'Time', + implementationProcess: 'Implementation process', + executionResult: 'The execution result', + release: 'Release', + firstConfirm: 'First confirm', + secondConfirm: 'Second confirm', + suspend: 'Suspend', + clickReleaseCommand: 'Click release command', + clickFirstConfirm: 'Click to first confirm', + clickSecondConfirm: 'Click to second confirm', + clickSuspend: 'Click to suspend', + signal: 'signal', + startSignal: 'Start signal', + routeList: 'Route list', + route: 'Route', + controlState: 'Control state', + automatic: 'Automatic (no conflict detection)', + artificial: 'Artificial', + queryAccessControlMode: 'Query access control mode', + automatic2: 'Automatic', + conflictCheck: 'Conflict check', + listOfSignalButtons: 'Signal button list', + buttonName: 'Button name', + buttonStatus: 'Button status', + blockSignalButton: 'Block signal button', + unblocked: 'Unblocked', + blocked: 'Blocked', + protectionSection: 'Protection section', + allowSelection: 'Allow selection', + notAllowSelection: 'Not allowed selection', + sectionName: 'Section name', + section: 'section', + speedLimitValue: 'Speed limit value', + switchName: 'Switch name', + clickToClose: 'Click to close', + stationStandStatus: 'Station stand status', + upDirection: 'Up direction', + downDirection: 'Down direction', + switchbackStation: 'Switchback station', + switchbackPlatform: 'Switchback platform', + switchbackStrategy: 'Switchback strategy', + switchbackStrategyTip: 'Tip: The switchback strategy is not set', + setSwitchbackStrategyTipPrefix: 'Tip: Check the station', + setSwitchbackStrategyTipSuffix: 'setting to run the switchback strategy', + setSwitchbackStrategy: 'Set switchback strategy', + noSwitchback: 'No switchback', + noOneSwitchback: 'No one switchback', + automaticChange: 'Automatic change', + default: 'Default', + item: 'Item', + stationDetainTrain: 'Station detain train', + hasBeenSet: 'Has been set', + notSet: 'Not set', + to: 'to', + downSwitchbackStrategy: 'Down switchback strategy', + range: 'Range', + uplinkBroadly: 'Uplink broadly', + downlinkBroadly: 'Downlink broadly', + detainTrainStationList: 'Detain train station list (center setting)', + allStationsHaveNoDetainTrainStatus: 'All stations have no detain train status!', + detainTrainStation: 'Detain train station', + intervalRunningTime: 'Interval running time', + alwaysEffective: 'Always effective', + setRunLevelTip: 'Tip: The next station to set the run level is not selected.', + setRunLevelStationTip: 'Tip: Check the next station to set the run level to', + runTimeAutomatically: 'Run time automatically', + runningTimeIs: 'Running time is', + effectiveFrequencyIs: 'Effective frequency is', + onceEffective: 'Once effective', + platformName: 'Platform name', + controlMode: 'Control mode', + effectiveNumber: 'Effective number', + stopTimeIs: 'Stop time is', + fullConcentrationStationAccessManualControl: 'Full concentration station access manual control', + concentratedStationName: 'Concentrated station name', + checkConflict: 'Check conflict', + notCheckConflict: 'Not check conflict', + fullConcentrationStationSettingAccessControlMode: 'All centralized station setting access control mode', + switch: 'Switch', + activation: 'Activation', + resection: 'Resection', + groupNumber: 'Group number', + planTrain: 'Plan train', + headCodeTrain: 'Head code train', + artificialTrain: 'Artificial train', + targetCode: 'Target code', + train: 'Train', + trainDirection: 'Train direction', + up: 'up', + down: 'down', + settingTrain: 'Setting train', + sourceTrainWindow: 'Source train window', + trainWindow: 'Train window', + targetTrainWindow: 'Target train window' }; diff --git a/src/i18n/langs/en/rules.js b/src/i18n/langs/en/rules.js index f5a40c23f..e6f0cc639 100644 --- a/src/i18n/langs/en/rules.js +++ b/src/i18n/langs/en/rules.js @@ -260,5 +260,11 @@ export default { pleaseSelectTemplateRunGraph: 'Please select a template to run the diagram', selectTheRunningDiagramToBeLoaded: 'Please select the running diagram to be loaded', selectOneOrMoreDates: 'Select one or more dates', - selectAPlannedDateRange: 'Please select a planned date range' + selectAPlannedDateRange: 'Please select a planned date range', + selectGroupNumber: 'Please select group number', + selectATrainType: 'Please select a train type', + enterTheServiceNumber: 'Please enter the service number', + enterTheTripNumber: 'Please enter the trip number', + enterTheTargetCode: 'Please enter the target code', + selectStation: 'Please select station' }; diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js index a7e03fabd..fbe891718 100644 --- a/src/i18n/langs/en/tip.js +++ b/src/i18n/langs/en/tip.js @@ -152,5 +152,19 @@ export default { createRunChartPlanSuccessfully: 'Create a run chart plan successfully', createRunChartPlanFailed: 'Create run chart plan failed', deleteTheRunningGraphLoadedTheNextDay: 'This operation will delete the running graph loaded the next day, will it continue?', - commandFailed: 'Command failed' + commandFailed: 'Command failed', + releaseTip: 'Please click the "release" button to issue the order!', + firstConfirmTip: 'Please click the "First confirm" button to confirm the order!', + executionSucceed: 'Execution succeed', + executionFailed: 'Execution failed', + executionException: 'Execution exception', + secondConfirmTip: 'Please click the "Second confirm" button to confirm the order!', + confirmedSuccess: 'Confirmed success', + cancelSuccess: 'Cancel success', + signalModeToManualModeTipPrefix: 'Cancel the approach starting with the signal', + signalModeToManualModeTipSuffix: ', the way will be changed from automatic signal mode to manual mode!', + selectAPieceOfData: 'Please select a piece of data', + selectSpeedLimitValueTip: 'Please select the speed limit value, click the "release" button, and issue the command!', + addTrainIdTip: 'Add train identification number: successful', + editTrainIdTip: 'Modify train identification number: successful' }; diff --git a/src/i18n/langs/zh/error.js b/src/i18n/langs/zh/error.js index 3bfd295fe..2c53da998 100644 --- a/src/i18n/langs/zh/error.js +++ b/src/i18n/langs/zh/error.js @@ -89,5 +89,7 @@ export default { destroyedRoomFailed: '销毁房间失败!', exceededTheTotalNumberOfAssignableRoles: '分配角色数量已超过可分配角色总数!', getRunGraphDataFailed: '获取运行图数据失败', - getStationListFail: '获取车站列表失败' + getStationListFail: '获取车站列表失败', + obtainTrainGroupNumberFailed: '获取列车车组号失败', + getTrainListFailed: '获取列车列表失败' }; diff --git a/src/i18n/langs/zh/menu.js b/src/i18n/langs/zh/menu.js index 4c2c11630..d218dbc2d 100644 --- a/src/i18n/langs/zh/menu.js +++ b/src/i18n/langs/zh/menu.js @@ -43,7 +43,9 @@ export default { axisPreReset: '计轴预复位', createTrain: '新建列车', setFault: '设置故障', - cancelFault: '取消故障' + cancelFault: '取消故障', + orbitalSectionActive: '轨道区段激活', + orbitalSectionResection: '轨道区段切除' }, menuSignal: { routeSelect: '进路选排', @@ -62,7 +64,9 @@ export default { atsAutoControl: '自排开', queryRouteControlMode: '查询进路控制模式', setFault: '设置故障', - cancelFault: '取消故障' + cancelFault: '取消故障', + cancelTheTrainApproach: '取消列车进路', + reopenTrainSignal: '重开列车信号' }, menuStation: { fullSiteSetInterlockAutoTrigger: '全站设置联锁自动触发', @@ -87,7 +91,10 @@ export default { setStopTime: '设置停站时间', setFault: '设置故障', cancelFault: '取消故障', - cancelDetainTrainAll: '全线取消扣车' + cancelDetainTrainAll: '全线取消扣车', + cancelJumpStopAll: '全线取消跳停', + earlyDeparture: '提前发车', + setJumpStop: '设置跳停' }, menuSwitch: { switchLock: '道岔单锁', @@ -102,7 +109,10 @@ export default { switchSectionSetSpeedLimit: '道岔区段设置限速', switchSectionCancelSpeedLimit: '道岔区段取消限速', setFault: '设置故障', - cancelFault: '取消故障' + cancelFault: '取消故障', + switchMalfunctionUnlock: '道岔故障解锁', + switchBlockade: '道岔封锁', + switchForcedPull: '道岔强扳' }, menuTrain: { addTrainId: '添加列车识别号', @@ -113,7 +123,7 @@ export default { switchTrainId: '交换列车识别号', setCommunicationFault: '设置通信故障', cancelCommunicationFault: '取消通信故障', - confirmRunToFrontStation: '确认运行至前方站', + confirmRunToFrontStation: '确认运行至前方站' }, platform: '站台', arrivalTime: '到点', @@ -181,18 +191,117 @@ export default { description: '描述', modifyTask: '修改任务', accessSetting: '进路设置', - signalOff: '信号关灯', - signalReopening: '信号重开', cancelTheWay: '取消进路', approachManualControl: '进路交人工控', accessToATSAutomaticControl: '进路交ATS自动控', - setTheRunLevel: '设置运行等级', - setTheFoldbackStrategy: '设置折返策略', turnoutSettingSpeedLimit: '道岔设置限速', turnoutCancelsSpeedLimit: '道岔取消限速', signalDeblocking: '信号解封', in: '在', signalConfirmed: '信号机,信号解锁,确认下达吗?', - commandInformation: '命令信息' - + sectionSetLimitPrefix: '区段,区段设置限速', + sectionCancelLimitPrefix: '区段,区段取消限速', + switchSetLimitPrefix: '道岔,道岔设置限速', + switchCancelLimitPrefix: '道岔,道岔取消限速', + sectionLimitSuffix: 'km/h,确认下达吗?', + commandInformation: '命令信息', + type: '类型', + signalName: '信号机名称', + serialNumber2: '序号', + time: '时间', + implementationProcess: '执行过程', + executionResult: '执行结果', + release: '下达', + firstConfirm: '确认1', + secondConfirm: '确认2', + suspend: '中止', + clickReleaseCommand: '点击下达命令', + clickFirstConfirm: '点击确认1', + clickSecondConfirm: '点击确认2', + clickSuspend: '点击终止', + signal: '信号机', + startSignal: '始端信号机', + routeList: '进路列表', + route: '进路', + controlState: '控制状态', + automatic: '自动(不进行冲突检测)', + artificial: '人工', + queryAccessControlMode: '查询进路控制模式', + automatic2: '自动', + conflictCheck: '冲突检查', + listOfSignalButtons: '信号按钮列表', + buttonName: '按钮名称', + buttonStatus: '按钮状态', + blockSignalButton: '封锁信号按钮', + unblocked: '未封锁', + blocked: '封锁', + protectionSection: '保护区段', + allowSelection: '允许选排', + notAllowSelection: '不允许选排', + sectionName: '区段名称', + section: '区段', + speedLimitValue: '限速值', + switchName: '道岔名称', + clickToClose: '点击关闭', + stationStandStatus: '站台状态', + upDirection: '上行方向', + downDirection: '下行方向', + switchbackStation: '折返站', + switchbackPlatform: '折返站台', + switchbackStrategy: '折返策略', + switchbackStrategyTip: '提示: 未设置折返策略', + setSwitchbackStrategyTipPrefix: '提示: 选中站台', + setSwitchbackStrategyTipSuffix: '设置运行折返策略', + setSwitchbackStrategy: '设置折返策略', + noSwitchback: '无折返', + noOneSwitchback: '无人折返', + automaticChange: '自动换端', + default: '默认', + item: '项目', + stationDetainTrain: '车站扣车', + centerDetainTrain: '中心扣车', + hasBeenSet: '已设置', + notSet: '未设置', + to: '至', + downSwitchbackStrategy: '下行折返策略', + range: '范围', + uplinkBroadly: '上行全线', + downlinkBroadly: '下行全线', + detainTrainStationList: '扣车站台列表(中心设置)', + allStationsHaveNoDetainTrainStatus: '所有站台都无扣车状态!', + detainTrainStation: '扣车站台', + nextPlatform: '下一站台', + intervalRunningTime: '区间运行时间', + alwaysEffective: '一直有效', + setRunLevelTip: '提示: 未选中要设置运行等级的下一站台。', + setRunLevelStationTip: '提示: 选中要设置运行等级的下一站台为', + runTimeAutomatically: '运行时间自动', + runningTimeIs: '运行时间为', + effectiveFrequencyIs: '有效次数为', + onceEffective: '一次有效', + platformName: '站台名称', + controlMode: '控制方式', + effectiveNumber: '有效次数', + stopTimeIs: '停站时间为', + fullConcentrationStationAccessManualControl: '全集中站进路交人工控', + concentratedStationName: '集中站名称:', + checkConflict: '检查冲突', + notCheckConflict: '不检查冲突', + fullConcentrationStationSettingAccessControlMode: '全集中站设置进路控制模式', + switch: '道岔', + activation: '激活', + resection: '切除', + groupNumber: '车组号', + planTrain: '计划车', + headCodeTrain: '头码车', + artificialTrain: '人工车', + targetCode: '目的地号', + train: '列车', + trainDirection: '列车方向', + up: '上行', + down: '下行', + settingTrain: '设置列车', + sourceTrainWindow: '源车次窗', + trainWindow: '车次窗', + targetTrainWindow: '目的车次窗' }; diff --git a/src/i18n/langs/zh/rules.js b/src/i18n/langs/zh/rules.js index e6a0b59da..172dd7090 100644 --- a/src/i18n/langs/zh/rules.js +++ b/src/i18n/langs/zh/rules.js @@ -271,5 +271,11 @@ export default { pleaseSelectTemplateRunGraph: '请选择模板运行图', selectTheRunningDiagramToBeLoaded: '请选择需要加载的运行图', selectOneOrMoreDates: '选择一个或多个日期', - selectAPlannedDateRange: '请选择计划日期范围' + selectAPlannedDateRange: '请选择计划日期范围', + selectGroupNumber: '请选择车组号', + selectATrainType: '请选择一个列车类型', + enterTheServiceNumber: '请输入表号', + enterTheTripNumber: '请输入车次号', + enterTheTargetCode: '请输入目的地号', + selectStation: '请选择车站' }; diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js index a92b07dce..9c412700c 100644 --- a/src/i18n/langs/zh/tip.js +++ b/src/i18n/langs/zh/tip.js @@ -156,5 +156,19 @@ export default { createRunChartPlanSuccessfully: '创建运行图计划成功', createRunChartPlanFailed: '创建运行图计划失败', deleteTheRunningGraphLoadedTheNextDay: '此操作将删除次日加载的运行图, 是否继续?', - commandFailed: '命令下达失败' + commandFailed: '命令下达失败', + releaseTip: '请点击“下达”按钮,下达命令!', + firstConfirmTip: '请点击“确认1”按钮,确认命令!', + executionSucceed: '执行成功', + executionFailed: '执行失败', + executionException: '执行异常', + secondConfirmTip: '请点击“确认2”按钮,确认命令!', + confirmedSuccess: '确认成功', + cancelSuccess: '取消成功', + signalModeToManualModeTipPrefix: '取消以信号机', + signalModeToManualModeTipSuffix: '为始端的进路,该进路即将由自动信号模式转为人工模式!', + selectAPieceOfData: '请选择一条数据', + selectSpeedLimitValueTip: '请选择限速值后,点击“下达”按钮,下达命令!', + addTrainIdTip: '添加列车识别号:成功', + editTrainIdTip: '修改列车识别号:成功' }; diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/childDialog/confirmControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/childDialog/confirmControl.vue index 678384b32..00c962fdd 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/childDialog/confirmControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/childDialog/confirmControl.vue @@ -44,9 +44,9 @@ if (this.operation === OperationEvent.Signal.arrangementRoute.menu.operation) { return this.$t('menu.accessSetting'); } else if (this.operation === OperationEvent.Signal.signalClose.menu.operation) { - return this.$t('menu.signalOff'); + return this.$t('menu.menuSignal.signalOff'); } else if (this.operation === OperationEvent.Signal.reopenSignal.menu.operation) { - return this.$t('menu.signalReopening'); + return this.$t('menu.menuSignal.signalReopen'); } else if (this.operation === OperationEvent.Signal.cancelTrainRoute.menu.operation) { return this.$t('menu.cancelTheWay'); } else if (this.operation === OperationEvent.Signal.humanControl.menu.operation) { @@ -54,11 +54,11 @@ } else if (this.operation === OperationEvent.Signal.atsAutoControl.menu.operation) { return this.$t('menu.accessToATSAutomaticControl'); } else if (this.operation === OperationEvent.StationStand.setRunLevel.menu.operation) { - return this.$t('menu.setTheRunLevel'); + return this.$t('menu.menuStationStand.setRunLevel'); } else if (this.operation === OperationEvent.StationStand.setStopTime.menu.operation) { return this.$t('menu.stopTime'); } else if (this.operation === OperationEvent.StationStand.setBackStrategy.menu.operation) { - return this.$t('menu.setTheFoldbackStrategy'); + return this.$t('menu.setSwitchbackStrategy'); } }, domIdCancel() { diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/routeCmdControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/routeCmdControl.vue index ff2b3f121..82917b2f1 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/routeCmdControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/routeCmdControl.vue @@ -7,7 +7,7 @@ - + @@ -16,12 +16,12 @@ - + - + @@ -30,34 +30,34 @@ - + - + - + - + {{message}} - 下达{{$t('menu.release')}}({{timeCountCommand}}) - 确认1 + {{$t('menu.firstConfirm')}} - 确认2{{$t('menu.secondConfirm')}}({{timeCountConfirm}}) - 中止 + {{$t('menu.suspend')}} - 关闭 + {{$t('global.close')}} @@ -96,8 +96,8 @@ computed: { typeList() { return [ - { code: OperationEvent.Signal.unlock.menu.operation, name: '信号解封' }, - { code: OperationEvent.Signal.guide.menu.operation, name: '办理引导进路' } + { code: OperationEvent.Signal.unlock.menu.operation, name: this.$t('menu.menuSignal.signalDeblock') }, + { code: OperationEvent.Signal.guide.menu.operation, name: this.$t('menu.menuSignal.guideRouteHandle') } ] }, show() { @@ -225,7 +225,7 @@ } this.dialogShow = true; this.stpDisabled = true; - this.setMessage('请点击“下达”按钮,下达命令!'); + this.setMessage(this.$t('tip.releaseTip')); this.$nextTick(function () { this.$store.dispatch('training/emitTipFresh'); }); @@ -253,8 +253,8 @@ operate.operation = OperationEvent.Signal.unlock.order.operation } - this.setMessage('请点击“确认1”按钮,确认命令!'); - this.writeRecord({ order: ++this.order, date: now(), context: '点击下达命令', result: '' }); + this.setMessage(this.$t('tip.firstConfirmTip')); + this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' }); this.$store.dispatch('training/next', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); @@ -274,18 +274,18 @@ operate.operation = OperationEvent.Signal.guide.order.operation } - this.setMessage('请点击“确认1”按钮,确认命令!'); - this.writeRecord({ order: ++this.order, date: now(), context: '点击下达命令', result: '' }); + this.setMessage(this.$t('tip.firstConfirmTip')); + this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' }); this.$store.dispatch('training/next', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.setButtonEnable({ step: 1 }); - this.editRecord({ order: this.order, date: now(), context: '点击下达命令', result: '执行成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionSucceed') }); } else { - this.editRecord({ order: this.order, date: now(), context: '点击下达命令', result: '执行失败' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionFailed') }); } }).catch(() => { - this.editRecord({ order: this.order, date: now(), context: '点击下达命令', result: '执行异常' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.executionException') }); }) }, confirm1() { @@ -301,20 +301,20 @@ operate.operation = OperationEvent.Signal.guide.confirm1.operation; } - this.setMessage('请点击“确认2”按钮,确认命令!'); - this.writeRecord({ order: ++this.order, date: now(), context: '点击确认1', result: '' }); + this.setMessage(this.$t('tip.secondConfirmTip')); + this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: '' }); this.$store.dispatch('training/next', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.timeCountCommand = -1; this.timeCountConfirm = 10; this.setButtonEnable({ step: 2 }); - this.editRecord({ order: this.order, date: now(), context: '点击确认1', result: '执行成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionSucceed') }); } else { - this.editRecord({ order: this.order, date: now(), context: '点击确认1', result: '执行失败' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionFailed') }); } }).catch(() => { - this.editRecord({ order: this.order, date: now(), context: '点击确认1', result: '执行异常' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: this.$t('tip.executionException') }); }) }, confirm2() { @@ -331,22 +331,22 @@ operate.operation = OperationEvent.Signal.guide.confirm2.operation; } this.setMessage(''); - this.writeRecord({ order: ++this.order, date: now(), context: '点击确认2', result: '' }); + this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: '' }); this.$store.dispatch('training/next', operate).then(({ valid }) => { this.timeCountCommand = -1; this.timeCountConfirm = -1; this.setButtonEnable({ step: -1 }); if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); - this.editRecord({ order: this.order, date: now(), context: '点击确认2', result: '执行成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionSucceed') }); } else { - this.editRecord({ order: this.order, date: now(), context: '点击确认2', result: '执行失败' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionFailed') }); } }).catch(() => { this.timeCountCommand = -1; this.timeCountConfirm = -1; this.setButtonEnable({ step: -1 }); - this.editRecord({ order: this.order, date: now(), context: '点击确认2', result: '执行异常' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: this.$t('tip.executionException') }); }) }, stop() { @@ -363,17 +363,17 @@ } - this.writeRecord({ order: ++this.order, date: now(), context: '点击终止', result: '' }); + this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSuspend'), result: '' }); this.$store.dispatch('training/next', operate).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.setButtonEnable({ step: 0 }); - this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionSucceed') }); } else { - this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行失败' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionFailed') }); } }).catch(error => { - this.editRecord({ order: this.order, date: now(), context: '点击终止', result: '执行异常' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickSuspend'), result: this.$t('tip.executionException') }); }) }, close() { @@ -398,9 +398,9 @@ this.setButtonEnable(operate); if (operate.success) { this.timeCountCommand = 30; - this.editRecord({ order: this.order, date: now(), context: '点击下达命令', result: '确认成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.confirmedSuccess') }); } else { - this.editRecord({ order: this.order, date: now(), context: '点击下达命令', result: '取消成功' }); + this.editRecord({ order: this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: this.$t('tip.cancelSuccess') }); } } }, diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/routeControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/routeControl.vue index 59cbc1868..0281c9585 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/routeControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/routeControl.vue @@ -2,8 +2,8 @@ - 车站名称 - 信号机 + {{$t('menu.stationName')}} + {{$t('menu.signal')}} @@ -15,10 +15,10 @@ - 确定 + {{$t('menu.confirm')}} - 取 消 + {{$t('menu.cancel')}} @@ -60,19 +60,19 @@ }, title() { if (this.operation == OperationEvent.Signal.cancelTrainRoute.menu.operation) { - return '取消列车进路'; + return this.$t('menu.menuSignal.cancelTheTrainApproach'); } else if (this.operation == OperationEvent.Signal.signalClose.menu.operation) { - return '信号关灯'; + return this.$t('menu.menuSignal.signalOff'); } else if (this.operation == OperationEvent.Signal.reopenSignal.menu.operation) { - return '重开列车信号'; + return this.$t('menu.menuSignal.reopenTrainSignal'); } else if (this.operation == OperationEvent.Signal.setAutoInterlock.menu.operation) { - return '设置联锁自动进路'; + return this.$t('menu.menuSignal.setInterlockAutoRoute'); } else if (this.operation == OperationEvent.Signal.cancelAutoInterlock.menu.operation) { - return '取消联锁自动进路'; + return this.$t('menu.menuSignal.cancelInterlockAutoRoute'); } else if (this.operation == OperationEvent.Signal.setAutoTrigger.menu.operation) { - return '设置联锁自动触发'; + return this.$t('menu.menuSignal.setInterlockAutoTrigger'); } else if (this.operation == OperationEvent.Signal.cancelAutoTrigger.menu.operation) { - return '取消联锁自动触发'; + return this.$t('menu.menuSignal.cancelInterlockAutoTrigger'); } } }, @@ -165,7 +165,7 @@ let operate = { type: MapDeviceType.Signal.type, operation: OperationEvent.Signal.cancelTrainRoute.menu.operation, - messages: [`取消以信号机${this.signalName}为始端的进路,该进路即将由自动信号模式转为人工模式!`] + messages: [this.$t('tip.signalModeToManualModeTipPrefix') + this.signalName + this.$t('tip.signalModeToManualModeTipSuffix')] } this.loading = true; @@ -185,7 +185,7 @@ let operate = { type: MapDeviceType.Signal.type, operation: OperationEvent.Signal.signalClose.menu.operation, - messages: [`信号关灯: ${this.signalName}`], + messages: [this.$t('menu.menuSignal.signalOff') + this.$t('global.colon') + this.signalName], } this.loading = true; @@ -205,7 +205,7 @@ let operate = { type: MapDeviceType.Signal.type, operation: OperationEvent.Signal.reopenSignal.menu.operation, - messages: [`信号重开: ${this.signalName}`], + messages: [this.$t('menu.menuSignal.signalReopen') + this.$t('global.colon') + this.signalName], } this.loading = true; @@ -322,4 +322,4 @@ } } } - \ No newline at end of file + diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/routeDetail.vue b/src/jmap/theme/fuzhou_01/menus/dialog/routeDetail.vue index 7d7d1d3f3..9363453f6 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/routeDetail.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/routeDetail.vue @@ -3,8 +3,8 @@ - 车站名称 - 始端信号机 + {{$t('menu.stationName')}} + {{$t('menu.startSignal')}} @@ -15,28 +15,28 @@
- 进路列表 + {{$t('menu.routeList')}} - + - +
- 确定 + {{$t('global.confirm')}} - 取 消 + {{$t('global.cancel')}} @@ -77,7 +77,7 @@ return this.dialogShow ? OperationEvent.Signal.detail.menu.domId : ''; }, title() { - return '查询进路控制模式' + return this.$t('menu.queryAccessControlMode'); } }, mounted() { @@ -146,4 +146,4 @@ } } } - \ No newline at end of file + diff --git a/src/jmap/theme/fuzhou_01/menus/dialog/routeHandControl.vue b/src/jmap/theme/fuzhou_01/menus/dialog/routeHandControl.vue index f6d9a6f45..5d042ef37 100644 --- a/src/jmap/theme/fuzhou_01/menus/dialog/routeHandControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/dialog/routeHandControl.vue @@ -3,8 +3,8 @@ - 车站名称 - 始端信号机 + {{$t('menu.stationName')}} + {{$t('menu.startSignal')}} @@ -15,24 +15,24 @@
- 进路列表 + {{$t('menu.routeList')}} - + - + - +