肝脏评估和PET5PS评估逻辑优化
parent
1825ac34e1
commit
afd362ba72
|
@ -45,7 +45,7 @@
|
|||
@click="locateAnnotation(question)"
|
||||
>{{ $t('trials:lugano:button:locateAnnotation') }}</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button v-if="questionForm[question.Id] && readingTaskState!== 2 && question.SaveEnum === 1" size="mini" type="text" style="padding: '7px 5px';margin-left:-5px;" @click="saveAnnotation(question)">
|
||||
<el-button v-if="readingTaskState!== 2 && question.SaveEnum === 1" size="mini" type="text" style="padding: '7px 5px';margin-left:-5px;" @click="saveAnnotation(question)">
|
||||
<!-- 未保存 -->
|
||||
<el-tooltip class="item" effect="dark" :content="$t('trials:reading:button:unsaved')" placement="bottom">
|
||||
<i class="el-icon-warning" style="color:red" />
|
||||
|
|
|
@ -328,6 +328,10 @@ export default {
|
|||
var idx = this.measurements.findIndex(i => i.QuestionId === Id)
|
||||
if (idx === -1) return
|
||||
this.$set(this.questionForm, Id, '')
|
||||
|
||||
if (!this.questionForm[this.liverSuvmaxId] && !this.questionForm[this.lungSuvmaxId]) {
|
||||
this.clearPet5PS()
|
||||
}
|
||||
// var pet5PS = this.setpet5PS()
|
||||
// this.questionForm[this.pet5PSId] = pet5PS
|
||||
// this.calculatePet5PS = pet5PS
|
||||
|
@ -336,6 +340,7 @@ export default {
|
|||
FusionEvent.$emit('removeAnnotation', { otherMeasureData: this.measurements[idx].OtherMeasureData, type: 'clear' })
|
||||
var remark = this.measurements[idx].OtherMeasureData.data.remark
|
||||
remark === 'Liver' ? this.liverIsInsideVolume = true : remark === 'Mediastinum' ? this.lungIsInsideVolume = true : ''
|
||||
this.setQuestionStatus(this.questions, this.measurements[idx].QuestionType)
|
||||
this.measurements.splice(idx, 1)
|
||||
},
|
||||
locateAnnotation(obj) {
|
||||
|
@ -347,6 +352,18 @@ export default {
|
|||
|
||||
FusionEvent.$emit('imageLocation', { otherMeasureData: otherMeasureData })
|
||||
},
|
||||
clearPet5PS() {
|
||||
this.questionForm[this.pet5PSId] = ''
|
||||
this.questionForm[this.uptakeFromBaselineId] = ''
|
||||
for (let i = 0; i < this.questions[0].Childrens[0].Childrens.length; i++) {
|
||||
if (this.questions[0].Childrens[0].Childrens[i].QuestionType === 59) {
|
||||
this.questions[0].Childrens[0].Childrens[i].ShowQuestion = 2
|
||||
this.questions[0].Childrens[0].Childrens[i].IsRequired = 3
|
||||
this.questionForm[this.pet5PSCommentsId] = ''
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
saveAnnotation(question) {
|
||||
if ((question.QuestionType === 51 && !this.liverIsInsideVolume) || (question.QuestionType === 52 && !this.lungIsInsideVolume)) {
|
||||
// 当前标记在图像外
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<!-- 定位 -->
|
||||
<el-button v-if="questionForm[question.Id]" size="mini" type="text" @click="locateAnnotation(question)">{{ $t('trials:lugano:button:locateAnnotation') }}</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button v-if="questionForm[question.Id] && readingTaskState!== 2 && question.SaveEnum === 1" size="mini" type="text" @click="saveAnnotation(question)">
|
||||
<el-button v-if="readingTaskState!== 2 && question.SaveEnum === 1" size="mini" type="text" @click="saveAnnotation(question)">
|
||||
<!-- 未保存 -->
|
||||
<el-tooltip class="item" effect="dark" :content="$t('trials:reading:button:unsaved')" placement="bottom">
|
||||
<i class="el-icon-warning" style="color:red" />
|
||||
|
|
|
@ -505,17 +505,33 @@ export default {
|
|||
var idx = this.measurements.findIndex(i => i.QuestionId === Id)
|
||||
if (idx === -1) return
|
||||
this.$set(this.questionForm, Id, '')
|
||||
if (!this.questionForm[this.spleenTopId] && !this.questionForm[this.spleenBottomId]) {
|
||||
this.clearSpleenStatus()
|
||||
}
|
||||
// if (obj.QuestionType === 60 || obj.QuestionType === 61) {
|
||||
// this.$set(this.questionForm, this.spleenStatusId, '')
|
||||
// this.$set(this.questionForm, this.spleenLengthId, '')
|
||||
// }
|
||||
await store.dispatch('reading/removeNonTargetMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.measurements[idx].MeasureData, questionId: Id })
|
||||
this.setQuestionStatus(this.questions, this.measurements[idx].QuestionType)
|
||||
this.measurements.splice(idx, 1)
|
||||
DicomEvent.$emit('getMeasureData')
|
||||
// this.calculateSpleenStatus = ''
|
||||
// this.setSpleenCommentDisplay()
|
||||
this.formChanged = true
|
||||
},
|
||||
clearSpleenStatus() {
|
||||
this.$set(this.questionForm, this.spleenStatusId, '')
|
||||
this.$set(this.questionForm, this.spleenLengthId, '')
|
||||
for (let i = 0; i < this.questions[0].Childrens.length; i++) {
|
||||
if (this.questions[0].Childrens[i].QuestionType === 58) {
|
||||
this.questions[0].Childrens[i].ShowQuestion = 2
|
||||
this.questions[0].Childrens[i].IsRequired = 3
|
||||
this.questionForm[this.spleenCommentsId] = ''
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
saveAnnotation(question) {
|
||||
this.loading = true
|
||||
// 获取截图
|
||||
|
|
Loading…
Reference in New Issue