数据匿名回复全部判断条件变更

main
wangxiaoshuang 2026-05-09 10:29:23 +08:00
parent 7ebbfb9621
commit e8dda21459
1 changed files with 1 additions and 81 deletions

View File

@ -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(() => {