非表格问题清除病灶,添加定位及确认提示
parent
f67a5a9f43
commit
2a4ddaf6f2
|
@ -803,6 +803,7 @@ export default {
|
|||
},
|
||||
removeAnnotation(obj) {
|
||||
const { otherMeasureData, type } = obj
|
||||
if(!otherMeasureData || !otherMeasureData.data) return
|
||||
const { data } = otherMeasureData
|
||||
const i = this.measureDatas.findIndex(item => item.OtherMeasureData && item.OtherMeasureData.data.remark === data.remark)
|
||||
if (i > -1) {
|
||||
|
|
|
@ -229,15 +229,13 @@
|
|||
:liver-is-inside-volume="liverIsInsideVolume"
|
||||
@setFormItemData="setFormItemData"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@addAnnotation="addAnnotation"
|
||||
@removeAnnotation="removeAnnotation"
|
||||
@locateAnnotation="locateAnnotation"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
// import { uploadReadingAnswerImage } from '@/api/trials'
|
||||
import FusionEvent from './FusionEvent'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: 'QuestionItem',
|
||||
|
@ -328,13 +326,23 @@ export default {
|
|||
this.$emit('setFormItemData', obj)
|
||||
},
|
||||
addAnnotation(question) {
|
||||
this.$emit('addAnnotation', question)
|
||||
FusionEvent.$emit('addAnnotation', 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) {
|
||||
this.$emit('locateAnnotation', question)
|
||||
FusionEvent.$emit('locateAnnotation', question)
|
||||
},
|
||||
async uploadScreenshot(param) {
|
||||
if (!this.visitTaskId) return
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
:liver-is-inside-volume="liverIsInsideVolume"
|
||||
@setFormItemData="setFormItemData"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@addAnnotation="addAnnotation"
|
||||
@removeAnnotation="removeAnnotation"
|
||||
@locateAnnotation="locateAnnotation"
|
||||
/>
|
||||
</template>
|
||||
<el-form-item v-if="readingTaskState < 2">
|
||||
|
@ -105,10 +102,22 @@ export default {
|
|||
console.log('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() {
|
||||
FusionEvent.$off('refreshQuestions')
|
||||
FusionEvent.$off('resetSuvQuestions')
|
||||
FusionEvent.$off('addAnnotation')
|
||||
FusionEvent.$off('removeAnnotation')
|
||||
FusionEvent.$off('locateAnnotation')
|
||||
},
|
||||
methods: {
|
||||
getQuestions1() {
|
||||
|
|
|
@ -271,14 +271,12 @@
|
|||
:visit-task-id="visitTaskId"
|
||||
@setFormItemData="setFormItemData"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@addAnnotation="addAnnotation"
|
||||
@removeAnnotation="removeAnnotation"
|
||||
@locateAnnotation="locateAnnotation"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { uploadReadingAnswerImage } from '@/api/trials'
|
||||
// import { uploadReadingAnswerImage } from '@/api/trials'
|
||||
import DicomEvent from './DicomEvent'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: 'QuestionItem',
|
||||
|
@ -368,13 +366,22 @@ export default {
|
|||
this.$emit('setFormItemData', obj)
|
||||
},
|
||||
addAnnotation(question) {
|
||||
this.$emit('addAnnotation', question)
|
||||
DicomEvent.$emit('addAnnotation', 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) {
|
||||
this.$emit('locateAnnotation', question)
|
||||
DicomEvent.$emit('locateAnnotation', question)
|
||||
},
|
||||
async uploadScreenshot(param) {
|
||||
if (!this.visitTaskId) return
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
:visit-task-id="visitTaskId"
|
||||
@setFormItemData="setFormItemData"
|
||||
@resetFormItemData="resetFormItemData"
|
||||
@addAnnotation="addAnnotation"
|
||||
@removeAnnotation="removeAnnotation"
|
||||
@locateAnnotation="locateAnnotation"
|
||||
/>
|
||||
|
||||
<el-form-item v-if="readingTaskState < 2 && !isFirstChangeTask">
|
||||
|
@ -113,9 +110,21 @@ export default {
|
|||
DicomEvent.$on('handleSaveQuestions', readingTaskState => {
|
||||
this.handleSave()
|
||||
})
|
||||
DicomEvent.$on('addAnnotation', obj => {
|
||||
this.addAnnotation(obj)
|
||||
})
|
||||
DicomEvent.$on('removeAnnotation', obj => {
|
||||
this.removeAnnotation(obj)
|
||||
})
|
||||
DicomEvent.$on('locateAnnotation', obj => {
|
||||
this.locateAnnotation(obj)
|
||||
})
|
||||
},
|
||||
beforeDestroy() {
|
||||
DicomEvent.$off('setReadingState')
|
||||
DicomEvent.$off('addAnnotation')
|
||||
DicomEvent.$off('removeAnnotation')
|
||||
DicomEvent.$off('locateAnnotation')
|
||||
},
|
||||
methods: {
|
||||
async getQuestions(visitTaskId) {
|
||||
|
|
Loading…
Reference in New Issue