# counter 部分国际化

This commit is contained in:
xianfuxing 2018-12-02 10:47:30 +08:00
parent d73ca0f46d
commit bd2eb6675c
3 changed files with 10 additions and 2 deletions

View File

@ -152,5 +152,9 @@ export default {
close: 'Close',
closeOthers: 'Close Others',
closeAll: 'Close All'
},
counter: {
online: 'online',
offline: 'offline'
}
}

View File

@ -152,5 +152,9 @@ export default {
close: '关闭',
closeOthers: '关闭其它',
closeAll: '关闭所有'
},
counter: {
online: '在线',
offline: '离线'
}
}

View File

@ -50,8 +50,8 @@
label="状态"
min-width="80">
<template slot-scope="scope">
<span v-if="scope.row.status==0" style="color: #F56C6C">离线</span>
<span v-if="scope.row.status==1" style="color: #67C23A">在线</span>
<span v-if="scope.row.status==0" style="color: #F56C6C">{{$t('counter.offline')}}</span>
<span v-if="scope.row.status==1" style="color: #67C23A">{{$t('counter.online')}}</span>
</template>
</el-table-column>
<el-table-column