From 3633de8c35f4e012914b051220a3823615e8fe84 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 30 Oct 2024 10:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8E=86=E4=B8=B4=E5=BA=8A=E8=AF=95?= =?UTF-8?q?=E9=AA=8C=E7=BB=8F=E5=8E=86=E6=B7=BB=E5=8A=A0=E9=80=82=E5=BA=94?= =?UTF-8?q?=E7=97=87=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reviewers/components/TrialExperience.vue | 53 ++++++++++++++++-- .../components/info/clinicalTrials.vue | 56 ++++++++++++++++--- 2 files changed, 94 insertions(+), 15 deletions(-) diff --git a/src/views/reviewers/components/TrialExperience.vue b/src/views/reviewers/components/TrialExperience.vue index bf0676b3..5f761976 100644 --- a/src/views/reviewers/components/TrialExperience.vue +++ b/src/views/reviewers/components/TrialExperience.vue @@ -93,15 +93,16 @@ :disabled="$route.query.ReviewStatus === '1'" @click="handleEdit(scope.row)" > - {{ $t('common:button:edit') }} + {{ $t('common:button:edit') }} + {{ $t('common:button:delete') }} + {{ $t('common:button:delete') }} + @@ -250,13 +251,33 @@ :min="0" /> + + + + + + - + { OtherStages: '', OtherCriterion: '', IndicationEnum: null, + IndicationTypeId: null, } } export default { @@ -377,6 +399,17 @@ export default { } }, computed: { + IndicationOptions() { + if (!this.clinicalTrialForm.IndicationTypeId) return [] + let indicationGrouping = this.$d.IndicationType.filter( + (item) => item.id === this.clinicalTrialForm.IndicationTypeId + )[0].raw.ChildGroup + let arr = + this.$d.Indication.filter( + (item) => indicationGrouping === item.raw.ChildGroup + ) || [] + return arr + }, IndicationEnum_isOther() { if (!this.clinicalTrialForm.IndicationEnum) return false let value = this.$d.Indication.find( @@ -431,7 +464,7 @@ export default { }, IndicationEnum_isOther() { if (!this.IndicationEnum_isOther) { - this.form.EvaluationContent = null + this.clinicalTrialForm.EvaluationContent = null } }, }, @@ -487,6 +520,8 @@ export default { VisitReadingCount, OtherStages, OtherCriterion, + IndicationEnum, + IndicationTypeId, } = row this.clinicalTrialForm = Object.assign({}, getClinicalTrialDefault()) this.clinicalTrialDialogTitle = 'Edit' @@ -500,6 +535,8 @@ export default { this.clinicalTrialForm.EvaluationContent = EvaluationContent this.clinicalTrialForm.OtherStages = OtherStages this.clinicalTrialForm.OtherCriterion = OtherCriterion + this.clinicalTrialForm.IndicationEnum = IndicationEnum + this.clinicalTrialForm.IndicationTypeId = IndicationTypeId }, handleSave() { this.$refs.clinicalTrialForm.validate((valid) => { @@ -583,6 +620,10 @@ export default { } }) }, + handleIndicationTypeChange(val) { + this.clinicalTrialForm.EvaluationContent = null + this.clinicalTrialForm.IndicationEnum = null + }, }, } diff --git a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue index 18be2ec1..fd809c46 100644 --- a/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue +++ b/src/views/reviewers/curriculumVitae/components/info/clinicalTrials.vue @@ -48,12 +48,14 @@ prop="EvaluationContent" :label="$t('curriculumVitae:clinicalTrials:table:indication')" > - - {{ scope.row.EvaluationContent }} - - - {{ $fd('Indication', scope.row.IndicationEnum) }} - + + + + + + + - + { OtherStages: '', OtherCriterion: '', IndicationEnum: null, + IndicationTypeId: null, } } const defaultCertificateForm = () => { @@ -624,6 +647,17 @@ export default { }, }, computed: { + IndicationOptions() { + if (!this.form.IndicationTypeId) return [] + let indicationGrouping = this.$d.IndicationType.filter( + (item) => item.id === this.form.IndicationTypeId + )[0].raw.ChildGroup + let arr = + this.$d.Indication.filter( + (item) => indicationGrouping === item.raw.ChildGroup + ) || [] + return arr + }, GCPData() { if (!this.DATA) return [] return [ @@ -927,6 +961,10 @@ export default { this.certificateForm = defaultCertificateForm() } }, + handleIndicationTypeChange(val) { + this.form.EvaluationContent = null + this.form.IndicationEnum = null + }, }, }