非dicom标记保存修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
42839a925d
commit
b6500c62c5
|
|
@ -119,7 +119,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- viewports -->
|
<!-- viewports -->
|
||||||
<div class="viewports-wrapper">
|
<div class="viewports-wrapper" v-loading="loading">
|
||||||
<div class="grid-container" :style="gridStyle">
|
<div class="grid-container" :style="gridStyle">
|
||||||
<div v-for="(v, index) in viewportInfos" v-show="index < cells.length" :key="index" :style="cellStyle"
|
<div v-for="(v, index) in viewportInfos" v-show="index < cells.length" :key="index" :style="cellStyle"
|
||||||
:class="['grid-cell', index === activeCanvasIndex ? 'cell_active' : '', index === fullScreenIndex ? 'cell-full-screen' : '']"
|
:class="['grid-cell', index === activeCanvasIndex ? 'cell_active' : '', index === fullScreenIndex ? 'cell-full-screen' : '']"
|
||||||
|
|
@ -355,7 +355,8 @@ export default {
|
||||||
curOperation: {
|
curOperation: {
|
||||||
type: '',
|
type: '',
|
||||||
annotation: null
|
annotation: null
|
||||||
}
|
},
|
||||||
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -936,7 +937,7 @@ export default {
|
||||||
addAnnotationListeners() {
|
addAnnotationListeners() {
|
||||||
const debouncedCallback = this.debounce((evt) => {
|
const debouncedCallback = this.debounce((evt) => {
|
||||||
this.annotationModifiedListener(evt)
|
this.annotationModifiedListener(evt)
|
||||||
}, 100)
|
}, 0)
|
||||||
eventTarget.addEventListener(
|
eventTarget.addEventListener(
|
||||||
toolsEvents.ANNOTATION_MODIFIED,
|
toolsEvents.ANNOTATION_MODIFIED,
|
||||||
(evt) => {
|
(evt) => {
|
||||||
|
|
@ -1209,10 +1210,12 @@ export default {
|
||||||
const measureData = Object.assign({}, annotation)
|
const measureData = Object.assign({}, annotation)
|
||||||
const params = {}
|
const params = {}
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
||||||
|
this.loading = true
|
||||||
await this.getScreenshots({
|
await this.getScreenshots({
|
||||||
visitTaskId: this.taskInfo.VisitTaskId,
|
visitTaskId: this.taskInfo.VisitTaskId,
|
||||||
annotation
|
annotation
|
||||||
}, async (base64Str) => {
|
}, async (base64Str) => {
|
||||||
|
this.loading = false
|
||||||
const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str)
|
const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str)
|
||||||
let picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
|
let picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
|
||||||
if (annotation.id) params.Id = annotation.id
|
if (annotation.id) params.Id = annotation.id
|
||||||
|
|
|
||||||
|
|
@ -204,9 +204,8 @@ export default {
|
||||||
i.MeasureData.markId = i.MarkId
|
i.MeasureData.markId = i.MarkId
|
||||||
i.MeasureData.id = i.Id
|
i.MeasureData.id = i.Id
|
||||||
}
|
}
|
||||||
this.psArr = []
|
|
||||||
if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) {
|
if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) {
|
||||||
this.psArr.push({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps })
|
this.setPS({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps })
|
||||||
}
|
}
|
||||||
return i
|
return i
|
||||||
})
|
})
|
||||||
|
|
@ -317,7 +316,7 @@ export default {
|
||||||
i.MeasureData.id = i.Id
|
i.MeasureData.id = i.Id
|
||||||
}
|
}
|
||||||
if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) {
|
if (i.MeasureData.metadata.toolName === 'Lengthscale' && this.psArr.findIndex(p => p.NoneDicomFileId === i.NoneDicomFileId) === -1) {
|
||||||
this.psArr.push({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps })
|
this.setPS({ NoneDicomFileId: i.NoneDicomFileId, Path: i.Path, PS: i.MeasureData.data.ps })
|
||||||
}
|
}
|
||||||
return i
|
return i
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue