diff --git a/src/views/reviewers/ReviewersResearch.vue b/src/views/reviewers/ReviewersResearch.vue index 3c18be08..e03aaf27 100644 --- a/src/views/reviewers/ReviewersResearch.vue +++ b/src/views/reviewers/ReviewersResearch.vue @@ -226,6 +226,9 @@ export default { emailOrPhone: this.form.EmailOrPhone, verificationCode: this.form.VerificationCode, } + if (this.$route.query.trialId) { + param.TrialId = this.$route.query.trialId + } verifyEmialGetDoctorInfo(param) .then(async (res) => { this.btnLoading = false @@ -242,7 +245,9 @@ export default { res.Result.DoctorId ? res.Result.DoctorId : '' }&tabActive=BasicInfo&ReviewStatus=${ res.Result.ReviewStatus - }&lang=${this.$route.query.lang}`, + }&trialId=${this.$route.query.trialId}&lang=${ + this.$route.query.lang + }`, }) }) .catch(() => { diff --git a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue index fea28d75..26f681fc 100644 --- a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue +++ b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue @@ -525,6 +525,10 @@ export default { } }, }, + trialId: { + type: String, + default: '', + }, reviewerId: { type: String, default: '', @@ -773,6 +777,9 @@ export default { console.log(validate, 'validate') if (!validate) return false this.form.DoctorId = this.reviewerId + if (this.trialId) { + this.form.TrialId = this.trialId + } this.loading = true let res = await addOrUpdateTrialExperience(this.form) this.loading = false diff --git a/src/views/reviewers/curriculumVitae/components/info/summarize.vue b/src/views/reviewers/curriculumVitae/components/info/summarize.vue index 7770dc5b..b7cd23b1 100644 --- a/src/views/reviewers/curriculumVitae/components/info/summarize.vue +++ b/src/views/reviewers/curriculumVitae/components/info/summarize.vue @@ -92,6 +92,10 @@ export default { type: String, default: '', }, + trialId: { + type: String, + default: '', + }, isEN: { type: Boolean, default: false, @@ -132,6 +136,9 @@ export default { if (this.reviewerId) { this.form.Id = this.reviewerId } + if (this.trialId) { + this.form.trialId = this.trialId + } this.loading = true let res = await updateGneralSituation(this.form) this.loading = false diff --git a/src/views/reviewers/curriculumVitae/index.vue b/src/views/reviewers/curriculumVitae/index.vue index 78aae7ae..e6437aa6 100644 --- a/src/views/reviewers/curriculumVitae/index.vue +++ b/src/views/reviewers/curriculumVitae/index.vue @@ -78,6 +78,7 @@ ...reviewerData.SummarizeInfo, }" :reviewerId.sync="reviewerId" + :trialId="trialId" :isEN="isEN" @getInfo="getDetail" /> @@ -121,6 +122,7 @@ :DATA="{ ...reviewerData.TrialExperienceView }" :isEN="isEN" :reviewerId.sync="reviewerId" + :trialId="trialId" @getInfo="getDetail" /> @@ -223,6 +225,7 @@ export default { visible: false, loading: false, reviewerId: null, + trialId: null, reviewerData: { BasicInfoView: {}, EmploymentView: {}, @@ -251,6 +254,7 @@ export default { }, async created() { this.$i18n.locale = this.$route.query.lang + this.trialId = this.$route.query.trialId await this.setLanguage(this.$route.query.lang) if (sessionStorage.getItem('reviewerId')) { this.reviewerId = sessionStorage.getItem('reviewerId') @@ -277,8 +281,9 @@ export default { async getDetail() { try { let id = this.reviewerId + let trialId = this.trialId this.loading = true - let res = await getDetail(id) + let res = await getDetail(id, trialId) this.loading = false if (res.IsSuccess) { this.reviewerData = res.Result diff --git a/src/views/trials/trials-panel/attachments/enrollment/components/Selection.vue b/src/views/trials/trials-panel/attachments/enrollment/components/Selection.vue index e20f2886..8bdb8c40 100644 --- a/src/views/trials/trials-panel/attachments/enrollment/components/Selection.vue +++ b/src/views/trials/trials-panel/attachments/enrollment/components/Selection.vue @@ -484,7 +484,7 @@ export default { }, // įŽ€åŽ†é‡‡é›† resumeCollection() { - this.shareLink = `${location.protocol}//${location.host}/ReviewersResearch?lang=${this.$store.getters.language}` + this.shareLink = `${location.protocol}//${location.host}/ReviewersResearch?lang=${this.$store.getters.language}&trialId=${this.$route.query.trialId}` this.email = null this.share_model.visible = true }, @@ -497,7 +497,7 @@ export default { this.emailLoading = true let res = await doctorSendEmail({ Email: this.email, - Url: `ReviewersResearch?lang=${this.$store.getters.language}`, + Url: `ReviewersResearch?lang=${this.$store.getters.language}&trialId=${this.$route.query.trialId}`, }) this.emailLoading = false if (res.IsSuccess) {