【趋势图】趋势图访视结果后增加查看按钮,可以查看已阅结果
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
18482ddaa9
commit
69ba30e5a9
|
|
@ -13,10 +13,13 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<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, index) in tableKey" :key="item.key" :prop="item.key" :label="item.title">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span :class="{ IsHighlight: scope.row.IsHighlight.includes(item.key) }">{{ scope.row[item.key]
|
<span :class="{ IsHighlight: scope.row.IsHighlight.includes(item.key) }">{{ scope.row[item.key]
|
||||||
}}</span>
|
}}</span>
|
||||||
|
<el-button icon="el-icon-view" circle v-if="index > 0" size="mini" style="margin-left: 5px;"
|
||||||
|
:title="$t('common:button:view')"
|
||||||
|
@click="lookReadingResults(scope.row.VisitTaskId[item.key])"></el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -49,6 +52,7 @@ import {
|
||||||
} from '@/api/trials'
|
} from '@/api/trials'
|
||||||
import * as echarts from 'echarts/core';
|
import * as echarts from 'echarts/core';
|
||||||
import { LineChart } from 'echarts/charts';
|
import { LineChart } from 'echarts/charts';
|
||||||
|
import { getToken } from '@/utils/auth'
|
||||||
import {
|
import {
|
||||||
TitleComponent,
|
TitleComponent,
|
||||||
TooltipComponent,
|
TooltipComponent,
|
||||||
|
|
@ -108,13 +112,33 @@ export default {
|
||||||
tableKey: [],
|
tableKey: [],
|
||||||
tableList: [],
|
tableList: [],
|
||||||
R1ChartList: [],
|
R1ChartList: [],
|
||||||
R2ChartList: []
|
R2ChartList: [],
|
||||||
|
openWindow: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getTrialCriterionList()
|
this.getTrialCriterionList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查看阅片结果
|
||||||
|
lookReadingResults(id) {
|
||||||
|
if (this.openWindow) {
|
||||||
|
this.openWindow.close()
|
||||||
|
}
|
||||||
|
var token = getToken()
|
||||||
|
var path = null
|
||||||
|
let trialCriterion = this.trialCriterionList.find(item => item.TrialReadingCriterionId === this.TrialReadingCriterionId)
|
||||||
|
let trialId = this.$route.query.trialId
|
||||||
|
if (trialCriterion.ReadingTool === 0 || trialCriterion.ReadingTool === 2 || trialCriterion.ReadingTool === 3) {
|
||||||
|
path = `/readingDicoms?TrialReadingCriterionId=${this.TrialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.data.Code}&subjectId=${this.data.Id}&visitTaskId=${id}&isReadingTaskViewInOrder=${trialCriterion.IsReadingTaskViewInOrder}&criterionType=${trialCriterion.CriterionType}&readingTool=${trialCriterion.ReadingTool}&TokenKey=${token}`
|
||||||
|
} else {
|
||||||
|
path = `/noneDicomReading?TrialReadingCriterionId=${this.TrialReadingCriterionId}&trialId=${trialId}&subjectCode=${this.data.Code}&subjectId=${this.data.Id}&visitTaskId=${id}&isReadingTaskViewInOrder=${trialCriterion.IsReadingTaskViewInOrder}&criterionType=${trialCriterion.CriterionType}&readingTool=${trialCriterion.ReadingTool}&TokenKey=${token}`
|
||||||
|
}
|
||||||
|
// const routeData = this.$router.resolve({
|
||||||
|
// path: `/readingPage?subjectId=${row.SubjectId}&trialId=${row.TrialId}&visitTaskId=${row.Id}&TokenKey=${token}`
|
||||||
|
// })
|
||||||
|
this.openWindow = window.open(path, '_blank')
|
||||||
|
},
|
||||||
handleChange(v) {
|
handleChange(v) {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
@ -159,12 +183,14 @@ export default {
|
||||||
this.tableList = []
|
this.tableList = []
|
||||||
if (Evaluation[1] && Evaluation[1].length > 0) {
|
if (Evaluation[1] && Evaluation[1].length > 0) {
|
||||||
let obj = {
|
let obj = {
|
||||||
IsHighlight: []
|
IsHighlight: [],
|
||||||
|
VisitTaskId: {}
|
||||||
}
|
}
|
||||||
this.tableKey.forEach((item, index) => {
|
this.tableKey.forEach((item, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
obj[item.key] = 'R1'
|
obj[item.key] = 'R1'
|
||||||
} else {
|
} else {
|
||||||
|
obj.VisitTaskId[item.key] = Evaluation[1][index - 1].VisitTaskId
|
||||||
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
|
||||||
if (Evaluation[1][index - 1].IsHighlight) {
|
if (Evaluation[1][index - 1].IsHighlight) {
|
||||||
obj.IsHighlight.push(item.key)
|
obj.IsHighlight.push(item.key)
|
||||||
|
|
@ -176,13 +202,17 @@ export default {
|
||||||
}
|
}
|
||||||
if (Evaluation[2] && Evaluation[2].length > 0) {
|
if (Evaluation[2] && Evaluation[2].length > 0) {
|
||||||
let obj = {
|
let obj = {
|
||||||
IsHighlight: []
|
IsHighlight: [],
|
||||||
|
VisitTaskId: {}
|
||||||
}
|
}
|
||||||
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
|
||||||
if (index > 0 && Evaluation[2][index - 1].IsHighlight) {
|
if (index > 0 && Evaluation[2][index - 1].IsHighlight) {
|
||||||
obj.IsHighlight.push(item.key)
|
obj.IsHighlight.push(item.key)
|
||||||
}
|
}
|
||||||
|
if (index > 0) {
|
||||||
|
obj.VisitTaskId[item.key] = Evaluation[2][index - 1].VisitTaskId
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.tableList.push(obj)
|
this.tableList.push(obj)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue