This commit is contained in:
fan 2019-09-11 15:26:57 +08:00
commit 6b80ac2452
9 changed files with 64 additions and 27 deletions

View File

@ -2,9 +2,6 @@ export default {
startBtn: 'Start', startBtn: 'Start',
endBtn: 'End', endBtn: 'End',
backBtn: 'Back', backBtn: 'Back',
cancelButtonText: 'Cancel',
confirmButtonText: 'Confirm',
prompt: 'Prompt',
seconds: 'seconds', seconds: 'seconds',
lesson: { lesson: {
teachingMode: 'Teaching Mode', teachingMode: 'Teaching Mode',
@ -43,5 +40,28 @@ export default {
maximumTime: 'Maximum time: ', maximumTime: 'Maximum time: ',
trainingInstructions: 'Training instructions: ', trainingInstructions: 'Training instructions: ',
getCourseInformationFail: 'Failed to get course information' getCourseInformationFail: 'Failed to get course information'
},
demon: {
// 试用时间:
// 派班计划
// 退出剧本
// 按计划行车
// 退出计划
// 返回
// 三维视图
// 任务操作成功!
// 获取时间失败
// 开始仿真失败,请返回重试
// 结束仿真失败,请返回
// 退出任务失败
// 司机视角
// 三维视图
},
systemTime: {
timePause: 'Pausing'
},
screen: {
trialTime: 'Trial time: ',
getTimeFail: 'Failed to get time'
} }
}; };

View File

