From e8dda214599cbad60b9cfe7661e478e7e8c961ae Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Sat, 9 May 2026 10:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8C=BF=E5=90=8D=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E5=85=A8=E9=83=A8=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dicom/DicomViewer.vue | 82 +--------------------------- 1 file changed, 1 insertion(+), 81 deletions(-) diff --git a/src/components/Dicom/DicomViewer.vue b/src/components/Dicom/DicomViewer.vue index 2b9954c7..13ff5374 100644 --- a/src/components/Dicom/DicomViewer.vue +++ b/src/components/Dicom/DicomViewer.vue @@ -577,7 +577,7 @@ export default { let s2 = image.imageId.split("?")[0] return s1 === s2 }) - if (!instanceInfo.IsMasked) return this.$confirm(this.$t("DicomViewer:anonymous:notMasked")) + if ((!instanceInfo.IsMasked && !isAll) || (isAll && this.series.instanceInfoList.every(item => !item.IsMasked))) return this.$confirm(this.$t("DicomViewer:anonymous:notMasked")) let data = { // SeriesId: this.series.seriesId, instanceIdList: [instanceInfo.Id] @@ -608,46 +608,7 @@ export default { this.series.imageIds.splice(index, 1, newImageId) await this.$refs[`dicomCanvas0`].reloadImage(newImageId) } else { - // let arr = [] - // this.series.instanceInfoList.forEach(item => { - // let strs = item.ImageId.split("?") - // let info = res.find(i => item.Id === i.Id) - // if (info) { - // let newImageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${info.Path}?${strs[1]}` - // this.series.imageIds.forEach(i => { - // let is = i.split("?") - // if (is[0] === strs[0]) { - // arr.push(newImageId) - // } else { - // if (isMultiple) { - // arr.push(i) - // } - // } - // }) - // // if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) { - // // for (let j = 0; j < instanceInfo.NumberOfFrames; j++) { - // // let strList = strs[1].split("&") - // // let s = '' - // // strList.forEach(item => { - // // if (item.includes('frame=')) { - // // s += `frame=${j}` - // // } else { - // // s += `&${item}` - // // } - // // }) - // // arr.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${info.Path}?${s}`) - // // } - // // } else { - // // arr.push(newImageId) - // // } - // item.ImageId = newImageId - // item.IsMasked = false - // } - // }) - // this.series.imageIds = arr - // // this.loadImageStack(this.series) - // this.$refs[`dicomCanvas0`].loadImageStack(this.series) } this.$emit('loadStudy', this.series.seriesId) this.$emit("update:loading", false) @@ -714,48 +675,7 @@ export default { this.series.imageIds.splice(index, 1, newImageId) await this.$refs[`dicomCanvas0`].reloadImage(newImageId) } else { - let arr = [] - // this.series.instanceInfoList.forEach(item => { - // let strs = item.ImageId.split("?") - // let info = res.find(i => item.Id === i.Id) - // if (info) { - // let newImageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${info.Path}?${strs[1]}` - // this.series.imageIds.forEach(i => { - // let is = i.split("?") - // if (is[0] === strs[0]) { - // arr.push(newImageId) - // } else { - // if (isMultiple) { - // arr.push(i) - // } - // } - // }) - // item.ImageId = newImageId - // item.IsMasked = true - // } - // // if (instanceInfo.NumberOfFrames && instanceInfo.NumberOfFrames > 1) { - - // // for (let j = 0; j < instanceInfo.NumberOfFrames; j++) { - // // let strList = strs[1].split("&") - // // let s = '' - // // strList.forEach(item => { - // // if (item.includes('frame=')) { - // // s += `frame=${j}` - // // } else { - // // s += `&${item}` - // // } - // // }) - // // arr.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${info.Path}?${s}`) - // // } - // // } else { - // // arr.push(newImageId) - // // } - // }) - // this.series.imageIds = arr - // console.log(this.series, 'series') - // // this.loadImageStack(this.series) - // this.$refs[`dicomCanvas0`].loadImageStack(this.series) } this.$refs[`dicomCanvas0`].removeNote_RectangleRoi() setTimeout(() => {