国际化调整

This commit is contained in:
joylink_cuiweidong 2019-09-19 13:19:35 +08:00
parent 72aa282942
commit 0e7fdb354c
7 changed files with 36 additions and 16 deletions

View File

@ -154,5 +154,6 @@ export default {
no: 'No',
details: 'Details',
enterNameToFilter: 'Enter a name to filter',
colon: ':'
colon: ':',
processFailure: 'Process failure'
};

View File

@ -9,4 +9,11 @@ export default {
confirmSignalOpen: 'Please confirm that the signal ahead is open',
faultInformation: 'Fault information:',
vWeek: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
trackCheck: 'Track check',
signalCheck: 'Signal check',
turnoutCheck: 'Turnout check',
stationInfoDisplay: 'Station information — display',
stationInfoHidden: 'Station information — hidden',
trainInfoDisplay: 'Train information — display',
trainInfoHidden: 'Train information — hidden'
};

View File

@ -154,5 +154,7 @@ export default {
no: '否',
details: '详情',
enterNameToFilter: '输入名称进行过滤',
colon: ''
colon: '',
processFailure: '处理失败'
};

View File

@ -9,4 +9,11 @@ export default {
confirmSignalOpen: '请确认前方信号开放',
faultInformation: '故障信息:',
vWeek: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
trackCheck: '轨道检查',
signalCheck: '信号机检查',
turnoutCheck: '道岔检查',
stationInfoDisplay: '站台信息——显示',
stationInfoHidden: '站台信息——隐藏',
trainInfoDisplay: '列车信息——显示',
trainInfoHidden: '列车信息——隐藏'
};

View File

@ -41,8 +41,8 @@ Vue.prototype.$addWindowResizeListener = function(cb) {
Vue.prototype.$theme = new Theme();
Vue.prototype.$messageBox = function(msge) {
if (this.$confirm) {
this.$confirm(`${msge || '处理失败'}`, '提示', {
confirmButtonText: '确定',
this.$confirm(`${msge || this.$t('global.processFailure')}`, this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
type: 'warning',
showCancelButton: false,
center: true

View File

@ -6,11 +6,14 @@
<el-button-group>
<!-- <el-button type="primary" @click="raystand">站台选择</el-button>
<el-button type="primary" @click="raytrain">列车选择</el-button> -->
<el-button type="primary" @click="raysection">轨道检查</el-button>
<el-button type="primary" @click="rayswitch">道岔检查</el-button>
<el-button type="primary" @click="raysignal">信号机检查</el-button>
<el-button type="primary" @click="back">返回</el-button>
<el-button type="primary" @click="raysection">{{$t('jlmap3d.trackCheck')}}</el-button>
<el-button type="primary" @click="rayswitch">{{$t('jlmap3d.signalCheck')}}</el-button>
<el-button type="primary" @click="raysignal">{{$t('jlmap3d.turnoutCheck')}}</el-button>
<el-button type="primary" @click="back">{{$t('global.back')}}</el-button>
</el-button-group>
</div>
<Jlmap3d-Menu :trainlist="trainlist" :stationlist="stationlist" @sstation="sstation" @strain="strain" />

View File

@ -19,8 +19,8 @@ export default {
},
data() {
return {
bt1name:"站台信息——显示",
bt2name:"列车信息——显示",
bt1name:this.$t('jlmap3d.stationInfoDisplay'),
bt2name:this.$t('jlmap3d.trainInfoDisplay'),
}
},
beforeDestroy() {
@ -40,11 +40,11 @@ export default {
},
showstation(){
console.log("showstation");
if(this.bt1name == "站台信息——显示"){
this.bt1name = "站台信息——隐藏";
if(this.bt1name == this.$t('jlmap3d.stationInfoDisplay')){
this.bt1name = this.$t('jlmap3d.stationInfoHidden');
this.$emit('showstationmsg',"unshow");
}else{
this.bt1name = "站台信息——显示";
this.bt1name = this.$t('jlmap3d.stationInfoDisplay');
this.$emit('showstationmsg',"show");
}
@ -52,11 +52,11 @@ export default {
showtrain(){
console.log("showtrain");
if(this.bt2name == "列车信息——显示"){
this.bt2name = "列车信息——隐藏";
if(this.bt2name == this.$t('jlmap3d.trainInfoDisplay')){
this.bt2name = this.$t('jlmap3d.trainInfoHidden');
this.$emit('showtrainmsg',"unshow");
}else{
this.bt2name = "列车信息——显示";
this.bt2name = this.$t('jlmap3d.trainInfoDisplay');
this.$emit('showtrainmsg',"show");
}