受试者阅片结果趋势图优化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8c83897c6e
commit
ee34e6cdc2
|
|
@ -15,7 +15,7 @@
|
|||
<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>{{ scope.row[item.key] }}</span>
|
||||
<span :class="{ IsHighlight: scope.row.IsHighlight }">{{ scope.row[item.key] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,8 @@
|
|||
:title="$t('trials:subject:title:report')" @click="handleMessage(scope.row)" />
|
||||
<!-- 图表 -->
|
||||
<el-button v-hasPermi="['trials:trials-panel:subject:chart']" v-if="isShowChart" icon="el-icon-s-data"
|
||||
circle :title="$t('trials:subject:title:chart')" @click="handleopenSubjectChart(scope.row)" />
|
||||
circle :title="$t('trials:subject:title:chart')" :disabled="!scope.row.IsHaveTaskFinished"
|
||||
@click="handleopenSubjectChart(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue