简历采集国际化
parent
edfa41291b
commit
4f51946c3f
|
@ -3,7 +3,8 @@
|
||||||
<div class="box-wrapper">
|
<div class="box-wrapper">
|
||||||
<h2 style="text-align:center;">
|
<h2 style="text-align:center;">
|
||||||
<!-- 中心调研表 -->
|
<!-- 中心调研表 -->
|
||||||
独立阅片人信息填写
|
<!-- 独立阅片人信息填写 -->
|
||||||
|
{{$t("trials:researchForm:form:title")}}
|
||||||
</h2>
|
</h2>
|
||||||
<el-card shadow="hover" style="padding-top: 40px">
|
<el-card shadow="hover" style="padding-top: 40px">
|
||||||
<el-form
|
<el-form
|
||||||
|
@ -58,6 +59,7 @@ import { sendVerifyCode, verifySendCode, getTrialSurveyInitInfo } from '@/api/re
|
||||||
import { verifyEmialGetDoctorInfo, sendEmialVerifyCode } from '@/api/reviewers'
|
import { verifyEmialGetDoctorInfo, sendEmialVerifyCode } from '@/api/reviewers'
|
||||||
import { login, getUserMenuTree, getUserPermissions } from '@/api/user'
|
import { login, getUserMenuTree, getUserPermissions } from '@/api/user'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import { mapMutations } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
var checkPhone = (rule, value, callback) => {
|
var checkPhone = (rule, value, callback) => {
|
||||||
|
@ -149,9 +151,14 @@ export default {
|
||||||
isHaveSiteSurveyRecord: false
|
isHaveSiteSurveyRecord: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created(){
|
||||||
|
this.$i18n.locale = this.$route.query.lang
|
||||||
|
this.setLanguage(this.$route.query.lang)
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
// 提交
|
// 提交
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$refs['resetForm'].validate(valid => {
|
this.$refs['resetForm'].validate(valid => {
|
||||||
|
@ -176,7 +183,7 @@ export default {
|
||||||
store.dispatch('user/setTree', menuTree.Result)
|
store.dispatch('user/setTree', menuTree.Result)
|
||||||
store.dispatch('user/setPermissions', permissions.Result)
|
store.dispatch('user/setPermissions', permissions.Result)
|
||||||
// this.$router.push({ path: `/researchForm?trialId=${this.trialId}&trialSiteSurveyId=${res.Result.TrialSiteSurveyId}` })
|
// this.$router.push({ path: `/researchForm?trialId=${this.trialId}&trialSiteSurveyId=${res.Result.TrialSiteSurveyId}` })
|
||||||
this.$router.push({path: `/ReviewersResearchForm?Id=${res.Result.DoctorId ? res.Result.DoctorId : ''}&tabActive=BasicInfo&ReviewStatus=${res.Result.ReviewStatus}`})
|
this.$router.push({path: `/ReviewersResearchForm?Id=${res.Result.DoctorId ? res.Result.DoctorId : ''}&tabActive=BasicInfo&ReviewStatus=${res.Result.ReviewStatus}&lang=${this.$route.query.lang}`})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
this.sendDisabled = false
|
this.sendDisabled = false
|
||||||
|
|
|
@ -44,6 +44,7 @@ import Resumes from './components/Resumes'
|
||||||
import Agreements from './components/Agreements'
|
import Agreements from './components/Agreements'
|
||||||
import Setting from './components/Setting'
|
import Setting from './components/Setting'
|
||||||
import { changeURLStatic, getQueryString } from '@/utils/history.js'
|
import { changeURLStatic, getQueryString } from '@/utils/history.js'
|
||||||
|
import { mapMutations } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
BasicInfo,
|
BasicInfo,
|
||||||
|
@ -74,6 +75,10 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created(){
|
||||||
|
this.$i18n.locale = this.$route.query.lang
|
||||||
|
this.setLanguage(this.$route.query.lang)
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.active = this.$route.query.tabActive
|
this.active = this.$route.query.tabActive
|
||||||
if (this.$route.query.Id === '' && this.active !== 'BasicInfo') {
|
if (this.$route.query.Id === '' && this.active !== 'BasicInfo') {
|
||||||
|
@ -82,6 +87,7 @@ export default {
|
||||||
this.load[this.active] = true
|
this.load[this.active] = true
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
clickTab(tab, event) {
|
clickTab(tab, event) {
|
||||||
if (this.load[tab.name] === false) {
|
if (this.load[tab.name] === false) {
|
||||||
this.load[tab.name] = true
|
this.load[tab.name] = true
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
clearable
|
clearable
|
||||||
class="mr"
|
class="mr"
|
||||||
>
|
>
|
||||||
<el-option v-for="item of $d.AttendedReviewerType" :value="item.value" :label="item.label" />
|
<el-option v-for="item of $d.AttendedReviewerType" :value="item.value" :label="item.label" :key="item.id"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
@ -405,7 +405,7 @@ export default {
|
||||||
},
|
},
|
||||||
showResearchLink() {
|
showResearchLink() {
|
||||||
const trialId = this.trialId
|
const trialId = this.trialId
|
||||||
this.shareLink = `${location.protocol}//${location.host}/ReviewersResearch`
|
this.shareLink = `${location.protocol}//${location.host}/ReviewersResearch?lang=${this.$store.getters.language}`
|
||||||
this.share_model.visible = true
|
this.share_model.visible = true
|
||||||
},
|
},
|
||||||
lookResumeInfo(row) {
|
lookResumeInfo(row) {
|
||||||
|
|
Loading…
Reference in New Issue