简历国际化
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-25 15:37:45 +08:00
parent 1be88b66af
commit 9c5e3570b5
3 changed files with 13 additions and 3 deletions

View File

@ -290,6 +290,7 @@ export default {
this.trialId =
this.$route.query.trialId || zzSessionStorage.getItem('trialId')
await this.setLanguage(this.$i18n.locale)
this.$updateDictionary()
if (sessionStorage.getItem('reviewerId')) {
this.reviewerId = sessionStorage.getItem('reviewerId')
this.getDetail()

View File

@ -2,6 +2,7 @@
<div class="app-container">
<!-- <resume-info v-if="isInit" /> -->
<preview
v-if="isInit"
:isEN="isEN"
:isAll="isAll"
:reviewerId.sync="reviewerId"
@ -14,6 +15,7 @@ import ResumeInfo from '@/views/resumeInfo'
import { changeURLStatic, getQueryString } from '@/utils/history.js'
import preview from '@/views/reviewers/curriculumVitae/preview.vue'
import store from '@/store'
import { mapMutations } from 'vuex'
export default {
components: {
ResumeInfo,
@ -39,15 +41,22 @@ export default {
// return this.hasPermi(['role:pm', 'role:admin', 'role:apm', 'role:ir'])
// },
},
mounted() {
async mounted() {
this.isAll = !this.$route.query.blindState
const token = getQueryString('token')
if (token) {
store.dispatch('user/setToken', token)
changeURLStatic('token', '')
this.$i18n.locale =
this.$route.query.lang || zzSessionStorage.getItem('lang')
this.setLanguage(this.$i18n.locale)
this.$updateDictionary()
}
this.isInit = true
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
},
}
</script>
<style lang="scss" scoped>

View File

@ -1089,7 +1089,7 @@ export default {
a = getToken()
}
return v.UrlParameterName + '=' + a + '&'
}).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath,
}).toString().replaceAll(',', '')+'&'+'lang='+this.$i18n.locale +'&'+ 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath,
newValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' +
v.UrlConfig.ParameterList.map((v) => {
let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName]
@ -1097,7 +1097,7 @@ export default {
a = getToken()
}
return v.UrlParameterName + '=' + a + '&'
}).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath
}).toString().replaceAll(',', '')+'&'+'lang='+this.$i18n.locale +'&'+ 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath
}
console.log(item)
item.IsTableFiled = v.IsTableFiled