受试者阅片结果趋势图优化
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 :data="tableList" border style="width: 100%">
|
||||||
<el-table-column v-for="item in tableKey" :key="item.key" :prop="item.key" :label="item.title">
|
<el-table-column v-for="item in tableKey" :key="item.key" :prop="item.key" :label="item.title">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row[item.key] }}</span>
|
<span :class="{ IsHighlight: scope.row.IsHighlight }">{{ scope.row[item.key] }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -143,13 +143,15 @@ export default {
|
||||||
this.tableKey = [
|
this.tableKey = [
|
||||||
{
|
{
|
||||||
title: this.$t(`subjectChart:table:label:visit`),
|
title: this.$t(`subjectChart:table:label:visit`),
|
||||||
key: 'visit'
|
key: 'visit',
|
||||||
|
IsHighlight: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
Evaluation[0].forEach(key => {
|
Evaluation[0].forEach(key => {
|
||||||
let obj = {
|
let obj = {
|
||||||
title: key.Value,
|
title: key.Value,
|
||||||
key: key.Value,
|
key: key.Value,
|
||||||
|
IsHighlight: key.IsHighlight
|
||||||
}
|
}
|
||||||
this.tableKey.push(obj)
|
this.tableKey.push(obj)
|
||||||
})
|
})
|
||||||
|
|
@ -160,8 +162,8 @@ export default {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
obj[item.key] = 'R1'
|
obj[item.key] = 'R1'
|
||||||
} else {
|
} 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[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)
|
this.tableList.push(obj)
|
||||||
|
|
@ -170,6 +172,7 @@ export default {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
this.tableKey.forEach((item, index) => {
|
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[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)
|
this.tableList.push(obj)
|
||||||
}
|
}
|
||||||
|
|
@ -317,6 +320,10 @@ export default {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.IsHighlight {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
.chartBox {
|
.chartBox {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,8 @@
|
||||||
:title="$t('trials:subject:title:report')" @click="handleMessage(scope.row)" />
|
: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"
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue