Browse Source

refactor:[双语] 双语字段整理

luojie
memorylkf 3 weeks ago
parent
commit
e51a7ee588
6 changed files with 19 additions and 17 deletions
  1. +6
    -5
      src/lang/en.js
  2. +6
    -5
      src/lang/zh.js
  3. +2
    -2
      src/layout/components/Navbar.vue
  4. +2
    -2
      src/layout/components/Sidebar/Logo.vue
  5. +1
    -1
      src/views/index.vue
  6. +2
    -2
      src/views/system/user/index.vue

+ 6
- 5
src/lang/en.js View File

@ -1,10 +1,14 @@
export default { export default {
title: 'HXHQ',
system: { system: {
title: 'HXHQ',
tip: 'prompt', tip: 'prompt',
logOut: 'Are you sure to log out and exit the system?' logOut: 'Are you sure to log out and exit the system?'
}, },
btn: {
form: {
search: 'search',
reset: 'reset',
add: 'add',
export: 'export',
confirm: 'confirm', confirm: 'confirm',
cancel: 'cancel' cancel: 'cancel'
}, },
@ -71,8 +75,5 @@ export default {
tagsView: 'Open Tags-View', tagsView: 'Open Tags-View',
fixedHeader: 'Fixed Header', fixedHeader: 'Fixed Header',
sidebarLogo: 'Sidebar Logo' sidebarLogo: 'Sidebar Logo'
},
home: {
home: 'Home'
} }
} }

+ 6
- 5
src/lang/zh.js View File

@ -1,10 +1,14 @@
export default { export default {
title: '华西海圻管理系统',
system: { system: {
title: '华西海圻管理系统',
tip: '提示', tip: '提示',
logOut: '确定注销并退出系统吗?' logOut: '确定注销并退出系统吗?'
}, },
btn: {
form: {
search: '查询',
reset: '重置',
add: '新增',
export: '导出',
confirm: '确定', confirm: '确定',
cancel: '取消' cancel: '取消'
}, },
@ -71,8 +75,5 @@ export default {
tagsView: '开启 Tags-View', tagsView: '开启 Tags-View',
fixedHeader: '固定 Header', fixedHeader: '固定 Header',
sidebarLogo: '侧边栏 Logo' sidebarLogo: '侧边栏 Logo'
},
home: {
home: '首页'
} }
} }

+ 2
- 2
src/layout/components/Navbar.vue View File

@ -90,8 +90,8 @@ export default {
}, },
logout() { logout() {
this.$confirm(this.$t('system.logOut'), this.$t('system.tip'), { this.$confirm(this.$t('system.logOut'), this.$t('system.tip'), {
confirmButtonText: this.$t('btn.confirm'),
cancelButtonText: this.$t('btn.cancel'),
confirmButtonText: this.$t('form.confirm'),
cancelButtonText: this.$t('form.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {

+ 2
- 2
src/layout/components/Sidebar/Logo.vue View File

@ -3,11 +3,11 @@
<transition name="sidebarLogoFade"> <transition name="sidebarLogoFade">
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/"> <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ $t('title') }} </h1>
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ $t('system.title') }} </h1>
</router-link> </router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> <router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ $t('title') }} </h1>
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ $t('system.title') }} </h1>
</router-link> </router-link>
</transition> </transition>
</div> </div>

+ 1
- 1
src/views/index.vue View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container home"> <div class="app-container home">
<h1>{{ $t('title') }}</h1>
<h1>{{ $t('system.title') }}</h1>
</div> </div>
</template> </template>

+ 2
- 2
src/views/system/user/index.vue View File

@ -32,8 +32,8 @@
<el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('form.search') }}</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('form.reset') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

Loading…
Cancel
Save