关键序列逻辑更改
continuous-integration/drone/push Build is passing Details

main
caiyiling 2026-06-18 09:58:04 +08:00
parent 4d16ebb488
commit 8203b3d738
3 changed files with 58 additions and 23 deletions

View File

@ -1404,10 +1404,9 @@ export default {
},
async showKeySeriesPanel() {
this.keySeries = []
const visitTaskId = this.getKeySeriesVisitTaskId()
if (!visitTaskId) return
this.keySeriesLoading = true
const idx = this.visitTaskList.findIndex(i => i.IsCurrentTask)
if (idx === -1) return
const visitTaskId = this.visitTaskList[idx].VisitTaskId
try {
const res = await getMarkList({ visitTaskId })
if (res && res.Result) {
@ -1421,16 +1420,14 @@ export default {
},
jumpToKeySeries(kf) {
this.keySeriesPopoverVisible = false
const idx = this.visitTaskList.findIndex(i => i.IsCurrentTask)
if (idx === -1) return
const visitTaskId = this.visitTaskList[idx].VisitTaskId
const visitTaskId = this.getKeySeriesVisitTaskId()
if (!visitTaskId) return
let annotation = {}
try {
annotation = kf.MeasureData ? JSON.parse(kf.MeasureData) : {}
} catch (err) {
console.error(err)
}
// let annotation = {}
// try {
// annotation = kf.MeasureData ? JSON.parse(kf.MeasureData) : {}
// } catch (err) {
// console.error(err)
// }
const series = this.getSeriesInfoByMark(visitTaskId, {lesionName: kf.MarkName})
if (!series) return
this.loadImageStack(series)

View File

@ -4298,11 +4298,14 @@ export default {
async showKeySeriesPanel() {
this.keySeries = []
this.keySeriesLoading = true
try {
let res = await getMarkList({ visitTaskId: this.taskInfo.VisitTaskId })
if (res && res.Result) {
this.keySeries = res.Result
const series = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series
const visitTaskId = series?.TaskInfo?.VisitTaskId
if (visitTaskId) {
let res = await getMarkList({ visitTaskId: visitTaskId })
if (res && res.Result) {
this.keySeries = res.Result
}
}
} catch (err) {
console.error(err)
@ -4311,16 +4314,19 @@ export default {
}
},
jumpToKeySeries(kf) {
let tIdx = this.visitTaskList.findIndex(i=> i.VisitTaskId === this.taskInfo.VisitTaskId)
const series = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series
const visitTaskId = series?.TaskInfo?.VisitTaskId
if (!visitTaskId) return
let tIdx = this.visitTaskList.findIndex(i=> i.VisitTaskId === visitTaskId)
if (tIdx < 0) return
const task = this.visitTaskList[tIdx]
const studyList = task.StudyList
const annotation = kf.MeasureData ? JSON.parse(kf.MeasureData) : {}
let targetSeries = this.getMarkedSeries(studyList, annotation, true)
if (Object.keys(targetSeries).length === 0) return
this.activeTaskId = this.taskInfo.VisitTaskId
// this.activeTaskId = this.taskInfo.VisitTaskId
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(targetSeries, true)
this.$refs[this.taskInfo.VisitTaskId][0].setSeriesActive(targetSeries.StudyIndex, targetSeries.SeriesIndex)
this.$refs[visitTaskId][0].setSeriesActive(targetSeries.StudyIndex, targetSeries.SeriesIndex)
},
showPanel(e, toolName) {
if (toolName === 'layout' && (this.isFusion || this.isMPR)) return false

View File

@ -424,6 +424,30 @@ const {
BidirectionalTool,
// cursors
} = cornerstoneTools
const newStyles = {
global: {
color: 'rgb(255, 0, 0)',
colorHighlighted: 'rgb(0, 255, 0)',
colorSelected: 'rgb(255, 0, 0)',
colorLocked: 'rgb(255, 0, 0)',
lineWidth: '1',
lineDash: '',
shadow: true,
textBoxVisibility: true,
textBoxFontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
textBoxFontSize: '14px',
textBoxColor: 'rgb(255, 0, 0)',
textBoxColorHighlighted: 'rgb(0, 255, 0)',
textBoxColorSelected: 'rgb(255, 0, 0)',
textBoxColorLocked: 'rgb(255, 0, 0)',
textBoxBackground: '',
textBoxLinkLineWidth: '1',
textBoxLinkLineDash: '2,3',
textBoxShadow: true,
markerSize: '10'
}
}
cornerstoneTools.annotation.config.style.setDefaultToolStyles(newStyles)
const { MouseBindings, Events: toolsEvents } = csToolsEnums
export default {
name: 'ImageViewer',
@ -667,10 +691,15 @@ export default {
this.keySeriesLoading = true
try {
const res = await getNoneDicomMarkList({ visitTaskId: this.taskInfo.VisitTaskId })
if (res && res.Result) {
this.keySeries = res.Result
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
if (i > -1) {
const visitTaskId = this.viewportInfos[i].taskInfo.VisitTaskId
const res = await getNoneDicomMarkList({ visitTaskId: visitTaskId })
if (res && res.Result) {
this.keySeries = res.Result
}
}
} catch (err) {
console.log(err)
} finally {
@ -678,10 +707,13 @@ export default {
}
},
jumpToKeySeries(kf) {
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
if (i === -1) return
const visitTaskId = this.viewportInfos[i].taskInfo.VisitTaskId
this.$emit('selectFile', {
path: kf.Path,
studyId: kf.StudyId,
visitTaskId: this.taskInfo.VisitTaskId
visitTaskId: visitTaskId
})
},
//