自动计算与基线相比摄取值变化
parent
c34146ae76
commit
2aef040a34
|
@ -4,7 +4,7 @@ src/utils/*
|
|||
public
|
||||
dist
|
||||
|
||||
src/*
|
||||
# src/*
|
||||
src/views/trials/trials-panel/visit/*
|
||||
src/App.vue
|
||||
src/views/trials/trials-panel/reading/global-review/*
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue