From 0f845df8dd1b5b08784cdf07460c9f51cde4c006 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 16 Jan 2026 10:29:57 +0800 Subject: [PATCH] =?UTF-8?q?CRC=E5=9C=A8=E5=BD=B1=E5=83=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=97=B6=E5=BD=95=E5=85=A5=E7=9A=84=E6=98=AF=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E7=9A=84=E9=83=A8=E4=BD=8D=EF=BC=8C=E4=BD=86=E6=98=AF?= =?UTF-8?q?=E5=9C=A8Study=E9=A1=B5=E9=9D=A2=E5=92=8CReading=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA=E7=9A=84=E9=83=A8=E4=BD=8D=E5=8D=B4?= =?UTF-8?q?=E4=B8=BA=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-panel/study/index.vue | 273 ++++++------------ 1 file changed, 95 insertions(+), 178 deletions(-) diff --git a/src/views/trials/trials-panel/study/index.vue b/src/views/trials/trials-panel/study/index.vue index 65d26fad..da4ca5bd 100644 --- a/src/views/trials/trials-panel/study/index.vue +++ b/src/views/trials/trials-panel/study/index.vue @@ -5,18 +5,9 @@ - - + + @@ -25,19 +16,9 @@ - - + + {{ item.VisitName }} @@ -45,12 +26,7 @@ - + @@ -60,11 +36,7 @@ {{ $t("common:button:search") }} - + {{ $t("common:button:reset") }} @@ -73,42 +45,22 @@ - + - - - + + + - + - + @@ -327,30 +237,17 @@
- 复制链接及提取码 + 复制链接及提取码
- -
- + +
+
@@ -411,16 +308,36 @@ export default { trialId: this.$route.query.trialId, tokenKey: getToken(), openWindow: null, - bp: [], + BodyPart: {} }; }, async mounted() { - this.bp = await this.$getBodyPart(this.$route.query.trialId); + this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId) this.getSite(); this.getVisitPlanOptions(); this.getList(); }, 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(' | ') + }, // 获取检查列表数据 getList() { this.loading = true; @@ -550,28 +467,28 @@ export default { this.loading = false; }); }, - getBodyPart(bodyPart) { - if (!bodyPart) 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", - { Bodypart: this.bp }, - "Name" - ); - }); - return newArr.join(" | "); - }, + // getBodyPart(bodyPart) { + // if (!bodyPart) 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", + // { Bodypart: this.bp }, + // "Name" + // ); + // }); + // return newArr.join(" | "); + // }, // 复制 copyCode() { this.$copyText(`链接: ${this.shareLink} 提取码: ${this.extractionCode}`)