简历国际化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1be88b66af
commit
9c5e3570b5
|
@ -290,6 +290,7 @@ export default {
|
||||||
this.trialId =
|
this.trialId =
|
||||||
this.$route.query.trialId || zzSessionStorage.getItem('trialId')
|
this.$route.query.trialId || zzSessionStorage.getItem('trialId')
|
||||||
await this.setLanguage(this.$i18n.locale)
|
await this.setLanguage(this.$i18n.locale)
|
||||||
|
this.$updateDictionary()
|
||||||
if (sessionStorage.getItem('reviewerId')) {
|
if (sessionStorage.getItem('reviewerId')) {
|
||||||
this.reviewerId = sessionStorage.getItem('reviewerId')
|
this.reviewerId = sessionStorage.getItem('reviewerId')
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- <resume-info v-if="isInit" /> -->
|
<!-- <resume-info v-if="isInit" /> -->
|
||||||
<preview
|
<preview
|
||||||
|
v-if="isInit"
|
||||||
:isEN="isEN"
|
:isEN="isEN"
|
||||||
:isAll="isAll"
|
:isAll="isAll"
|
||||||
:reviewerId.sync="reviewerId"
|
:reviewerId.sync="reviewerId"
|
||||||
|
@ -14,6 +15,7 @@ import ResumeInfo from '@/views/resumeInfo'
|
||||||
import { changeURLStatic, getQueryString } from '@/utils/history.js'
|
import { changeURLStatic, getQueryString } from '@/utils/history.js'
|
||||||
import preview from '@/views/reviewers/curriculumVitae/preview.vue'
|
import preview from '@/views/reviewers/curriculumVitae/preview.vue'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import { mapMutations } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ResumeInfo,
|
ResumeInfo,
|
||||||
|
@ -39,15 +41,22 @@ export default {
|
||||||
// return this.hasPermi(['role:pm', 'role:admin', 'role:apm', 'role:ir'])
|
// return this.hasPermi(['role:pm', 'role:admin', 'role:apm', 'role:ir'])
|
||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.isAll = !this.$route.query.blindState
|
this.isAll = !this.$route.query.blindState
|
||||||
const token = getQueryString('token')
|
const token = getQueryString('token')
|
||||||
if (token) {
|
if (token) {
|
||||||
store.dispatch('user/setToken', token)
|
store.dispatch('user/setToken', token)
|
||||||
changeURLStatic('token', '')
|
changeURLStatic('token', '')
|
||||||
|
this.$i18n.locale =
|
||||||
|
this.$route.query.lang || zzSessionStorage.getItem('lang')
|
||||||
|
this.setLanguage(this.$i18n.locale)
|
||||||
|
this.$updateDictionary()
|
||||||
}
|
}
|
||||||
this.isInit = true
|
this.isInit = true
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -1089,7 +1089,7 @@ export default {
|
||||||
a = getToken()
|
a = getToken()
|
||||||
}
|
}
|
||||||
return v.UrlParameterName + '=' + a + '&'
|
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 + '?' +
|
newValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' +
|
||||||
v.UrlConfig.ParameterList.map((v) => {
|
v.UrlConfig.ParameterList.map((v) => {
|
||||||
let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName]
|
let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName]
|
||||||
|
@ -1097,7 +1097,7 @@ export default {
|
||||||
a = getToken()
|
a = getToken()
|
||||||
}
|
}
|
||||||
return v.UrlParameterName + '=' + a + '&'
|
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)
|
console.log(item)
|
||||||
item.IsTableFiled = v.IsTableFiled
|
item.IsTableFiled = v.IsTableFiled
|
||||||
|
|
Loading…
Reference in New Issue