分割恢复部分问题解决
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-05-09 18:00:26 +08:00
parent d6f36cbbda
commit 4a17946598
1 changed files with 8 additions and 2 deletions

View File

@ -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)