SPM查看阅片人简历中英文切换
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4efd6aca7a
commit
bc0ab53799
|
@ -51,6 +51,7 @@ import Credentials from './components/Credentials'
|
||||||
import Resume from './components/Resume'
|
import Resume from './components/Resume'
|
||||||
import Agreements from './components/Agreements'
|
import Agreements from './components/Agreements'
|
||||||
import Comment from './components/Comment'
|
import Comment from './components/Comment'
|
||||||
|
import {mapMutations} from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
|
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
|
||||||
data() {
|
data() {
|
||||||
|
@ -78,13 +79,26 @@ export default {
|
||||||
doctorId: ''
|
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() {
|
mounted() {
|
||||||
this.isEnglish = !!((this.$route.query.isEnglish === true || this.$route.query.isEnglish === 'true'))
|
this.isEnglish = !!((this.$route.query.isEnglish === true || this.$route.query.isEnglish === 'true'))
|
||||||
this.doctorId = this.$route.query.doctorId
|
this.doctorId = this.$route.query.doctorId
|
||||||
this.initForm()
|
this.initForm()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
initStatus() {
|
initStatus() {
|
||||||
if (this.doctorInfo.AuditView) {
|
if (this.doctorInfo.AuditView) {
|
||||||
const res = this.doctorInfo.AuditView
|
const res = this.doctorInfo.AuditView
|
||||||
|
|
|
@ -64,6 +64,7 @@ import Credentials from './components/Credentials'
|
||||||
import Resume from './components/Resume'
|
import Resume from './components/Resume'
|
||||||
import Agreements from './components/Agreements'
|
import Agreements from './components/Agreements'
|
||||||
import Comment from './components/Comment'
|
import Comment from './components/Comment'
|
||||||
|
import {mapMutations} from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
|
components: { StatusInfo, BasicInfo, Employment, Specialty, EducationTraining, ResearchPublication, TrialExperience, Credentials, Resume, Agreements, Comment },
|
||||||
data() {
|
data() {
|
||||||
|
@ -111,6 +112,7 @@ export default {
|
||||||
this.initForm()
|
this.initForm()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
initStatus() {
|
initStatus() {
|
||||||
if (this.doctorInfo.AuditView) {
|
if (this.doctorInfo.AuditView) {
|
||||||
const res = this.doctorInfo.AuditView
|
const res = this.doctorInfo.AuditView
|
||||||
|
|
Loading…
Reference in New Issue