@ -22,9 +22,6 @@ export default {
modifyScriptSuccess: 'Modify script success', modifyScriptSuccess: 'Modify script success',
modifyScriptFail: 'Modify script failure', modifyScriptFail: 'Modify script failure',
deleteScriptTip: 'This action will delete this script, whether to continue?', deleteScriptTip: 'This action will delete this script, whether to continue?',
operateTip: 'Prompt',
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancle',
deleteScriptSucess: 'delete script sucess', deleteScriptSucess: 'delete script sucess',
deleteScriptFail: 'delete script failure', deleteScriptFail: 'delete script failure',
scriptRecordTitle: 'Script Record', scriptRecordTitle: 'Script Record',

View File

@ -2,9 +2,6 @@ export default {
startBtn: '开始', startBtn: '开始',
endBtn: '结束', endBtn: '结束',
backBtn: '返回', backBtn: '返回',
cancelButtonText: '取消',
confirmButtonText: '确定',
prompt: '提示',
seconds: '秒', seconds: '秒',
lesson: { lesson: {
teachingMode: '教学模式', teachingMode: '教学模式',
@ -35,7 +32,6 @@ export default {
submitExaminationPaper: '提交试卷', submitExaminationPaper: '提交试卷',
autoSubmit: '考试结束自动提交', autoSubmit: '考试结束自动提交',
getTestInformation: '获取试题信息失败', getTestInformation: '获取试题信息失败',
// Failed to get test information
cancleExam: '考试未完成,是否确认退出?' cancleExam: '考试未完成,是否确认退出?'
}, },
training: { training: {
@ -44,6 +40,30 @@ export default {
maximumTime: '最大用时:', maximumTime: '最大用时:',
trainingInstructions: '实训说明:', trainingInstructions: '实训说明:',
getCourseInformationFail: '获取课程信息失败' getCourseInformationFail: '获取课程信息失败'
},
demon: {
// 试用时间:
// 派班计划
// 退出剧本
// 按计划行车
// 退出计划
// 返回
// 三维视图
// 任务操作成功!
// 获取时间失败
// 开始仿真失败,请返回重试
// 结束仿真失败,请返回
// 退出任务失败
// 司机视角
// 三维视图
},
systemTime: {
timePause: '暂停中'
},
screen: {
trialTime: '试用时间:',
getTimeFail: '获取时间失败'
} }
}; };

View File

@ -122,9 +122,9 @@ export default {
} }
}, },
back() { back() {
this.$confirm(this.$t('display.exam.endTestTip'), this.$t('display.prompt'), { this.$confirm(this.$t('display.exam.endTestTip'), this.$t('global.tips'), {
confirmButtonText: this.$t('display.confirmButtonText'), confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('display.cancelButtonText'), cancelButtonText: this.$t('global.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$emit('quit'); this.$emit('quit');

View File

@ -99,7 +99,8 @@ export default {
if (opt && opt.hasOwnProperty('color') && opt.hasOwnProperty('message')) { if (opt && opt.hasOwnProperty('color') && opt.hasOwnProperty('message')) {
const h = this.$createElement; const h = this.$createElement;
this.$notify({ this.$notify({
title: this.$t('display.prompt'), title: this.$t('global.tips'),
message: h('i', { style: 'color:' + opt.color }, opt.message) message: h('i', { style: 'color:' + opt.color }, opt.message)
}); });
} }
@ -156,9 +157,9 @@ export default {
this.endCommit(); this.endCommit();
} else { } else {
this.backDisable = true; this.backDisable = true;
this.$confirm(this.$t('display.lesson.endTrainingTip'), this.$t('display.prompt'), { this.$confirm(this.$t('display.lesson.endTrainingTip'), this.$t('global.tips'), {
cancelButtonText: this.$t('display.cancelButtonText'), cancelButtonText: this.$t('global.cancel'),
confirmButtonText: this.$t('display.confirmButtonText'), confirmButtonText: this.$t('global.confirm'),
type: 'warning', type: 'warning',
center: true, center: true,
zIndex: 9999 zIndex: 9999

View File

@ -2,12 +2,11 @@
<div> <div>
<div class="display-card" :style="{top: offset+'px'}"> <div class="display-card" :style="{top: offset+'px'}">
<el-row> <el-row>
<span v-if="countTime" class="display-score">试用时间{{ countTime }}</span> <span v-if="countTime" class="display-score">{{$t('display.screen.trialTime')}} {{ countTime }}</span>
</el-row> </el-row>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { getGoodsTryUse } from '@/api/management/goods'; import { getGoodsTryUse } from '@/api/management/goods';
import { PermissionType } from '@/scripts/ConstDic'; import { PermissionType } from '@/scripts/ConstDic';
@ -77,7 +76,7 @@ export default {
}, 1000); }, 1000);
} }
} else { } else {
this.$messageBox(`获取时间失败`); this.$messageBox(this.$t('display.screen.getTimeFail'));
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div v-if="isShowSystemTime" class="display-card" :style="{top: offset+'px', right: right+'px'}"> <div v-if="isShowSystemTime" class="display-card" :style="{top: offset+'px', right: right+'px'}">
<template v-if="pause"> <template v-if="pause">
<span class="display-pause">暂停中</span> <span class="display-pause">{{$t('display.systemTime.timePause')}}</span>
</template> </template>
<template v-else> <template v-else>
<system-time <system-time

View File

@ -244,9 +244,9 @@ export default {
if (isOver) { if (isOver) {
this.submit(); this.submit();
} else { } else {
this.$confirm(this.$t('display.exam.cancleExam'), this.$t('display.prompt'), { this.$confirm(this.$t('display.exam.cancleExam'), this.$t('global.tips'), {
cancelButtonText: this.$t('display.cancelButtonText'), cancelButtonText: this.$t('global.cancel'),
confirmButtonText: this.$t('display.confirmButtonText'), confirmButtonText: this.$t('global.confirm'),
type: 'warning', type: 'warning',
center: true center: true
}).then(() => { }).then(() => {

View File

@ -148,9 +148,9 @@ export default {
dumpScenesData() { dumpScenesData() {
this.clearAutoSave(); this.clearAutoSave();
const group=this.group; const group=this.group;
this.$confirm(this.$t('scriptRecord.clearDataTip'), this.$t('scriptRecord.operateTip'), { this.$confirm(this.$t('scriptRecord.clearDataTip'), this.$t('global.tips'), {
confirmButtonText: this.$t('scriptRecord.confirmButtonText'), confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('scriptRecord.cancelButtonText'), cancelButtonText: this.$t('global.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
dumpScriptData(group).then(resp => { dumpScriptData(group).then(resp => {