当裁判阅片完成后,列表中高亮或加粗显示最近一次裁判选中的阅片结果
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-06-11 11:36:47 +08:00
parent 05e9bbb050
commit e1822126bb
1 changed files with 17 additions and 7 deletions

View File

@ -15,7 +15,8 @@
<el-table :data="tableList" border style="width: 100%">
<el-table-column v-for="item in tableKey" :key="item.key" :prop="item.key" :label="item.title">
<template slot-scope="scope">
<span :class="{ IsHighlight: scope.row.IsHighlight }">{{ scope.row[item.key] }}</span>
<span :class="{ IsHighlight: scope.row.IsHighlight.includes(item.key) }">{{ scope.row[item.key]
}}</span>
</template>
</el-table-column>
</el-table>
@ -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)
}