MPR增加影像加载前的验证:验证条件:序列的文件数量>5,影像具备imageOrientationPatient,imagePositionPatient
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-12-24 16:24:23 +08:00
parent 93b7477aa6
commit b5f327fc3c
3 changed files with 14 additions and 6 deletions

View File

@ -479,9 +479,9 @@ export default {
async setSeriesInfo(obj, isLocate = false, option = {}) { async setSeriesInfo(obj, isLocate = false, option = {}) {
try { try {
let { data } = obj let { data } = obj
// if (this.series && data.Id === this.series.Id && data.Description === this.series.Description) { if (this.series && data.Id === this.series.Id && data.Description === this.series.Description && !isLocate) {
// data.SliceIndex = this.series.SliceIndex data.SliceIndex = this.series.SliceIndex
// } }
// this.series = { ...data } // this.series = { ...data }
const renderingEngine = getRenderingEngine(this.renderingEngineId) const renderingEngine = getRenderingEngine(this.renderingEngineId)
const viewport = renderingEngine.getViewport(this.viewportId) const viewport = renderingEngine.getViewport(this.viewportId)

View File

@ -3280,13 +3280,17 @@ export default {
let viewportSeries = this.$refs[`viewport-volume-0`][0].series let viewportSeries = this.$refs[`viewport-volume-0`][0].series
if (data && viewportSeries.SeriesInstanceUid === data.SeriesInstanceUid) return resolve(true) if (data && viewportSeries.SeriesInstanceUid === data.SeriesInstanceUid) return resolve(true)
} }
if (!data) {
let { imageOrientationPatient, imagePositionPatient } = this.$refs[`viewport-${this.activeViewportIndex}`][0].imageInfo
if (!imageOrientationPatient || !imagePositionPatient || imagePositionPatient.length <= 0 || imageOrientationPatient.length <= 0) return this.$confirm(this.$t('trials:reading:confirm:imageNotMPR'))
}
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
if (series.ImageIds.length <= 5) return this.$confirm(this.$t('trials:reading:confirm:smallNumberOfimage'))
this.isMPR = true this.isMPR = true
this.rows = 3 this.rows = 3
this.cols = 1 this.cols = 1
this.loading = true this.loading = true
this.loadingText = this.$t('trials:lugano:message:loadVolumes') this.loadingText = this.$t('trials:lugano:message:loadVolumes')
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
if (!data) this.activeViewportIndex = 0 if (!data) this.activeViewportIndex = 0
const visitTaskId = this.visitTaskList[this.activeTaskIndex].VisitTaskId const visitTaskId = this.visitTaskList[this.activeTaskIndex].VisitTaskId
this.$refs[visitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex) this.$refs[visitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)

View File

@ -141,7 +141,9 @@ export default {
size: null, size: null,
location: null, location: null,
sliceThickness: null, sliceThickness: null,
wwwc: null wwwc: null,
imageOrientationPatient: [],
imagePositionPatient: []
}, },
digitPlaces: 2, digitPlaces: 2,
orientationMarkers: [], orientationMarkers: [],
@ -194,6 +196,8 @@ export default {
this.imageInfo.zoom = zoom.toFixed(4) this.imageInfo.zoom = zoom.toFixed(4)
this.imageInfo.size = `${detail.image.columns}*${detail.image.rows}` this.imageInfo.size = `${detail.image.columns}*${detail.image.rows}`
const imagePlaneModule = metaData.get('imagePlaneModule', detail.imageId) const imagePlaneModule = metaData.get('imagePlaneModule', detail.imageId)
this.imageInfo.imageOrientationPatient = imagePlaneModule.imageOrientationPatient
this.imageInfo.imagePositionPatient = imagePlaneModule.imagePositionPatient
this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.location = imagePlaneModule.sliceLocation
// this.imageInfo.wwwc = `${Math.round(detail.image.windowWidth)}/${Math.round(detail.image.windowCenter)}` // this.imageInfo.wwwc = `${Math.round(detail.image.windowWidth)}/${Math.round(detail.image.windowCenter)}`
this.getOrientationMarker() this.getOrientationMarker()