熊飞 2024-03-11 17:54:09 +08:00
commit 195c176c34
10 changed files with 63 additions and 24 deletions

View File

@ -803,6 +803,7 @@ export default {
}, },
removeAnnotation(obj) { removeAnnotation(obj) {
const { otherMeasureData, type } = obj const { otherMeasureData, type } = obj
if(!otherMeasureData || !otherMeasureData.data) return
const { data } = otherMeasureData const { data } = otherMeasureData
const i = this.measureDatas.findIndex(item => item.OtherMeasureData && item.OtherMeasureData.data.remark === data.remark) const i = this.measureDatas.findIndex(item => item.OtherMeasureData && item.OtherMeasureData.data.remark === data.remark)
if (i > -1) { if (i > -1) {

View File

@ -229,15 +229,13 @@
:liver-is-inside-volume="liverIsInsideVolume" :liver-is-inside-volume="liverIsInsideVolume"
@setFormItemData="setFormItemData" @setFormItemData="setFormItemData"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
@addAnnotation="addAnnotation"
@removeAnnotation="removeAnnotation"
@locateAnnotation="locateAnnotation"
/> />
</template> </template>
</div> </div>
</template> </template>
<script> <script>
// import { uploadReadingAnswerImage } from '@/api/trials' // import { uploadReadingAnswerImage } from '@/api/trials'
import FusionEvent from './FusionEvent'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
name: 'QuestionItem', name: 'QuestionItem',
@ -328,13 +326,23 @@ export default {
this.$emit('setFormItemData', obj) this.$emit('setFormItemData', obj)
}, },
addAnnotation(question) { addAnnotation(question) {
this.$emit('addAnnotation', question) FusionEvent.$emit('addAnnotation', question)
}, },
removeAnnotation(question) { removeAnnotation(question) {
this.$emit('removeAnnotation', question) FusionEvent.$emit('locateAnnotation', question)
//
this.$confirm(this.$t('trials:reading:warnning:msg47'), {
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
FusionEvent.$emit('removeAnnotation', question)
})
.catch(() => {})
}, },
locateAnnotation(question) { locateAnnotation(question) {
this.$emit('locateAnnotation', question) FusionEvent.$emit('locateAnnotation', question)
}, },
async uploadScreenshot(param) { async uploadScreenshot(param) {
if (!this.visitTaskId) return if (!this.visitTaskId) return

View File

@ -18,9 +18,6 @@
:liver-is-inside-volume="liverIsInsideVolume" :liver-is-inside-volume="liverIsInsideVolume"
@setFormItemData="setFormItemData" @setFormItemData="setFormItemData"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
@addAnnotation="addAnnotation"
@removeAnnotation="removeAnnotation"
@locateAnnotation="locateAnnotation"
/> />
</template> </template>
<el-form-item v-if="readingTaskState < 2"> <el-form-item v-if="readingTaskState < 2">
@ -105,10 +102,22 @@ export default {
console.log('resetSuvQuestions') console.log('resetSuvQuestions')
this.resetSuvQuestions() this.resetSuvQuestions()
}) })
FusionEvent.$on('addAnnotation', obj => {
this.addAnnotation(obj)
})
FusionEvent.$on('removeAnnotation', obj => {
this.removeAnnotation(obj)
})
FusionEvent.$on('locateAnnotation', obj => {
this.locateAnnotation(obj)
})
}, },
beforeDestroy() { beforeDestroy() {
FusionEvent.$off('refreshQuestions') FusionEvent.$off('refreshQuestions')
FusionEvent.$off('resetSuvQuestions') FusionEvent.$off('resetSuvQuestions')
FusionEvent.$off('addAnnotation')
FusionEvent.$off('removeAnnotation')
FusionEvent.$off('locateAnnotation')
}, },
methods: { methods: {
getQuestions1() { getQuestions1() {

View File

@ -571,7 +571,7 @@ export default {
const refName = `${this.activeItem.activeCollapseId}_${this.activeItem.activeRowIndex}` const refName = `${this.activeItem.activeCollapseId}_${this.activeItem.activeRowIndex}`
if (this.$refs[refName][0].questionForm.IsDicomReading !== false) { if (this.$refs[refName][0].questionForm.IsDicomReading !== false) {
var markTool = 'CircleROI' var markTool = 'CircleROI'
var isMarked = !!this.$refs[refName][0].questionForm.OtherMeasureData || this.$refs[refName][0].questionForm.saveTypeEnum === 2 var isMarked = !!this.$refs[refName][0].questionForm.OtherMeasureData
} }
FusionEvent.$emit('imageLocation', { otherMeasureData: this.$refs[refName][0].questionForm.OtherMeasureData, markTool, isMarked }) FusionEvent.$emit('imageLocation', { otherMeasureData: this.$refs[refName][0].questionForm.OtherMeasureData, markTool, isMarked })
}) })

View File

@ -271,14 +271,12 @@
:visit-task-id="visitTaskId" :visit-task-id="visitTaskId"
@setFormItemData="setFormItemData" @setFormItemData="setFormItemData"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
@addAnnotation="addAnnotation"
@removeAnnotation="removeAnnotation"
@locateAnnotation="locateAnnotation"
/> />
</div> </div>
</template> </template>
<script> <script>
import { uploadReadingAnswerImage } from '@/api/trials' // import { uploadReadingAnswerImage } from '@/api/trials'
import DicomEvent from './DicomEvent'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
name: 'QuestionItem', name: 'QuestionItem',
@ -368,13 +366,22 @@ export default {
this.$emit('setFormItemData', obj) this.$emit('setFormItemData', obj)
}, },
addAnnotation(question) { addAnnotation(question) {
this.$emit('addAnnotation', question) DicomEvent.$emit('addAnnotation', question)
}, },
removeAnnotation(question) { removeAnnotation(question) {
this.$emit('removeAnnotation', question) DicomEvent.$emit('locateAnnotation', question)
//
this.$confirm(this.$t('trials:reading:warnning:msg47'), {
type: 'warning',
distinguishCancelAndClose: true
})
.then(() => {
DicomEvent.$emit('removeAnnotation', question)
})
.catch(() => {})
}, },
locateAnnotation(question) { locateAnnotation(question) {
this.$emit('locateAnnotation', question) DicomEvent.$emit('locateAnnotation', question)
}, },
async uploadScreenshot(param) { async uploadScreenshot(param) {
if (!this.visitTaskId) return if (!this.visitTaskId) return

View File

@ -16,9 +16,6 @@
:visit-task-id="visitTaskId" :visit-task-id="visitTaskId"
@setFormItemData="setFormItemData" @setFormItemData="setFormItemData"
@resetFormItemData="resetFormItemData" @resetFormItemData="resetFormItemData"
@addAnnotation="addAnnotation"
@removeAnnotation="removeAnnotation"
@locateAnnotation="locateAnnotation"
/> />
<el-form-item v-if="readingTaskState < 2 && !isFirstChangeTask"> <el-form-item v-if="readingTaskState < 2 && !isFirstChangeTask">
@ -113,9 +110,21 @@ export default {
DicomEvent.$on('handleSaveQuestions', readingTaskState => { DicomEvent.$on('handleSaveQuestions', readingTaskState => {
this.handleSave() this.handleSave()
}) })
DicomEvent.$on('addAnnotation', obj => {
this.addAnnotation(obj)
})
DicomEvent.$on('removeAnnotation', obj => {
this.removeAnnotation(obj)
})
DicomEvent.$on('locateAnnotation', obj => {
this.locateAnnotation(obj)
})
}, },
beforeDestroy() { beforeDestroy() {
DicomEvent.$off('setReadingState') DicomEvent.$off('setReadingState')
DicomEvent.$off('addAnnotation')
DicomEvent.$off('removeAnnotation')
DicomEvent.$off('locateAnnotation')
}, },
methods: { methods: {
async getQuestions(visitTaskId) { async getQuestions(visitTaskId) {

View File

@ -66,6 +66,7 @@
<el-table-column <el-table-column
:label="$t('trials:adReview:table:view')" :label="$t('trials:adReview:table:view')"
width="200" width="200"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 查看R1详情 --> <!-- 查看R1详情 -->

View File

@ -103,7 +103,8 @@
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="200" width="100"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -204,7 +205,8 @@
<el-table-column <el-table-column
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="200" width="120"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

View File

@ -136,7 +136,8 @@
<el-table-column <el-table-column
v-if="oncologyInfo.IsShowDetail" v-if="oncologyInfo.IsShowDetail"
:label="$t('common:action:action')" :label="$t('common:action:action')"
width="100" width="120"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 查看详情 --> <!-- 查看详情 -->

View File

@ -63,7 +63,8 @@
prop="ArmEnum" prop="ArmEnum"
:label="$t('trials:medicalFeedback:title:currentReader')" :label="$t('trials:medicalFeedback:title:currentReader')"
show-overflow-tooltip show-overflow-tooltip
width="100" width="120"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button