This commit is contained in:
熊飞
2024-03-07 17:45:21 +08:00
3 changed files with 24 additions and 7 deletions
@@ -35,7 +35,7 @@
<script>
import { saveImageQuality, getDicomReadingQuestionAnswer,getReadingCalculationData } from '@/api/trials'
import { saveImageQuality, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
import QuestionItem from './QuestionItem'
import { mapGetters } from 'vuex'
import FusionEvent from './FusionEvent'
@@ -64,7 +64,8 @@ export default {
questionFormChangeNum: 0,
lungIsInsideVolume: true,
liverIsInsideVolume: true,
uptakeFromBaselineId:''
uptakeFromBaselineId: '',
baseLinePET5PS: null
}
},
computed: {
@@ -96,7 +97,7 @@ export default {
this.visitTaskId = this.$route.query.visitTaskId
this.readingTaskState = parseInt(this.$route.query.readingTaskState)
this.isBaseLineTask = this.$route.query.isBaseLineTask === 'true'
this.initList()
this.initPage()
FusionEvent.$on('refreshQuestions', () => {
this.initList()
})
@@ -131,6 +132,15 @@ export default {
this.questions = questions
}
},
async initPage() {
if (!this.isBaseLineTask) {
this.loading = true
var res = await getReadingCalculationData({ visitTaskId: this.visitTaskId })
this.baseLinePET5PS = res.Result.BaseLinePET5PS
this.loading = false
}
this.initList()
},
initList() {
this.loading = true
var params = {
@@ -205,7 +215,8 @@ export default {
this.$refs['questions'].validate((valid) => {
if (!valid) return
if (!this.lungIsInsideVolume || !this.liverIsInsideVolume) {
this.$alert('当前标记在图像外,不允许保存!', '提示', {
// 当前标记在图像外
this.$alert(this.$t('trials:reading:lugano:warnning:outsideVolume'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: action => {
this.$message({
type: 'info',
@@ -435,6 +446,12 @@ export default {
}
}
}
// 自动计算与基线相比摄取值变化
if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) {
// 当前访视的PET 5ps评分大于基线的PET 5ps评分 增大
// 当前访视的PET 5ps评分小于基线的PET 5ps评分 减小
this.questionForm[this.uptakeFromBaselineId] = this.questionForm[this.pet5PSId] > this.baseLinePET5PS ? '1' : '2'
}
},
setpet5PS() {
console.log('setpet5PS')
@@ -93,7 +93,7 @@
prop=""
:label="qs.questionName"
show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'"
width="150"
>
<template slot-scope="scope">
<div v-if="readingTaskState<2 && (scope.row.AfterQuestionList[index].GlobalReadingShowType === 0 || (scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 1) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 2))">
@@ -284,7 +284,7 @@
</el-table-column>
<el-table-column
:label="$t('common:action:action')"
width="100"
min-width="150"
>
<template slot-scope="scope">
<el-button