suv部分问题解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2d155612e5
commit
122c76d9b2
|
@ -2,7 +2,7 @@
|
||||||
<el-form ref="fusionForm" :model="fusionForm" label-width="120px" label-position="left">
|
<el-form ref="fusionForm" :model="fusionForm" label-width="120px" label-position="left">
|
||||||
<!-- 任务名称 -->
|
<!-- 任务名称 -->
|
||||||
<el-form-item :label="$t('trials:lugano:fusionDialog:label:taskBlindName')" prop="taskBlindName">
|
<el-form-item :label="$t('trials:lugano:fusionDialog:label:taskBlindName')" prop="taskBlindName">
|
||||||
<el-select v-model="fusionForm.visitTaskId" clearable @change="handleTaskIdChange">
|
<el-select v-model="fusionForm.visitTaskId" clearable @change="handleTaskIdChange" disabled>
|
||||||
<el-option v-for="item in taskList" :key="item.VisitTaskId" :label="item.TaskBlindName"
|
<el-option v-for="item in taskList" :key="item.VisitTaskId" :label="item.TaskBlindName"
|
||||||
:value="item.VisitTaskId" />
|
:value="item.VisitTaskId" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
|
@ -1468,11 +1468,11 @@ export default {
|
||||||
this.setToolsPassive()
|
this.setToolsPassive()
|
||||||
},
|
},
|
||||||
async customAnnotationRemovedListener(e) {
|
async customAnnotationRemovedListener(e) {
|
||||||
if (this.readingTaskState === 2) return
|
|
||||||
const { annotation } = e.detail
|
const { annotation } = e.detail
|
||||||
if (!annotation) return
|
try{
|
||||||
if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) {
|
if (!annotation) return false
|
||||||
try {
|
if (this.readingTaskState === 2) throw 'annotation Not allowed to operate'
|
||||||
|
if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) {
|
||||||
if (this.activeTool === 'Eraser') {
|
if (this.activeTool === 'Eraser') {
|
||||||
await this.$confirm(
|
await this.$confirm(
|
||||||
this.$t('trials:trials-list:table:isDeleted') +
|
this.$t('trials:trials-list:table:isDeleted') +
|
||||||
|
@ -1493,16 +1493,18 @@ export default {
|
||||||
const viewport = renderingEngine.getViewport(viewportId)
|
const viewport = renderingEngine.getViewport(viewportId)
|
||||||
viewport.render()
|
viewport.render()
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} else {
|
||||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
throw 'annotation Not allowed to operate'
|
||||||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
|
||||||
for (let i = 0; i < this.cells.length; i++) {
|
|
||||||
const viewportId = `${this.viewportKey}-${i}`
|
|
||||||
const viewport = renderingEngine.getViewport(viewportId)
|
|
||||||
viewport.render()
|
|
||||||
}
|
|
||||||
console.log(e)
|
|
||||||
}
|
}
|
||||||
|
}catch(e){
|
||||||
|
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||||
|
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||||
|
for (let i = 0; i < this.cells.length; i++) {
|
||||||
|
const viewportId = `${this.viewportKey}-${i}`
|
||||||
|
const viewport = renderingEngine.getViewport(viewportId)
|
||||||
|
viewport.render()
|
||||||
|
}
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeAnnotation(annotation) {
|
removeAnnotation(annotation) {
|
||||||
|
@ -2741,8 +2743,8 @@ export default {
|
||||||
if (!this.fusionSerieId.pt || this.fusionSerieId.pt !== pt.SeriesInstanceUid ) {
|
if (!this.fusionSerieId.pt || this.fusionSerieId.pt !== pt.SeriesInstanceUid ) {
|
||||||
this.fusionSerieId.pt = pt.SeriesInstanceUid
|
this.fusionSerieId.pt = pt.SeriesInstanceUid
|
||||||
}
|
}
|
||||||
await this.getVolume(ct)
|
|
||||||
await this.getVolume(pt)
|
await this.getVolume(pt)
|
||||||
|
await this.getVolume(ct)
|
||||||
await this.getVolume(pt, true)
|
await this.getVolume(pt, true)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.loadingText = null
|
this.loadingText = null
|
||||||
|
@ -2788,22 +2790,35 @@ export default {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
async getVolume(serie, isFusion = false ) {
|
async getVolume(serie, isFusion = false ) {
|
||||||
let volumeId = null, volume = null
|
return new Promise(async res => {
|
||||||
let key = isFusion ? `fusion_${serie.SeriesInstanceUid}` : serie.SeriesInstanceUid
|
let volumeId = null, volume = null
|
||||||
if(!this.volumeData[key] || !cache.getVolume(this.volumeData[key].volumeId)) {
|
let key = isFusion ? `fusion_${serie.SeriesInstanceUid}` : serie.SeriesInstanceUid
|
||||||
await this.$refs[`viewport-fusion-0`][0].createImageIdsAndCacheMetaData(serie)
|
if(!this.volumeData[key] || !cache.getVolume(this.volumeData[key].volumeId)) {
|
||||||
volumeId = `${isFusion ? 'fusion' : serie.Modality}Volume` + ':' + csUtils.uuidv4()
|
if ( serie.Modality === 'PT' && !isFusion ) {
|
||||||
volume = await volumeLoader.createAndCacheVolume(volumeId, { imageIds: serie.ImageIds })
|
serie.ImageIds.forEach(async id => {
|
||||||
volume.load()
|
const imageLoadObject = cache.getImage(id);
|
||||||
this.volumeData[key] = {}
|
if (imageLoadObject) {
|
||||||
this.volumeData[key].volumeId = volumeId
|
await new Promise(res => {
|
||||||
this.volumeData[key].volume = volume
|
cache.removeImageLoadObject(id, {force:true}); // 从缓存中删除
|
||||||
} else {
|
res()
|
||||||
volumeId = this.volumeData[key].volumeId
|
})
|
||||||
volume = this.volumeData[key].volume
|
}
|
||||||
}
|
})
|
||||||
|
}
|
||||||
|
await this.$refs[`viewport-fusion-0`][0].createImageIdsAndCacheMetaData(serie)
|
||||||
|
volumeId = `${isFusion ? 'fusion' : serie.Modality}Volume` + ':' + csUtils.uuidv4()
|
||||||
|
volume = await volumeLoader.createAndCacheVolume(volumeId, { imageIds: serie.ImageIds })
|
||||||
|
volume.load()
|
||||||
|
this.volumeData[key] = {}
|
||||||
|
this.volumeData[key].volumeId = volumeId
|
||||||
|
this.volumeData[key].volume = volume
|
||||||
|
} else {
|
||||||
|
volumeId = this.volumeData[key].volumeId
|
||||||
|
volume = this.volumeData[key].volume
|
||||||
|
}
|
||||||
|
|
||||||
return { volumeId, volume }
|
res({ volumeId, volume })
|
||||||
|
})
|
||||||
},
|
},
|
||||||
upperRangeChange(upper) {
|
upperRangeChange(upper) {
|
||||||
this.$refs.colorMap.upper = upper
|
this.$refs.colorMap.upper = upper
|
||||||
|
|
Loading…
Reference in New Issue