wangxiaoshuang 2026-04-30 09:06:22 +08:00
parent 7dbade1527
commit a969eabc44
3 changed files with 27 additions and 5 deletions

View File

@ -2981,9 +2981,9 @@ export default {
}, },
// //
async resetViewport() { async resetViewport() {
this.setToolsPassive()
const renderingEngine = getRenderingEngine(renderingEngineId) const renderingEngine = getRenderingEngine(renderingEngineId)
if (this.isFusion) { if (this.isFusion) {
this.setToolsPassive()
const fusionViewportIds = ['viewport-fusion-0', 'viewport-fusion-1', 'viewport-fusion-2', 'viewport-fusion-3'] const fusionViewportIds = ['viewport-fusion-0', 'viewport-fusion-1', 'viewport-fusion-2', 'viewport-fusion-3']
const fusionAllViewportIds = [...fusionViewportIds, 'viewport-fusion-hidden-sag'] const fusionAllViewportIds = [...fusionViewportIds, 'viewport-fusion-hidden-sag']
for (const id of fusionAllViewportIds) { for (const id of fusionAllViewportIds) {
@ -3049,6 +3049,7 @@ export default {
return this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index) return this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
} }
this.setToolsPassive()
if (this.readingTool === 3 && this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.Modality === 'PT') { if (this.readingTool === 3 && this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.Modality === 'PT') {
viewport.setProperties({ voiRange: { upper: 5, lower: 0 } }) viewport.setProperties({ voiRange: { upper: 5, lower: 0 } })
} }
@ -3524,7 +3525,7 @@ export default {
if (!obj.IsDicom) { if (!obj.IsDicom) {
return this.previewNoneDicoms(obj) return this.previewNoneDicoms(obj)
} }
this.activeViewportIndex = 0 // this.activeViewportIndex = 0
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(obj) this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(obj)
this.clipPlaying = false this.clipPlaying = false
this.fps = 15 this.fps = 15

View File

@ -147,13 +147,19 @@ export default {
async handleChange(e, key) { async handleChange(e, key) {
if (key === 'study') { if (key === 'study') {
this.seriesList = this.studyList.find(item => item.StudyId === this.form.studyId).SeriesArr this.seriesList = this.studyList.find(item => item.StudyId === this.form.studyId).SeriesArr
this.form.seriesId = null
this.form.segmentGroupId = null
this.form.segmentId = null
} }
if (key === 'series') { if (key === 'series') {
this.segmentGroupList = this.segmentionList.filter(item => item.SeriesId === this.form.seriesId) this.segmentGroupList = this.segmentionList.filter(item => item.SeriesId === this.form.seriesId)
this.form.segmentGroupId = null
this.form.segmentId = null
} }
if (key === 'segmentGroup') { if (key === 'segmentGroup') {
let list = await this.getSegmentList(this.form.segmentGroupId) let list = await this.getSegmentList(this.form.segmentGroupId)
this.segmentList = list.filter(item => item.SegmentJson) this.segmentList = list.filter(item => item.SegmentJson)
this.form.segmentId = null
} }
}, },
handleClear(e, key) { handleClear(e, key) {

View File

@ -221,6 +221,7 @@ export default {
Object.keys(this.seriesData).forEach(key => { Object.keys(this.seriesData).forEach(key => {
if (key !== 'default' || this.isNeedDefault) seriesData.push(this.seriesData[key]) if (key !== 'default' || this.isNeedDefault) seriesData.push(this.seriesData[key])
}) })
console.log(seriesData, 'seriesData')
this.chart.clear(); this.chart.clear();
const option = { const option = {
useUTC: true, useUTC: true,
@ -297,10 +298,10 @@ export default {
} else { } else {
res = await this.getCurrentSliceValuesFromVoxelManager(this.renderingEngineId, `${this.viewportKey}-${this.activeViewportIndex}`) res = await this.getCurrentSliceValuesFromVoxelManager(this.renderingEngineId, `${this.viewportKey}-${this.activeViewportIndex}`)
} }
if (res) {
let obj = { let obj = {
} }
if (res) {
res.values.forEach(item => { res.values.forEach(item => {
if (obj[item]) { if (obj[item]) {
obj[item]++ obj[item]++
@ -323,10 +324,24 @@ export default {
}) })
} }
seriesData.sort((a, b) => a[0] - b[0]) seriesData.sort((a, b) => a[0] - b[0])
let MIN = seriesData[0][0]
let MAX = seriesData[seriesData.length - 1][0]
seriesData = []
for (let i = MIN; i <= MAX; i++) {
if (obj[i]) {
let arr = [i, obj[i]]
seriesData.push(arr)
} else {
let arr = [i, 0]
seriesData.push(arr)
}
}
seriesData.sort((a, b) => a[0] - b[0])
return { return {
seriesData: { seriesData: {
type: 'line', type: 'line',
symbolSize: 0, symbolSize: 0,
stack: 'Total',
data: seriesData data: seriesData
}, },
min: min, min: min,