SPM查看阅片人简历中英文切换
continuous-integration/drone/push Build is passing Details

uat_us
熊飞 2024-01-29 10:43:41 +08:00
parent 4efd6aca7a
commit bc0ab53799
2 changed files with 17 additions and 1 deletions

View File

@ -51,6 +51,7 @@ import Credentials from './components/Credentials'
import Resume from './components/Resume'
import Agreements from './components/Agreements'
import Comment from './components/Comment'
import {mapMutations} from "vuex";
export default {
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
data() {
@ -78,13 +79,26 @@ export default {
doctorId: ''
}
},
watch: {
isEnglish(v) {
if (v === true) {
this.$i18n.locale = 'en'
this.setLanguage('en')
this.$updateDictionary()
} else {
this.$i18n.locale = 'zh'
this.setLanguage('zh')
this.$updateDictionary()
}
}
},
mounted() {
this.isEnglish = !!((this.$route.query.isEnglish === true || this.$route.query.isEnglish === 'true'))
this.doctorId = this.$route.query.doctorId
this.initForm()
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
initStatus() {
if (this.doctorInfo.AuditView) {
const res = this.doctorInfo.AuditView

View File

@ -64,6 +64,7 @@ import Credentials from './components/Credentials'
import Resume from './components/Resume'
import Agreements from './components/Agreements'
import Comment from './components/Comment'
import {mapMutations} from "vuex";
export default {
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
data() {
@ -111,6 +112,7 @@ export default {
this.initForm()
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
initStatus() {
if (this.doctorInfo.AuditView) {
const res = this.doctorInfo.AuditView