diff --git a/src/i18n/langs/en/planMonitor.js b/src/i18n/langs/en/planMonitor.js index 6da9a7720..0185624fb 100644 --- a/src/i18n/langs/en/planMonitor.js +++ b/src/i18n/langs/en/planMonitor.js @@ -191,5 +191,40 @@ export default { serviceNumber2: 'Service number', addPlanTrain: 'Add plan train', trainRunningTimeInterval: 'Train running time interval', - sizeOfTheLoopTrainProportion: 'The size of the loop car proportion' + sizeOfTheLoopTrainProportion: 'The size of the loop car proportion', + applicationRouteSelection: 'Application route selection', + bothway: 'bothway', + up: 'up', + down: 'down', + runningInterval: 'Running interval', + addASmoothRunningTime: 'Add a smooth running time', + addToTheFront: 'Add to the front', + addToTheEnd: 'Add to the end', + crossRailway: 'Cross railway', + startingSection: 'Starting section', + description: 'Description', + section: 'Section', + departureTime: 'departureTime', + showDefaultStopTimeAndRunLevel: 'Show default stop time and run level', + automatic: 'Automatic', + default: 'Default', + addTaskHint1: 'Please set the section running time of the start section ', + addTaskHint2: 'to the section', + addTaskHint3: '', + normalNew: 'Normal new', + createFromTheReleaseRunGraph: 'Create from the release run graph', + releaseRunGraph: 'Release run graph', + newRunGraph: 'New run graph', + deleteAllPreviousTasks: 'Delete all previous tasks (including this task)', + deleteAllSubsequentTasks: 'Delete all subsequent tasks (including this task)', + forward: 'Forward', + backward: 'Backward', + frequency: 'Frequency:', + intervals: 'Intervals:', + duplicateTrain: 'Duplicate train', + commissioningTrain: 'Commissioning train', + task: 'Task', + startTime: 'Start time', + endTime: 'End time', + editPlanningTrain: 'Edit planning train' }; diff --git a/src/i18n/langs/en/rules.js b/src/i18n/langs/en/rules.js index a9ce8043b..a1c6ba18c 100644 --- a/src/i18n/langs/en/rules.js +++ b/src/i18n/langs/en/rules.js @@ -275,5 +275,7 @@ export default { inputMaxDuration: 'Please input max duration', accessNumber: 'Please input the number of permissions', courseNameEmpty: 'Course name cannot be empty', - purchaseMonth: 'Please input the number of months to buy' + purchaseMonth: 'Please input the number of months to buy', + enterTheNameOfTheRunGraph: 'Please enter the name of the run graph', + chooseToPublishTheRunGraph: 'Please choose to publish the run chart' }; diff --git a/src/i18n/langs/en/tip.js b/src/i18n/langs/en/tip.js index 29db19565..06013133e 100644 --- a/src/i18n/langs/en/tip.js +++ b/src/i18n/langs/en/tip.js @@ -183,5 +183,17 @@ export default { requestingStationDataFailed: 'Requesting station data failed', serviceNumberExistHint: 'This table number already exists. Is it mandatory to set it? (The forced setup program may be abnormal)', serviceNumberLengthHint: 'Length should be two digits', - chooseToOpenTheRunGraph: 'Please choose to open the running chart' + chooseToOpenTheRunGraph: 'Please choose to open the running chart', + addTaskSuccessfully: 'Add task successfully!', + addTaskFailed: 'Add task failed!', + createAnEmptyRunGraphSuccessfully: 'Create an empty run graph successfully!', + createARunGraphSuccessfully: 'Create a running diagram successfully!', + deleteTaskSuccessfully: 'Delete task successfully!', + deleteTaskFailed: 'Delete task failed!', + duplicatePlanSuccessful: 'Duplicate plan successful!', + duplicatePlanFailed: 'Duplicate plan failed!', + runGraphNameModifiedSuccessfully: 'Run graph name modified successfully!', + modifyRunGraphNameFailed: 'Modify run graph name failed!', + planCreationSuccessful: 'Plan creation successful!', + createPlanFailed: 'Failed to create plan!' }; diff --git a/src/i18n/langs/zh/planMonitor.js b/src/i18n/langs/zh/planMonitor.js index 132ed47c7..1231022a0 100644 --- a/src/i18n/langs/zh/planMonitor.js +++ b/src/i18n/langs/zh/planMonitor.js @@ -143,7 +143,7 @@ export default { afterTheTrainHasBackInterval: '有车回段后间隔', secondsCanBeRunnedByTrain: '秒才能用列车出段', defaultStopTime: '省缺停站时间:', - defaultRunLevel: '省缺运行灯等级:', + defaultRunLevel: '省缺运行等级:', stopTime: '停站时间', runLevel: '运行等级', platform: '站台', @@ -192,5 +192,43 @@ export default { serviceNumber2: '服务号', addPlanTrain: '添加计划车', trainRunningTimeInterval: '列车运行时间间隔', - sizeOfTheLoopTrainProportion: '大小环路分车比例' + sizeOfTheLoopTrainProportion: '大小环路分车比例', + applicationRouteSelection: '应用路线选择', + bothway: '双向', + up: '上行', + down: '下行', + runningInterval: '运行间隔', + distributionRatio: '分车比例', + addASmoothRunningTime: '添加平稳运行时段', + addToTheFront: '加在最前', + addToTheEnd: '加在最后', + crossRailway: '交路', + startingSection: '起始区段', + endingSection: '终到区段', + description: '描述', + section: '区段', + departureTime: '发点', + showDefaultStopTimeAndRunLevel: '显示默认停站时间和运行等级', + automatic: '自动', + default: '默认', + addTaskHint1: '请先设置开始区段', + addTaskHint2: '终到区段', + addTaskHint3: '的站间运行时间', + normalNew: '正常新建', + runGraphName: '运行图名称', + createFromTheReleaseRunGraph: '从发布运行图创建', + releaseRunGraph: '发布运行图', + newRunGraph: '新建运行图', + deleteAllPreviousTasks: '删除以前所有任务(包含本任务)', + deleteAllSubsequentTasks: '删除以后所有任务(包含本任务)', + forward: '向前', + backward: '向后', + frequency: '次数:', + intervals: '间隔时间:', + duplicateTrain: '复制列车', + commissioningTrain: '调试车', + task: '任务', + startTime: '起始时间', + endTime: '终到时间', + editPlanningTrain: '编辑计划车' }; diff --git a/src/i18n/langs/zh/rules.js b/src/i18n/langs/zh/rules.js index 172dd7090..7b642994f 100644 --- a/src/i18n/langs/zh/rules.js +++ b/src/i18n/langs/zh/rules.js @@ -277,5 +277,7 @@ export default { enterTheServiceNumber: '请输入表号', enterTheTripNumber: '请输入车次号', enterTheTargetCode: '请输入目的地号', - selectStation: '请选择车站' + selectStation: '请选择车站', + enterTheNameOfTheRunGraph: '请输入运行图名称', + chooseToPublishTheRunGraph: '请选择发布运行图' }; diff --git a/src/i18n/langs/zh/tip.js b/src/i18n/langs/zh/tip.js index 601dcdc09..7d518c188 100644 --- a/src/i18n/langs/zh/tip.js +++ b/src/i18n/langs/zh/tip.js @@ -183,5 +183,17 @@ export default { requestingStationDataFailed: '请求车站数据失败', serviceNumberExistHint: '本表号已存在,是否强制设置?(强制设置程序可能会出现异常)', serviceNumberLengthHint: '长度应为两位数', - chooseToOpenTheRunGraph: '请选打开运行图' + chooseToOpenTheRunGraph: '请选打开运行图', + addTaskSuccessfully: '添加任务成功!', + addTaskFailed: '添加任务失败!', + createAnEmptyRunGraphSuccessfully: '创建空运行图成功!', + createARunGraphSuccessfully: '创建运行图成功!', + deleteTaskSuccessfully: '删除任务成功!', + deleteTaskFailed: '删除任务失败!', + duplicatePlanSuccessful: '复制计划成功!', + duplicatePlanFailed: '复制计划失败!', + runGraphNameModifiedSuccessfully: '修改运行图名称成功!', + modifyRunGraphNameFailed: '修改运行图名称失败!', + planCreationSuccessful: '创建计划成功!', + createPlanFailed: '创建计划失败!' }; diff --git a/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue b/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue index d2d3ebc9b..defda51df 100644 --- a/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue +++ b/src/views/planMonitor/editTool/menus/addSmoothRunTime.vue @@ -38,38 +38,38 @@ - 大小环路分车比例: + {{$t('planMonitor.sizeOfTheLoopTrainProportion')+$t('global.colon')}} - + - 应用进路方向选择: + {{$t('planMonitor.applicationRouteSelection')+$t('global.colon')}} - 双向 - 上行 - 下行 + {{$t('planMonitor.bothway')}} + {{$t('planMonitor.up')}} + {{$t('planMonitor.down')}} - - - - + + + + - 确 定 - 取 消 + {{$t('global.confirm')}} + {{$t('global.cancel')}} @@ -93,7 +93,7 @@ export default { }, computed: { title() { - return '添加平稳运行时段'; + return this.$t('planMonitor.addASmoothRunningTime'); } }, mounted() { diff --git a/src/views/planMonitor/editTool/menus/addTask.vue b/src/views/planMonitor/editTool/menus/addTask.vue index 5fd9d911b..d9742ff6f 100644 --- a/src/views/planMonitor/editTool/menus/addTask.vue +++ b/src/views/planMonitor/editTool/menus/addTask.vue @@ -12,13 +12,13 @@ > - 加在最前 + {{$t('planMonitor.addToTheFront')}} - 车次号: + {{$t('planMonitor.tripNumber')+$t('global.colon')}} - + - 开始时间: + {{$t('global.startTime')+$t('global.colon')}} @@ -36,13 +36,13 @@ - 加在最后 + {{$t('planMonitor.addToTheEnd')}} - 缺省停站时间: + {{$t('planMonitor.defaultStopTime')+$t('global.colon')}} - + - 缺省运行等级: + {{$t('planMonitor.defaultRunLevel')+$t('global.colon')}} - + - 交路: + {{$t('planMonitor.crossRailway')+$t('global.colon')}} - + - + - + - + - + - 详情: + {{$t('global.details')+$t('global.colon')}} - + - + - - - - + + + + - 显示默认停站时间和运行等级 + {{$t('planMonitor.showDefaultStopTimeAndRunLevel')}} - 取 消 - 确 定 + {{$t('global.cancel')}} + {{$t('global.confirm')}} @@ -168,14 +168,14 @@ export default { routingList: [], arriveConfigList: [] }, - tripNumberList: [{ value: '', label: '自动' }], - defaultStopTimeList: [{ value: '', label: '默认' }], - defaultSpeedLevelList: [{ value: '', label: '默认' }] + tripNumberList: [{ value: '', label: this.$t('planMonitor.automatic') }], + defaultStopTimeList: [{ value: '', label: this.$t('planMonitor.default') }], + defaultSpeedLevelList: [{ value: '', label: this.$t('planMonitor.default') }] }; }, computed: { title() { - return '添加任务'; + return this.$t('planMonitor.addTask'); } }, watch: { @@ -240,7 +240,7 @@ export default { if (stopStationObj.runPlanLevelVO) { runTime = parseInt(stopStationObj.runPlanLevelVO[runLevel]); } else { - this.$messageBox(`请先设置开始区段 ${stopStationObj.startSectionCode} 终到区段 ${stopStationObj.endSectionCode} 的站间运行时间`); + this.$messageBox(this.$t('planMonitor.addTaskHint1')+stopStationObj.startSectionCode+this.$t('planMonitor.addTaskHint2')+stopStationObj.endSectionCode+this.$t('planMonitor.addTaskHint3')); } } } @@ -257,8 +257,8 @@ export default { list.forEach((elem, index) => { elem.arriveTime = index ? formatTime(tempTime) : ''; elem.departureTime = index == list.length - 1 ? '' : formatTime(tempTime + waitTime); - elem.stopTime = this.addModel.defaultSpeedLevel || '默认'; - elem.speedLevel = this.addModel.defaultStopTime || '默认'; + elem.stopTime = this.addModel.defaultSpeedLevel || this.$t('planMonitor.default'); + elem.speedLevel = this.addModel.defaultStopTime || this.$t('planMonitor.default'); tempTime = tempTime + waitTime + this.compuntedRunTime(list, index, runLevel); }); @@ -294,9 +294,9 @@ export default { this.$emit('dispatchOperate', { dialogName: 'openRunPlan', operate: 'loadRunPlanData', params: Object.assign({refresh: true}, this.$route.query) }); - this.$message.success('添加任务成功!'); + this.$message.success(this.$t('tip.addTaskSuccessfully')); }).catch(() => { - this.$messageBox('添加任务失败'); + this.$messageBox(this.$t('tip.addTaskFailed')); }); } diff --git a/src/views/planMonitor/editTool/menus/createEmptyPlan.vue b/src/views/planMonitor/editTool/menus/createEmptyPlan.vue index fa5cfffd8..2f2c96042 100644 --- a/src/views/planMonitor/editTool/menus/createEmptyPlan.vue +++ b/src/views/planMonitor/editTool/menus/createEmptyPlan.vue @@ -12,19 +12,19 @@ >
- + - + - + - + - + @@ -76,22 +76,22 @@ export default { }, computed: { title() { - return '新建运行图'; + return this.$t('planMonitor.newRunGraph'); }, rules() { return { name: [ - { required: true, message: '请输入运行图名称', trigger: 'blur' } + { required: true, message: this.$t('rules.enterTheNameOfTheRunGraph'), trigger: 'blur' } ] }; }, pullRules() { return { templateId: [ - { required: true, message: '请选择发布运行图', trigger: 'change' } + { required: true, message: this.$t('rules.chooseToPublishTheRunGraph'), trigger: 'change' } ], name: [ - { required: true, message: '请输入运行图名称', trigger: 'blur' } + { required: true, message: this.$t('rules.enterTheNameOfTheRunGraph'), trigger: 'blur' } ] }; } @@ -137,11 +137,11 @@ export default { this.$emit('dispatchOperate', params); // this.$emit('dispatchDialog', { name: 'openRunPlan', params: {type: 'add'} }); - this.$message.success('创建空运行图成功!'); + this.$message.success(this.$t('tip.createAnEmptyRunGraphSuccessfully')); this.jump(resp.data, this.newModel.name); this.doClose(); }).catch((error) => { - this.$messageBox('创建运行图失败:' + error.message); + this.$messageBox(this.$t('error.createOperationGraphFailed')+ this.$t('global.colon') + error.message); this.doClose(); }); } @@ -152,11 +152,11 @@ export default { this.loading = true; postCreatePlan(this.pullModel).then(resp => { // this.$emit('dispatchDialog', { name: 'openRunPlan', params: {type: 'add'} }); - this.$message.success('创建运行图成功!'); + this.$message.success(this.$t('tip.createARunGraphSuccessfully')); this.jump(resp.data, this.pullModel.name); this.doClose(); }).catch((error) => { - this.$messageBox('创建运行图失败:' + error.message); + this.$messageBox(this.$t('error.createOperationGraphFailed')+ this.$t('global.colon') + error.message); this.doClose(); }); } diff --git a/src/views/planMonitor/editTool/menus/deleteTask.vue b/src/views/planMonitor/editTool/menus/deleteTask.vue index 02ce95b1e..34985da1e 100644 --- a/src/views/planMonitor/editTool/menus/deleteTask.vue +++ b/src/views/planMonitor/editTool/menus/deleteTask.vue @@ -11,14 +11,14 @@ :close-on-click-modal="false" > - 删除以前所有任务(包含本任务) + {{$t('planMonitor.deleteAllPreviousTasks')}} - 删除以后所有任务(包含本任务) + {{$t('planMonitor.deleteAllSubsequentTasks')}} - 取 消 - 确 定 + {{$t('global.cancel')}} + {{$t('global.confirm')}} @@ -45,7 +45,7 @@ export default { }, computed: { title() { - return '删除任务'; + return this.$t('planMonitor.deleteTask'); } }, mounted() { @@ -79,9 +79,9 @@ export default { this.$emit('dispatchOperate', { dialogName: 'openRunPlan', operate: 'loadRunPlanData', params: Object.assign({refresh: true}, this.$route.query) }); - this.$message.success('删除任务成功!'); + this.$message.success(this.$t('tip.deleteTaskSuccessfully')); }).catch(() => { - this.$messageBox('删除任务失败'); + this.$messageBox(this.$t('tip.deleteTaskFailed')); }); } this.doClose(); diff --git a/src/views/planMonitor/editTool/menus/duplicateTrain.vue b/src/views/planMonitor/editTool/menus/duplicateTrain.vue index e97b3d9f1..ca981004d 100644 --- a/src/views/planMonitor/editTool/menus/duplicateTrain.vue +++ b/src/views/planMonitor/editTool/menus/duplicateTrain.vue @@ -12,26 +12,26 @@ > - 向前 - 向后 + {{$t('planMonitor.forward')}} + {{$t('planMonitor.backward')}} - 次数: + {{$t('planMonitor.frequency')}} - 间隔时间: + {{$t('planMonitor.intervals')}} - + {{$t('global.second')}} - 取 消 - 确 定 + {{$t('global.cancel')}} + {{$t('global.confirm')}} @@ -57,7 +57,7 @@ export default { }, computed: { title() { - return '复制列车'; + return this.$t('planMonitor.duplicateTrain'); } }, mounted() { @@ -79,9 +79,9 @@ export default { this.$emit('dispatchOperate', { dialogName: 'openRunPlan', operate: 'loadRunPlanData', params: Object.assign({refresh: true}, this.$route.query) }); - this.$message.success('复制计划成功!'); + this.$message.success(this.$t('tip.duplicatePlanSuccessful')); }).catch(() => { - this.$messageBox('复制计划失败'); + this.$messageBox(this.$t('tip.duplicatePlanFailed')); }); } } diff --git a/src/views/planMonitor/editTool/menus/editPlanName.vue b/src/views/planMonitor/editTool/menus/editPlanName.vue index 44b2fbe71..d720c4a7b 100644 --- a/src/views/planMonitor/editTool/menus/editPlanName.vue +++ b/src/views/planMonitor/editTool/menus/editPlanName.vue @@ -13,15 +13,15 @@
- +
- 修改 - {{ $t('map.cancel') }} + {{$t('global.modify')}} + {{ $t('global.cancel') }} @@ -47,12 +47,12 @@ export default { }, computed: { title() { - return '修改运行图名称'; + return this.$t('planMonitor.modifyRunningDiagramName'); }, rules() { return { name: [ - { required: true, message: '请输入运行图名称', trigger: 'blur' } + { required: true, message: this.$t('rules.enterTheNameOfTheRunGraph'), trigger: 'blur' } ] }; } @@ -88,11 +88,11 @@ export default { }; this.$emit('dispatchOperate', params); - this.$message.success('修改运行图名称成功!'); + this.$message.success(this.$t('planMonitor.runGraphNameModifiedSuccessfully')); this.$emit('renewal'); this.doClose(); }).catch(() => { - this.$messageBox('修改运行图名称失败'); + this.$messageBox(this.$t('planMonitor.modifyRunGraphNameFailed')); this.doClose(); }); } diff --git a/src/views/planMonitor/editTool/menus/editPlanningTrain.vue b/src/views/planMonitor/editTool/menus/editPlanningTrain.vue index 7bbb86ca4..07bcf1e33 100644 --- a/src/views/planMonitor/editTool/menus/editPlanningTrain.vue +++ b/src/views/planMonitor/editTool/menus/editPlanningTrain.vue @@ -11,16 +11,16 @@ :close-on-click-modal="false" > - 表号: + {{$t('planMonitor.serviceNumber')+$t('global.colon')}} - 调试车 + {{$t('planMonitor.commissioningTrain')}} - 任务: + {{$t('planMonitor.task')}}
@@ -31,22 +31,22 @@ :height="380" @current-change="handleCurrentChange" > - + - + - + - + @@ -55,12 +55,12 @@
- 编辑任务 + {{$t('planMonitor.modifyTask')}} - 增加任务 + {{$t('planMonitor.addTask')}} - 删除任务 - 确定 + {{$t('planMonitor.deleteTask')}} + {{$t('global.confirm')}}
@@ -87,7 +87,7 @@ export default { }, computed: { title() { - return '编辑计划车'; + return this.$t('planMonitor.editPlanningTrain'); }, disabled() { return !this.model.serviceNumber; @@ -155,7 +155,7 @@ export default { } }); } else { - this.$messageBox('请选择一条数据'); + this.$messageBox(this.$t('tip.selectAPieceOfData')); } }, handleDeleteTask() { @@ -169,7 +169,7 @@ export default { } }); } else { - this.$messageBox('请选择一条数据'); + this.$messageBox(this.$t('tip.selectAPieceOfData')); } }, handleConfirmAddTask(model) { @@ -212,9 +212,9 @@ export default { this.$emit('dispatchOperate', { dialogName: 'openRunPlan', operate: 'loadRunPlanData', params: Object.assign({refresh: true}, this.$route.query) }); - this.$message.success('创建计划成功'); + this.$message.success(this.$t('tip.planCreationSuccessful')); }).catch(() => { - this.$messageBox('创建计划失败'); + this.$messageBox(this.$t('tip.createPlanFailed')); }); } }