影像浏览问题修复
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-06-23 17:55:42 +08:00
parent 6674989249
commit 99dd28a713
2 changed files with 3 additions and 4 deletions

View File

@ -378,6 +378,7 @@ export default {
this.stack.imageIdIndex = newImageIdIndex this.stack.imageIdIndex = newImageIdIndex
this.series.imageIdIndex = newImageIdIndex this.series.imageIdIndex = newImageIdIndex
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1) this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
this.resetWwwc()
}, },
stackScrollCallback(e) { stackScrollCallback(e) {
const { detail } = e const { detail } = e
@ -423,9 +424,6 @@ export default {
this.dicomInfo.zoom = viewport.scale.toFixed(4) this.dicomInfo.zoom = viewport.scale.toFixed(4)
var data = e.detail.image.data var data = e.detail.image.data
const position = data.string('x00201041') const position = data.string('x00201041')
const windowCenter = data.string('x00281050')
const windowWidth = data.string('x00281051')
this.setWwwc(windowWidth, windowCenter)
this.dicomInfo.location = position this.dicomInfo.location = position
}, },
getOrientationMarker(element) { getOrientationMarker(element) {

View File

@ -403,7 +403,8 @@ export default {
this.series = { ...obj } this.series = { ...obj }
const renderingEngine = getRenderingEngine(this.renderingEngineId) const renderingEngine = getRenderingEngine(this.renderingEngineId)
const viewport = renderingEngine.getViewport(this.viewportId) const viewport = renderingEngine.getViewport(this.viewportId)
const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(obj.ImageIds[obj.SliceIndex]).promise let imageId = obj.ImageIds[obj.SliceIndex] ? obj.ImageIds[obj.SliceIndex] : obj.ImageIds[0]
const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(imageId).promise
if (obj.Modality === 'PT') { if (obj.Modality === 'PT') {
this.cachePTMetadata([image]) this.cachePTMetadata([image])
} }