From 4a17946598bcca1a7782931e4a3aa84febc8c5be Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Sat, 9 May 2026 18:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=89=B2=E6=81=A2=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/Segmentations.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue index 4ea14080..fd0fc9de 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Segmentations.vue @@ -811,7 +811,12 @@ export default { volume.destroy(); // 2. 从缓存中移除 volume.removeFromCache(); - cache.removeImageLoadObject(`wadouri:${this.OSSclientConfig.basePath}${this.curSegmentGroup.segUrl}`) + if (this.curSegmentGroup.oldSegUrl) { + cache.removeImageLoadObject(`wadouri:${this.OSSclientConfig.basePath}${this.curSegmentGroup.oldSegUrl}`) + this.curSegmentGroup.oldSegUrl = null + } else { + cache.removeImageLoadObject(`wadouri:${this.OSSclientConfig.basePath}${this.curSegmentGroup.segUrl}`) + } this.getSegmentation(this.segmentationId) DicomEvent.$emit('renderSegmentationBychangeSegmention') this.visible = false @@ -1660,6 +1665,7 @@ export default { }/${this.visitInfo.VisistId}/${this.series.StudyId }/${this.series.Id}/${segmentGroup.name}.dcm` const result = await this.OSSclient.put(path, blob) + segmentGroup.oldSegUrl = segmentGroup.segUrl segmentGroup.segUrl = this.$getObjectName(result.url) DicomEvent.$emit("IsBeSegment", { StudyId: this.series.StudyId, Id: this.series.Id, IsBeSegment: true }) } else { @@ -1667,7 +1673,7 @@ export default { segmentGroup.segUrl = null } - this.addOrUpdateSegmentation({ name: segmentGroup.name, id: segmentGroup.segmentationId, url: segmentGroup.segUrl }) + this.addOrUpdateSegmentation({ name: segmentGroup.name, id: segmentGroup.segmentationId, url: segmentGroup.segUrl, size: blob.size }) this.changeSegmentationSavedStatus(segmentGroup.segmentationId, saveSegment) if (saveSegment) { await this.getBidirectionalSaveSegment(segmentList)