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 f3756c28..0357f4dd 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,7 @@
- {{ scope.row[item.key] }}
+ {{ scope.row[item.key] }}
@@ -143,13 +143,15 @@ export default {
this.tableKey = [
{
title: this.$t(`subjectChart:table:label:visit`),
- key: 'visit'
+ key: 'visit',
+ IsHighlight: false
}
]
Evaluation[0].forEach(key => {
let obj = {
title: key.Value,
key: key.Value,
+ IsHighlight: key.IsHighlight
}
this.tableKey.push(obj)
})
@@ -160,8 +162,8 @@ export default {
if (index === 0) {
obj[item.key] = 'R1'
} else {
- console.log(Evaluation[1][index - 1].DictionaryCode, Evaluation[1][index - 1].Value)
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
}
})
this.tableList.push(obj)
@@ -170,6 +172,7 @@ export default {
let obj = {}
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
})
this.tableList.push(obj)
}
@@ -317,6 +320,10 @@ export default {
margin: auto;
}
+.IsHighlight {
+ color: red;
+}
+
.chartBox {
display: flex;
diff --git a/src/views/trials/trials-panel/subject/subject-list/index.vue b/src/views/trials/trials-panel/subject/subject-list/index.vue
index 5ec8e551..2c6176ee 100644
--- a/src/views/trials/trials-panel/subject/subject-list/index.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/index.vue
@@ -141,7 +141,8 @@
:title="$t('trials:subject:title:report')" @click="handleMessage(scope.row)" />
+ circle :title="$t('trials:subject:title:chart')" :disabled="!scope.row.IsHaveTaskFinished"
+ @click="handleopenSubjectChart(scope.row)" />