国际化
This commit is contained in:
@@ -22,10 +22,10 @@ export default {
|
||||
...mapGetters(['userRole']),
|
||||
nav () {
|
||||
return [
|
||||
{ title: '操作', zh_title: '操作', en_title: 'Operation', router: '/index/device', isVisible: true },
|
||||
{ title: '建图', zh_title: '建图', en_title: 'Map building', router: '/index/building', isVisible: this.userRole === 1 },
|
||||
{ title: '操作', zh_title: '操作', en_title: 'Operate', router: '/index/device', isVisible: true },
|
||||
{ title: '建图', zh_title: '建图', en_title: 'Map - building', router: '/index/building', isVisible: this.userRole === 1 },
|
||||
{ title: '地图', zh_title: '地图', en_title: 'Map', router: '/index/map', isVisible: true },
|
||||
{ title: '重定位', zh_title: '重定位', en_title: 'Relocation', router: '/index/relocation', isVisible: true }
|
||||
{ title: '重定位', zh_title: '重定位', en_title: 'Relocate', router: '/index/relocation', isVisible: true }
|
||||
]
|
||||
},
|
||||
visibleNav () {
|
||||
@@ -35,16 +35,16 @@ export default {
|
||||
methods: {
|
||||
toPage (e) {
|
||||
if (e.router === '/index/building') {
|
||||
this.$confirm('是否开始新建地图,地图会进行覆盖, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
this.$confirm(this.$t('Donewmap'), this.$t('Prompt'), {
|
||||
confirmButtonText: this.$t('Confirm'),
|
||||
cancelButtonText: this.$t('Cancel'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$router.push(e.router)
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消建图'
|
||||
message: this.$t('Mapbuildingcancel')
|
||||
})
|
||||
})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user