教学仿真 国际化调整

This commit is contained in:
joylink_cuiweidong 2019-09-11 11:30:44 +08:00
parent d31f4e8493
commit 5c184755e2
3 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ export default {
trainingTime: 'Best time to complete the training:', trainingTime: 'Best time to complete the training:',
trainingMaximum: 'Maximum time to complete the training:', trainingMaximum: 'Maximum time to complete the training:',
trainingInstructions: 'Training instructions:', trainingInstructions: 'Training instructions:',
startTraining: 'Began to practice', startTraining: 'Start training',
courseName: 'Course name', courseName: 'Course name',
courseDescription: 'Course description', courseDescription: 'Course description',

View File

@ -156,7 +156,7 @@ export default {
this.endCommit(); this.endCommit();
} else { } else {
this.backDisable = true; this.backDisable = true;
this.$confirm(this.$t('display.lesson.endTraingTip'), this.$t('display.prompt'), { this.$confirm(this.$t('display.lesson.endTrainingTip'), this.$t('display.prompt'), {
cancelButtonText: this.$t('display.cancelButtonText'), cancelButtonText: this.$t('display.cancelButtonText'),
confirmButtonText: this.$t('display.confirmButtonText'), confirmButtonText: this.$t('display.confirmButtonText'),
type: 'warning', type: 'warning',
@ -174,7 +174,7 @@ export default {
} }
}); });
} else { } else {
this.$messageBox(this.$t('display.lesson.startTraingTip')); this.$messageBox(this.$t('display.lesson.startTrainingTip'));
} }
} }
}, },

View File

@ -12,19 +12,19 @@
<div class="tip-body"> <div class="tip-body">
<el-scrollbar wrap-class="scrollbar-wrapper"> <el-scrollbar wrap-class="scrollbar-wrapper">
<p class="list-item"> <p class="list-item">
<span class="list-label">实训名称</span> <span class="list-label">{{$t('display.training.trainingName')}}</span>
<span class="list-elem">{{ courseModel.name }}</span> <span class="list-elem">{{ courseModel.name }}</span>
</p> </p>
<p class="list-item"> <p class="list-item">
<span class="list-label">最佳用时</span> <span class="list-label">{{$t('display.training.bestTime')}}</span>
<span class="list-elem">{{ courseModel.minDuration }} </span> <span class="list-elem">{{ courseModel.minDuration }} {{$t('display.seconds')}} </span>
</p> </p>
<p class="list-item"> <p class="list-item">
<span class="list-label">最大用时</span> <span class="list-label">{{$t('display.training.maximumTime')}}</span>
<span class="list-elem">{{ courseModel.maxDuration }} </span> <span class="list-elem">{{ courseModel.maxDuration }} {{$t('display.seconds')}} </span>
</p> </p>
<p class="list-item"> <p class="list-item">
<span class="list-label"> 实训说明</span> <span class="list-label"> {{$t('display.training.trainingInstructions')}}</span>
<span class="list-elem">{{ courseModel.remarks }}</span> <span class="list-elem">{{ courseModel.remarks }}</span>
</p> </p>
</el-scrollbar> </el-scrollbar>
@ -115,7 +115,7 @@ export default {
getPublishLessonDetail({ id: obj.lessonId }).then(response => { getPublishLessonDetail({ id: obj.lessonId }).then(response => {
this.lessonName = response.data.name; this.lessonName = response.data.name;
}).catch(error => { }).catch(error => {
this.$message.error('获取课程信息失败:' + error.message); this.$message.error(this.$t('display.training.getCourseInformationFail')+':' + error.message);
}); });
} }