MPR修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-12-24 16:45:22 +08:00
parent b5f327fc3c
commit e7fdee1147
1 changed files with 9 additions and 8 deletions

View File

@ -2068,7 +2068,7 @@ export default {
this.activeTool = ''
} else {
if (this.activeTool) {
if (toolName === CrosshairsTool.toolName) {
if (this.activeTool === CrosshairsTool.toolName) {
toolGroup.setToolDisabled(this.activeTool)
} else {
toolGroup.setToolPassive(this.activeTool)
@ -2092,7 +2092,7 @@ export default {
const toolGroupId = this.isMPR ? this.volumeToolGroupId : `${this.viewportKey}-${this.activeViewportIndex}`
const toolGroup = ToolGroupManager.getToolGroup(toolGroupId)
if (this.activeTool) {
if (toolName === CrosshairsTool.toolName) {
if (this.activeTool === CrosshairsTool.toolName) {
toolGroup.setToolDisabled(this.activeTool)
} else {
toolGroup.setToolPassive(this.activeTool)
@ -2792,13 +2792,13 @@ export default {
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
if (viewPlaneNormal === '0,0,-1') {
this.activeViewportIndex = 0
series = Object.assign({ orientation: 'AXIAL' }, series)
// series = Object.assign({ orientation: 'AXIAL' }, series)
} else if (viewPlaneNormal === '0,-1,0') {
this.activeViewportIndex = 2
series = Object.assign({ orientation: 'CORONAL' }, series)
// series = Object.assign({ orientation: 'CORONAL' }, series)
} else if (viewPlaneNormal === '1,0,0') {
this.activeViewportIndex = 1
series = Object.assign({ orientation: 'SAGITTAL' }, series)
// series = Object.assign({ orientation: 'SAGITTAL' }, series)
}
let res = await this.openMPRViewport(series)
if (!res) return false
@ -2838,13 +2838,13 @@ export default {
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
if (viewPlaneNormal === '0,0,-1') {
this.activeViewportIndex = 0
series = Object.assign({ orientation: 'AXIAL' }, series)
// series = Object.assign({ orientation: 'AXIAL' }, series)
} else if (viewPlaneNormal === '0,-1,0') {
this.activeViewportIndex = 2
series = Object.assign({ orientation: 'CORONAL' }, series)
// series = Object.assign({ orientation: 'CORONAL' }, series)
} else if (viewPlaneNormal === '1,0,0') {
this.activeViewportIndex = 1
series = Object.assign({ orientation: 'SAGITTAL' }, series)
// series = Object.assign({ orientation: 'SAGITTAL' }, series)
}
let res = await this.openMPRViewport(series)
if (!res) {
@ -3287,6 +3287,7 @@ export default {
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
console.log(series, 'series')
this.rows = 3
this.cols = 1
this.loading = true