熊飞 2024-03-07 17:45:21 +08:00
commit c1c52f007f
3 changed files with 24 additions and 7 deletions

View File

@ -4,7 +4,7 @@ src/utils/*
public public
dist dist
src/* # src/*
src/views/trials/trials-panel/visit/* src/views/trials/trials-panel/visit/*
src/App.vue src/App.vue
src/views/trials/trials-panel/reading/global-review/* src/views/trials/trials-panel/reading/global-review/*

View File

@ -35,7 +35,7 @@
<script> <script>
import { saveImageQuality, getDicomReadingQuestionAnswer,getReadingCalculationData } from '@/api/trials' import { saveImageQuality, getDicomReadingQuestionAnswer, getReadingCalculationData } from '@/api/trials'
import QuestionItem from './QuestionItem' import QuestionItem from './QuestionItem'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import FusionEvent from './FusionEvent' import FusionEvent from './FusionEvent'
@ -64,7 +64,8 @@ export default {
questionFormChangeNum: 0, questionFormChangeNum: 0,
lungIsInsideVolume: true, lungIsInsideVolume: true,
liverIsInsideVolume: true, liverIsInsideVolume: true,
uptakeFromBaselineId:'' uptakeFromBaselineId: '',
baseLinePET5PS: null
} }
}, },
computed: { computed: {
@ -96,7 +97,7 @@ export default {
this.visitTaskId = this.$route.query.visitTaskId this.visitTaskId = this.$route.query.visitTaskId
this.readingTaskState = parseInt(this.$route.query.readingTaskState) this.readingTaskState = parseInt(this.$route.query.readingTaskState)
this.isBaseLineTask = this.$route.query.isBaseLineTask === 'true' this.isBaseLineTask = this.$route.query.isBaseLineTask === 'true'
this.initList() this.initPage()
FusionEvent.$on('refreshQuestions', () => { FusionEvent.$on('refreshQuestions', () => {
this.initList() this.initList()
}) })
@ -131,6 +132,15 @@ export default {
this.questions = questions 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() { initList() {
this.loading = true this.loading = true
var params = { var params = {
@ -205,7 +215,8 @@ export default {
this.$refs['questions'].validate((valid) => { this.$refs['questions'].validate((valid) => {
if (!valid) return if (!valid) return
if (!this.lungIsInsideVolume || !this.liverIsInsideVolume) { if (!this.lungIsInsideVolume || !this.liverIsInsideVolume) {
this.$alert('当前标记在图像外,不允许保存!', '提示', { //
this.$alert(this.$t('trials:reading:lugano:warnning:outsideVolume'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: action => { callback: action => {
this.$message({ this.$message({
type: 'info', 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() { setpet5PS() {
console.log('setpet5PS') console.log('setpet5PS')

View File

@ -93,7 +93,7 @@
prop="" prop=""
:label="qs.questionName" :label="qs.questionName"
show-overflow-tooltip show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'" width="150"
> >
<template slot-scope="scope"> <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))"> <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>
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="100" min-width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button