Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat
caiyiling 2025-05-14 11:25:22 +08:00
commit 1d6656a5b8
3 changed files with 15 additions and 2 deletions

View File

@ -244,7 +244,7 @@ export default {
this.imageInfo.size = `${imagePlaneModule.columns}*${imagePlaneModule.rows}` this.imageInfo.size = `${imagePlaneModule.columns}*${imagePlaneModule.rows}`
this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.location = imagePlaneModule.sliceLocation
this.getOrientationMarker() this.getOrientationMarker()
this.$emit('renderAnnotations', this.series) // this.$emit('renderAnnotations', this.series)
let properties = viewport.getProperties() let properties = viewport.getProperties()
if (this.isFusion) { if (this.isFusion) {
properties = viewport.getProperties(this.ptVolumeId) properties = viewport.getProperties(this.ptVolumeId)

View File

@ -709,7 +709,8 @@ export default {
studyList: [], studyList: [],
volumeData: {}, volumeData: {},
fusionSerieId: {}, fusionSerieId: {},
loadingText: null loadingText: null,
resetAnnotation: false , // 使
} }
}, },
computed: { computed: {
@ -1472,6 +1473,7 @@ export default {
async customAnnotationRemovedListener(e) { async customAnnotationRemovedListener(e) {
const { annotation } = e.detail const { annotation } = e.detail
try{ try{
if ( this.resetAnnotation && this.isFusion ) return false
if (!annotation) return false if (!annotation) return false
if (this.readingTaskState === 2) throw 'annotation Not allowed to operate' if (this.readingTaskState === 2) throw 'annotation Not allowed to operate'
if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) { if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) {
@ -2734,6 +2736,10 @@ export default {
let { ct, pt } = data let { ct, pt } = data
this.loading = true this.loading = true
this.loadingText = this.$t('trials:lugano:message:loadVolumes') this.loadingText = this.$t('trials:lugano:message:loadVolumes')
this.resetAnnotation = true
// console.log(cornerstoneTools.annotation.state.getAllAnnotations(),'cornerstoneTools.annotation.state')
// cornerstoneTools.annotation.state.removeAllAnnotations()
this.renderedTaskIds = []
if ( this.verifyFusionData(ct, pt) ) { if ( this.verifyFusionData(ct, pt) ) {
this.loading = false this.loading = false
this.loadingText = null this.loadingText = null
@ -2741,6 +2747,7 @@ export default {
this.$refs[`viewport-1`][0].setSeriesInfo(pt) this.$refs[`viewport-1`][0].setSeriesInfo(pt)
this.$refs[`viewport-2`][0].setSeriesInfo(pt) this.$refs[`viewport-2`][0].setSeriesInfo(pt)
this.$refs[`viewport-3`][0].setSeriesInfo(pt) this.$refs[`viewport-3`][0].setSeriesInfo(pt)
this.resetAnnotation = false
return true return true
} }
if (!this.fusionSerieId.ct || this.fusionSerieId.ct !== ct.SeriesInstanceUid ) { if (!this.fusionSerieId.ct || this.fusionSerieId.ct !== ct.SeriesInstanceUid ) {
@ -2780,6 +2787,7 @@ export default {
this.$refs[`viewport-fusion-1`][0].setSeriesInfo(ptData, { colorMap: true}) this.$refs[`viewport-fusion-1`][0].setSeriesInfo(ptData, { colorMap: true})
this.$refs[`viewport-fusion-2`][0].setSeriesInfo(fusionData, { isFusion: true, colorMap: true }) this.$refs[`viewport-fusion-2`][0].setSeriesInfo(fusionData, { isFusion: true, colorMap: true })
this.$refs[`viewport-fusion-3`][0].setSeriesInfo(ptData, { isMip: true, colorMap: true }) this.$refs[`viewport-fusion-3`][0].setSeriesInfo(ptData, { isMip: true, colorMap: true })
this.resetAnnotation = false
this.$nextTick(() => { this.$nextTick(() => {
this.$refs[`colorMap`].init() this.$refs[`colorMap`].init()
}) })

View File

@ -1459,6 +1459,11 @@ export default {
) { ) {
dicomInfo.uploadFileSize = dicomInfo.fileSize dicomInfo.uploadFileSize = dicomInfo.fileSize
} }
if (
Math.abs(dicomInfo.uploadFileSize - dicomInfo.fileSize) < 5000
) {
dicomInfo.uploadFileSize = dicomInfo.fileSize
}
} }
) )
if (!res || !res.url) { if (!res || !res.url) {