From 785ca4ad47e1f24b52c6dddb1bdc7a6308214e5e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 15 Jan 2026 16:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E9=98=85=E7=89=87=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=83=A8=E4=BD=8D=E7=BF=BB=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visit-review/components/StudyList.vue | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue b/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue index 1616a5d4..0ee5ef3e 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/StudyList.vue @@ -20,7 +20,7 @@ study.StudyName }}
@@ -74,18 +74,40 @@ export default { activeFileIndex: -1, taskInfo: null, studyList: [], - pdf + pdf, + BodyPart: {} } }, - mounted() { + async mounted() { this.taskInfo = JSON.parse(localStorage.getItem('taskInfo')) this.studyList = this.visitTaskInfo.StudyList if (this.studyList.length === 0) return this.$nextTick(() => { this.activeStudy(this.studyList[0].Id) }) + this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId) }, methods: { + getBodyPart(bodyPart, other) { + if (!bodyPart && !other) return '' + var separator = ',' + if (bodyPart.indexOf('|') > -1) { + separator = '|' + } else if (bodyPart.indexOf(',') > -1) { + separator = ',' + } else if (bodyPart.indexOf(',') > -1) { + separator = ',' + } + var arr = bodyPart.split(separator) + var newArr = arr.map((i) => { + return this.$fd('Bodypart', i.trim(), 'Code', this.BodyPart, 'Name') + }) + if (other) { + newArr.push(other) + } + newArr = newArr.filter(Boolean) + return newArr.join(' | ') + }, // 设置初始化激活文件 setInitActiveFile() { if (this.studyList.length === 0) return