非表格问题清除病灶,添加定位及确认提示
parent
f67a5a9f43
commit
2a4ddaf6f2
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue