From 22a77b63fd8b23ec27f8aeeb75ee444a631dbc00 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 12 Sep 2019 09:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=20=E5=9B=BD=E9=99=85?= =?UTF-8?q?=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/display.js | 22 +++++++++++++++++ src/i18n/langs/zh/display.js | 33 +++++++++++++++++++++++++ src/i18n/langs/zh/scriptRecord.js | 3 --- src/views/display/demon/faultChoose.vue | 23 +++++++++-------- src/views/display/menuSchema.vue | 22 ++++++++--------- 5 files changed, 77 insertions(+), 26 deletions(-) diff --git a/src/i18n/langs/en/display.js b/src/i18n/langs/en/display.js index 0540272b9..937d72bd8 100644 --- a/src/i18n/langs/en/display.js +++ b/src/i18n/langs/en/display.js @@ -75,5 +75,27 @@ export default { back: 'Back', startPlanFail: 'Start planning failed, please go back and try again', endPlanFail: 'End plan failed, please go back' + }, + schema: { + selectProduct: 'Please select product type', + loadScript: 'Load Script', + previewRunDiagram: 'Preview Run Diagram', + loadRunDiagram: 'Load Run Diagram', + faultSetting: 'Fault Setting', + normalOperation: 'Normal Operation', + faultOperation: 'Fault Operation', + getRunDiagramFail: 'Failed to get run diagram data', + todayRunDiagramNoLoad: 'Today\'s run diagram is not loaded', + getStationListFail: 'Failed to get station list' + }, + faultChoose: { + manual: 'Manual', + automatic: 'Automatic', + settingCondition: 'Setting Condition', + triggerTarget: 'Trigger Target', + selectFault: 'Select Fault', + selectRules: 'Please select rules', + setFaultSuccess: 'Set fault success', + setFaultFail: 'Set fault failed' } }; diff --git a/src/i18n/langs/zh/display.js b/src/i18n/langs/zh/display.js index 1263a276e..1608e6676 100644 --- a/src/i18n/langs/zh/display.js +++ b/src/i18n/langs/zh/display.js @@ -75,6 +75,39 @@ export default { back: '返回', startPlanFail: '开始计划失败,请返回重试', endPlanFail: '结束计划失败,请返回' + }, + schema: { + selectProduct: '请选择产品类型', + loadScript: '加载剧本', + previewRunDiagram: '运行图预览', + loadRunDiagram: '运行图加载', + faultSetting: '故障设置', + normalOperation: '正常操作', + faultOperation: '故障操作', + getRunDiagramFail: '获取运行图数据失败', + todayRunDiagramNoLoad: '今日运行图未加载', + getStationListFail: '获取车站列表失败' + }, + faultChoose: { + manual: '手动', + automatic: '自动', + settingCondition: '设置条件', + triggerTarget: '触发目标', + selectFault: '选择故障', + selectRules: '请选择规则', + setFaultSuccess: '设置故障成功', + setFaultFail: '设置故障失败' + }, + setTime: { + // 系统时间 + // 任意时间点 + // 加载列车数 + // 请选择可加载列车个数 + // 可加载的最大车辆个数 + // 设置仿真系统时间 + // 请选择系统时间 + // 请选择有效的开始时间 + // 请选择车辆个数 } }; diff --git a/src/i18n/langs/zh/scriptRecord.js b/src/i18n/langs/zh/scriptRecord.js index 1a328240c..779167574 100644 --- a/src/i18n/langs/zh/scriptRecord.js +++ b/src/i18n/langs/zh/scriptRecord.js @@ -22,9 +22,6 @@ export default { modifyScriptSuccess: '修改剧本成功', modifyScriptFail: '修改剧本失败', deleteScriptTip: '此操作将删除此剧本, 是否继续?', - operateTip: '提示', - confirmButtonText: '确定', - cancelButtonText: '取消', deleteScriptSucess: '删除成功', deleteScriptFail: '删除失败', scriptRecordTitle: '剧本编制', diff --git a/src/views/display/demon/faultChoose.vue b/src/views/display/demon/faultChoose.vue index 232e02ce2..b72efb3c8 100644 --- a/src/views/display/demon/faultChoose.vue +++ b/src/views/display/demon/faultChoose.vue @@ -2,8 +2,8 @@
- 手动 - 自动 + {{$t('display.faultChoose.manual')}} + {{$t('display.faultChoose.automatic')}}
@@ -11,8 +11,8 @@
- 取 消 - 确 定 + {{$t('global.cancel')}} + {{$t('global.confirm')}}
@@ -46,7 +46,7 @@ queryObject: { condition: { type: 'text', - label: '设置条件' + label: this.$t('display.faultChoose.settingCondition') } } }, @@ -56,11 +56,11 @@ radioShow: true, columns: [ { - title: '设置条件', + title: this.$t('display.faultChoose.settingCondition'), prop: 'condition' }, { - title: '触发目标', + title: this.$t('display.faultChoose.triggerTarget'), prop: 'target' } ] @@ -69,7 +69,7 @@ }, computed: { title() { - return '选择故障' + return this.$t('display.faultChoose.selectFault') }, skinCode() { return this.$route.query.skinCode; @@ -126,11 +126,10 @@ }, getFailureModel(auto) { let model = { auto }; - if (auto) { const choose = this.$refs.pageRules.currentChoose(); if (choose) { - choose.id ? Object.assign(model, { ruleId: choose.id }) : this.$messageBox(`请选择规则`); + choose.id ? Object.assign(model, { ruleId: choose.id }) : this.$messageBox(this.$t('display.faultChoose.selectRules')); } } @@ -140,9 +139,9 @@ this.$nextTick(() => { let faultModel = this.getFailureModel(this.auto); setFailureMode(faultModel, this.group).then(() => { - this.$message.success(`设置故障成功`); + this.$message.success(this.$t('display.faultChoose.setFaultSuccess')); }).catch(error => { - this.$messageBox(`设置故障失败`); + this.$messageBox(this.$t('display.faultChoose.setFaultFail')); }) this.doClose(); diff --git a/src/views/display/menuSchema.vue b/src/views/display/menuSchema.vue index 5739614f3..a43b2ab0b 100644 --- a/src/views/display/menuSchema.vue +++ b/src/views/display/menuSchema.vue @@ -1,19 +1,19 @@ @@ -96,7 +96,7 @@ export default { this.viewDisabled = false; }).catch(() => { this.$store.dispatch('runPlan/setPlanData', []); - this.$messageBox(`获取运行图数据失败`); + this.$messageBox(this.$t('display.schema.getRunDiagramFail')); }); } else { getEveryDayRunPlanData(this.group).then(resp => { @@ -105,15 +105,15 @@ export default { }).catch(error => { this.$store.dispatch('runPlan/setPlanData', []); if (error.code == 30001) { - this.$messageBox(`今日运行图未加载`); + this.$messageBox(this.$t('display.schema.todayRunDiagramNoLoad')); } else { - this.$messageBox(`获取运行图数据失败`); + this.$messageBox(this.$t('display.schema.getRunDiagramFail')); } }); } }); }).catch(() => { - this.$messageBox(`获取车站列表失败`); + this.$messageBox(this.$t('display.schema.getStationListFail')); }); } });