From e1822126bb17426329bba9c6717e68c5697dae6e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 11 Jun 2026 11:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E8=A3=81=E5=88=A4=E9=98=85=E7=89=87?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=EF=BC=8C=E5=88=97=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=88=96=E5=8A=A0=E7=B2=97=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=80=E8=BF=91=E4=B8=80=E6=AC=A1=E8=A3=81=E5=88=A4=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=98=85=E7=89=87=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject-list/components/SubjectChart.vue | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue b/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue index 0357f4dd..240404b9 100644 --- a/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue +++ b/src/views/trials/trials-panel/subject/subject-list/components/SubjectChart.vue @@ -15,7 +15,8 @@ @@ -144,35 +145,44 @@ export default { { title: this.$t(`subjectChart:table:label:visit`), key: 'visit', - IsHighlight: false + IsHighlight: [] } ] Evaluation[0].forEach(key => { let obj = { title: key.Value, key: key.Value, - IsHighlight: key.IsHighlight + IsHighlight: [] } this.tableKey.push(obj) }) this.tableList = [] if (Evaluation[1] && Evaluation[1].length > 0) { - let obj = {} + let obj = { + IsHighlight: [] + } this.tableKey.forEach((item, index) => { if (index === 0) { obj[item.key] = 'R1' } else { obj[item.key] = Evaluation[1][index - 1].DictionaryCode ? this.$fd(Evaluation[1][index - 1].DictionaryCode, parseFloat(Evaluation[1][index - 1].Value)) : Evaluation[1][index - 1].Value - obj.IsHighlight = Evaluation[1][index - 1].IsHighlight + if (Evaluation[1][index - 1].IsHighlight) { + obj.IsHighlight.push(item.key) + } + } }) this.tableList.push(obj) } if (Evaluation[2] && Evaluation[2].length > 0) { - let obj = {} + let obj = { + IsHighlight: [] + } this.tableKey.forEach((item, index) => { obj[item.key] = index === 0 ? 'R2' : Evaluation[2][index - 1].DictionaryCode ? this.$fd(Evaluation[2][index - 1].DictionaryCode, parseFloat(Evaluation[2][index - 1].Value)) : Evaluation[2][index - 1].Value - obj.IsHighlight = index === 0 ? false : Evaluation[2][index - 1].IsHighlight + if (index > 0 && Evaluation[2][index - 1].IsHighlight) { + obj.IsHighlight.push(item.key) + } }) this.tableList.push(obj) }