分割部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
47d7fb00e2
commit
eac6b25b9e
|
|
@ -613,6 +613,7 @@ export default {
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.segmentationId, this.segmentIndex, this.renderingEngineId, null, this.actionConfiguration)
|
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.segmentationId, this.segmentIndex, this.renderingEngineId, null, this.actionConfiguration)
|
||||||
|
DicomEvent.$emit('loading', this.viewportId)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2032,6 +2032,11 @@ export default {
|
||||||
}
|
}
|
||||||
const i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName)
|
const i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName)
|
||||||
if (i === -1) {
|
if (i === -1) {
|
||||||
|
if (annotation.metadata.toolName === SegmentBidirectionalTool.toolName) {
|
||||||
|
this.setToolsPassive()
|
||||||
|
const errorMsg = { message: 'SegmentBidirectionalTool Not remove' }
|
||||||
|
throw errorMsg
|
||||||
|
}
|
||||||
// 临时标记
|
// 临时标记
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -2700,6 +2705,8 @@ export default {
|
||||||
const viewportId = `${this.viewportKey}-${this.activeViewportIndex}`
|
const viewportId = `${this.viewportKey}-${this.activeViewportIndex}`
|
||||||
const viewport = renderingEngine.getViewport(viewportId)
|
const viewport = renderingEngine.getViewport(viewportId)
|
||||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].resetOrientationMarkers()
|
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].resetOrientationMarkers()
|
||||||
|
let index = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex
|
||||||
|
console.log(index, 'index')
|
||||||
viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true })
|
viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true })
|
||||||
viewport.resetProperties()
|
viewport.resetProperties()
|
||||||
if (this.isMPR) {
|
if (this.isMPR) {
|
||||||
|
|
@ -2718,6 +2725,9 @@ export default {
|
||||||
if (this.readingTool === 3) {
|
if (this.readingTool === 3) {
|
||||||
DicomEvent.$emit('isloaded', { isChange: false, viewportId })
|
DicomEvent.$emit('isloaded', { isChange: false, viewportId })
|
||||||
}
|
}
|
||||||
|
if (this.readingTool === 3 || this.isMPR) {
|
||||||
|
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 更改视图布局
|
// 更改视图布局
|
||||||
async changeLayout(v) {
|
async changeLayout(v) {
|
||||||
|
|
|
||||||
|
|
@ -408,14 +408,10 @@ export default {
|
||||||
DicomEvent.$on('isloaded', (data) => {
|
DicomEvent.$on('isloaded', (data) => {
|
||||||
let { segment, isChange = true, viewportId, series } = data
|
let { segment, isChange = true, viewportId, series } = data
|
||||||
DicomEvent.$emit('renderSegmentation', viewportId)
|
DicomEvent.$emit('renderSegmentation', viewportId)
|
||||||
// if (!series.TaskInfo || series.TaskInfo.VisitTaskId !== this.visitInfo.VisitTaskId) return false
|
})
|
||||||
// if (this.isloaded) return false
|
DicomEvent.$on('loading', (viewportId) => {
|
||||||
// this.isloaded = true
|
if (viewportId !== `${this.viewportKey}-${this.activeViewportIndex}`) return false
|
||||||
// this.series = series
|
this.loading = false
|
||||||
// this.viewportIds = []
|
|
||||||
// this.viewportIds.push(viewportId)
|
|
||||||
// // this.delAllSegment(isChange)
|
|
||||||
// this.readingSegmentToViewport(segment)
|
|
||||||
})
|
})
|
||||||
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
||||||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||||
|
|
@ -1422,6 +1418,8 @@ export default {
|
||||||
}/${this.series.Id}/${segmentGroup.name}.dcm`
|
}/${this.series.Id}/${segmentGroup.name}.dcm`
|
||||||
const result = await this.OSSclient.put(path, blob)
|
const result = await this.OSSclient.put(path, blob)
|
||||||
segmentGroup.segUrl = this.$getObjectName(result.url)
|
segmentGroup.segUrl = this.$getObjectName(result.url)
|
||||||
|
} else {
|
||||||
|
segmentGroup.segUrl = null
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addOrUpdateSegmentation({ name: segmentGroup.name, id: segmentGroup.segmentationId, url: segmentGroup.segUrl })
|
this.addOrUpdateSegmentation({ name: segmentGroup.name, id: segmentGroup.segmentationId, url: segmentGroup.segUrl })
|
||||||
|
|
@ -1582,7 +1580,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
let res = await getSegmentationList(data);
|
let res = await getSegmentationList(data);
|
||||||
this.loading = false;
|
// this.loading = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.segmentList = []
|
this.segmentList = []
|
||||||
this.segmentationId = null;
|
this.segmentationId = null;
|
||||||
|
|
@ -1659,10 +1657,11 @@ export default {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.isloaded = false
|
this.isloaded = false
|
||||||
|
// this.loading = true
|
||||||
// this.readingSegmentByConfig()
|
// this.readingSegmentByConfig()
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.loading = false
|
// this.loading = false
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1711,14 +1710,14 @@ export default {
|
||||||
PageSize: 9999,
|
PageSize: 9999,
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
}
|
}
|
||||||
this.loading = true;
|
// this.loading = true;
|
||||||
let res = await getSegmentList(data)
|
let res = await getSegmentList(data)
|
||||||
this.loading = false;
|
// this.loading = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
return res.Result.CurrentPageData
|
return res.Result.CurrentPageData
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.loading = false
|
// this.loading = false
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -436,6 +436,7 @@ export default {
|
||||||
const viewport = renderingEngine.getViewport(
|
const viewport = renderingEngine.getViewport(
|
||||||
this.viewportId
|
this.viewportId
|
||||||
)
|
)
|
||||||
|
console.log(index, 'setFullScreen')
|
||||||
csUtils.jumpToSlice(viewport.element, { imageIndex: index })
|
csUtils.jumpToSlice(viewport.element, { imageIndex: index })
|
||||||
viewport.render()
|
viewport.render()
|
||||||
})
|
})
|
||||||
|
|
@ -674,6 +675,7 @@ export default {
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.segmentationId, this.segmentIndex, this.renderingEngineId, data.segment, this.actionConfiguration)
|
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.segmentationId, this.segmentIndex, this.renderingEngineId, data.segment, this.actionConfiguration)
|
||||||
|
DicomEvent.$emit('loading', this.viewportId)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -155,11 +155,12 @@ function removeSegmentFromViewport(viewportId) {
|
||||||
viewportInfo[viewportId].forEach(async segmentationId => {
|
viewportInfo[viewportId].forEach(async segmentationId => {
|
||||||
segmentation.removeSegmentation(segmentationId)
|
segmentation.removeSegmentation(segmentationId)
|
||||||
segmentation.state.removeSegmentation(segmentationId)
|
segmentation.state.removeSegmentation(segmentationId)
|
||||||
let annotations = annotation.state.getAllAnnotations().filter(item => item.metadata.segmentationId && segmentationId === item.metadata.segmentationId && item.metadata.segmentIndex && item.metadata.toolName === "SegmentBidirectional");
|
let annotations = annotation.state.getAllAnnotations().filter(item => item.metadata.segmentationId && segmentationId === item.metadata.segmentationId && item.metadata.toolName === "SegmentBidirectional");
|
||||||
annotations.forEach(item => {
|
annotations.forEach(item => {
|
||||||
annotation.state.removeAnnotation(item.annotationUID)
|
annotation.state.removeAnnotation(item.annotationUID)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
resetViewport(viewportId)
|
||||||
}
|
}
|
||||||
viewportInfo[viewportId] = []
|
viewportInfo[viewportId] = []
|
||||||
resolve(true)
|
resolve(true)
|
||||||
|
|
@ -378,13 +379,16 @@ async function renderSegmentation(series, visitInfo, viewportId, SegmentConfig,
|
||||||
segmentation.config.color.setSegmentIndexColor(viewportId, s.SegmentationId, s.SegmentNumber, hex2Rgb(s.ColorRgb))
|
segmentation.config.color.setSegmentIndexColor(viewportId, s.SegmentationId, s.SegmentNumber, hex2Rgb(s.ColorRgb))
|
||||||
segmentation.segmentLocking.setSegmentIndexLocked(s.SegmentationId, s.SegmentNumber, true)
|
segmentation.segmentLocking.setSegmentIndexLocked(s.SegmentationId, s.SegmentNumber, true)
|
||||||
if (SegmentJson.bidirectional) {
|
if (SegmentJson.bidirectional) {
|
||||||
|
let an = annotation.state.getAllAnnotations().find(i => i.metadata.segmentationId === s.SegmentationId && i.metadata.segmentIndex === SegmentJson.bidirectional.segmentIndex && i.metadata.toolName === "SegmentBidirectional");
|
||||||
|
if (!an) {
|
||||||
let { majorAxis, minorAxis } = SegmentJson.bidirectional
|
let { majorAxis, minorAxis } = SegmentJson.bidirectional
|
||||||
// createSegmentConfiguration(s.SegmentNumber, s.SegmentationId, viewportId, actionConfiguration)
|
// createSegmentConfiguration(s.SegmentNumber, s.SegmentationId, viewportId, actionConfiguration)
|
||||||
SegmentBidirectionalTool.hydrate(viewportId, [majorAxis, minorAxis], {
|
SegmentBidirectionalTool.hydrate(viewportId, [majorAxis, minorAxis], {
|
||||||
segmentIndex: s.SegmentNumber,
|
segmentIndex: s.SegmentNumber,
|
||||||
segmentationId: s.SegmentationId,
|
segmentationId: s.SegmentationId,
|
||||||
})
|
})
|
||||||
let an = annotation.state.getAllAnnotations().find(i => i.metadata.segmentationId === s.SegmentationId && i.metadata.segmentIndex === SegmentJson.bidirectional.segmentIndex && i.metadata.toolName === "SegmentBidirectional");
|
}
|
||||||
|
an = annotation.state.getAllAnnotations().find(i => i.metadata.segmentationId === s.SegmentationId && i.metadata.segmentIndex === SegmentJson.bidirectional.segmentIndex && i.metadata.toolName === "SegmentBidirectional");
|
||||||
if (an) {
|
if (an) {
|
||||||
annotation.locking.setAnnotationLocked(an.annotationUID, true)
|
annotation.locking.setAnnotationLocked(an.annotationUID, true)
|
||||||
annotation.visibility.setAnnotationVisibility(an.annotationUID, item.bidirectionalView)
|
annotation.visibility.setAnnotationVisibility(an.annotationUID, item.bidirectionalView)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue