Compare commits
No commits in common. "8e01f3af87c8ce86f6a21eb2fddfacf8eaef0177" and "386901316d252ca091e6abbf583cb3eb540db108" have entirely different histories.
8e01f3af87
...
386901316d
|
@ -303,8 +303,8 @@ export default {
|
||||||
|
|
||||||
],
|
],
|
||||||
scrollSyncInfo: { offset: 0 },
|
scrollSyncInfo: { offset: 0 },
|
||||||
hideMeasureArr: [],
|
hideMeasureArr: []
|
||||||
isInitWwwc: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -565,6 +565,7 @@ export default {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
} else if (this.activeToolName === 'Length' || this.activeToolName === 'Bidirectional' && this.readingTaskState < 2) {
|
} else if (this.activeToolName === 'Length' || this.activeToolName === 'Bidirectional' && this.readingTaskState < 2) {
|
||||||
|
console.log(e.detail.image)
|
||||||
if (!e.detail.image.columnPixelSpacing || !e.detail.image.rowPixelSpacing) {
|
if (!e.detail.image.columnPixelSpacing || !e.detail.image.rowPixelSpacing) {
|
||||||
// '该影像不具备测量长度所需的必要数据,不能进行长度测量。请选择其他工具进行标注。'
|
// '该影像不具备测量长度所需的必要数据,不能进行长度测量。请选择其他工具进行标注。'
|
||||||
this.$confirm(this.$t('trials:reading:warnning:msg56'), '', {
|
this.$confirm(this.$t('trials:reading:warnning:msg56'), '', {
|
||||||
|
@ -577,13 +578,6 @@ export default {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
} else if (this.CriterionType === 21 && this.activeToolName === 'Probe' && this.readingTaskState < 2) {
|
|
||||||
if (!(e.detail.image.imageFrame.photometricInterpretation === 'MONOCHROME1' || e.detail.image.imageFrame.photometricInterpretation === 'MONOCHROME2')) {
|
|
||||||
this.$alert(this.$t('trials:MRIPDFF:message:message5'))
|
|
||||||
e.stopImmediatePropagation()
|
|
||||||
e.stopPropagation()
|
|
||||||
e.preventDefault()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pointNearTool(e) {
|
pointNearTool(e) {
|
||||||
|
@ -674,7 +668,7 @@ export default {
|
||||||
},
|
},
|
||||||
sliderMousemove(e) {
|
sliderMousemove(e) {
|
||||||
if (!this.sliderInfo.isMove) return
|
if (!this.sliderInfo.isMove) return
|
||||||
// console.log('sliderMousemove')
|
console.log('sliderMousemove')
|
||||||
var PX = this.sliderInfo.oldB - (this.sliderInfo.oldM - e.clientY)
|
var PX = this.sliderInfo.oldB - (this.sliderInfo.oldM - e.clientY)
|
||||||
var boxHeight = this.$refs['sliderBox'].clientHeight
|
var boxHeight = this.$refs['sliderBox'].clientHeight
|
||||||
if (PX < 0) return
|
if (PX < 0) return
|
||||||
|
@ -798,7 +792,6 @@ export default {
|
||||||
} else if (toolType === 'Length') {
|
} else if (toolType === 'Length') {
|
||||||
// toolState.data[i].length = this.calculateLenth(toolState.data[i])
|
// toolState.data[i].length = this.calculateLenth(toolState.data[i])
|
||||||
}
|
}
|
||||||
measureData.largestPixelValue = image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1032,7 +1025,6 @@ export default {
|
||||||
var questionInfo = this.measureData[idx]
|
var questionInfo = this.measureData[idx]
|
||||||
// const canvas = this.canvas.querySelector('canvas')
|
// const canvas = this.canvas.querySelector('canvas')
|
||||||
// measureData.pictureBaseStr = canvas.toDataURL('image/png', 1)
|
// measureData.pictureBaseStr = canvas.toDataURL('image/png', 1)
|
||||||
measureData.largestPixelValue = image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1059,7 +1051,6 @@ export default {
|
||||||
},
|
},
|
||||||
loadImageStack(dicomSeries) {
|
loadImageStack(dicomSeries) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.isInitWwwc = true
|
|
||||||
this.isCurrentTask = dicomSeries.isCurrentTask
|
this.isCurrentTask = dicomSeries.isCurrentTask
|
||||||
this.isBaseline = dicomSeries.isBaseLineTask
|
this.isBaseline = dicomSeries.isBaseLineTask
|
||||||
this.readingTaskState = dicomSeries.readingTaskState
|
this.readingTaskState = dicomSeries.readingTaskState
|
||||||
|
@ -1228,7 +1219,7 @@ export default {
|
||||||
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
||||||
this.stack.instanceId = instanceId
|
this.stack.instanceId = instanceId
|
||||||
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1)
|
||||||
|
// this.resetWwwc()
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1326,9 +1317,6 @@ export default {
|
||||||
this.scrollSyncInfo.offset = 0
|
this.scrollSyncInfo.offset = 0
|
||||||
}
|
}
|
||||||
this.renderMeasuredData(e)
|
this.renderMeasuredData(e)
|
||||||
if (this.isInitWwwc) {
|
|
||||||
this.resetWwwc()
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getOrientationMarker(element) {
|
getOrientationMarker(element) {
|
||||||
const enabledElement = cornerstone.getEnabledElement(element)
|
const enabledElement = cornerstone.getEnabledElement(element)
|
||||||
|
@ -1365,7 +1353,6 @@ export default {
|
||||||
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
this.stack.frame = this.stack.isExistMutiFrames ? parseInt(frame) : null
|
||||||
if (e.detail.toolName === 'Length' || e.detail.toolName === 'ArrowAnnotate' || e.detail.toolName === 'RectangleRoi') {
|
if (e.detail.toolName === 'Length' || e.detail.toolName === 'ArrowAnnotate' || e.detail.toolName === 'RectangleRoi') {
|
||||||
const measureData = {}
|
const measureData = {}
|
||||||
measureData.largestPixelValue = element.image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1384,7 +1371,6 @@ export default {
|
||||||
cornerstoneTools.setToolPassiveForElement(this.canvas, e.detail.toolName)
|
cornerstoneTools.setToolPassiveForElement(this.canvas, e.detail.toolName)
|
||||||
} else if (e.detail.toolName === 'Bidirectional') {
|
} else if (e.detail.toolName === 'Bidirectional') {
|
||||||
const measureData = {}
|
const measureData = {}
|
||||||
measureData.largestPixelValue = element.image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1402,7 +1388,6 @@ export default {
|
||||||
cornerstoneTools.setToolPassiveForElement(this.canvas, e.detail.toolName)
|
cornerstoneTools.setToolPassiveForElement(this.canvas, e.detail.toolName)
|
||||||
} else if (e.detail.toolName === 'Probe') {
|
} else if (e.detail.toolName === 'Probe') {
|
||||||
const measureData = {}
|
const measureData = {}
|
||||||
measureData.largestPixelValue = element.image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1513,7 +1498,6 @@ export default {
|
||||||
var questionInfo = this.measureData[idx]
|
var questionInfo = this.measureData[idx]
|
||||||
// const canvas = this.canvas.querySelector('canvas')
|
// const canvas = this.canvas.querySelector('canvas')
|
||||||
// measureData.pictureBaseStr = canvas.toDataURL('image/png', 1)
|
// measureData.pictureBaseStr = canvas.toDataURL('image/png', 1)
|
||||||
measureData.largestPixelValue = element.image.imageFrame.largestPixelValue
|
|
||||||
measureData.imageId = imageId
|
measureData.imageId = imageId
|
||||||
measureData.studyId = this.stack.studyId
|
measureData.studyId = this.stack.studyId
|
||||||
measureData.seriesId = this.stack.seriesId
|
measureData.seriesId = this.stack.seriesId
|
||||||
|
@ -1706,8 +1690,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
resetWwwc() {
|
resetWwwc() {
|
||||||
// console.log('resetWwwc')
|
|
||||||
this.isInitWwwc = true
|
|
||||||
this.toolState.viewportInvert = false
|
this.toolState.viewportInvert = false
|
||||||
var viewport = cornerstone.getViewport(this.canvas)
|
var viewport = cornerstone.getViewport(this.canvas)
|
||||||
// viewport.invert = false
|
// viewport.invert = false
|
||||||
|
@ -1718,7 +1700,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
setWwwc(ww, wc) {
|
setWwwc(ww, wc) {
|
||||||
this.isInitWwwc = false
|
// console.log('setWwwc', ww, wc)
|
||||||
var viewport = cornerstone.getViewport(this.canvas)
|
var viewport = cornerstone.getViewport(this.canvas)
|
||||||
viewport.voi.windowWidth = ww
|
viewport.voi.windowWidth = ww
|
||||||
viewport.voi.windowCenter = wc
|
viewport.voi.windowCenter = wc
|
||||||
|
|
|
@ -447,8 +447,8 @@ export default {
|
||||||
}
|
}
|
||||||
// const val = measureData.data.cachedStats.mean / 10
|
// const val = measureData.data.cachedStats.mean / 10
|
||||||
let val = parseFloat(measureData.data.cachedStats.mean)
|
let val = parseFloat(measureData.data.cachedStats.mean)
|
||||||
// let imagePixelModule = cornerstone.metaData.get('imagePixelModule', measureData.imageId)
|
let imagePixelModule = cornerstone.metaData.get('imagePixelModule', measureData.imageId)
|
||||||
if (measureData.largestPixelValue >= 500) {
|
if (imagePixelModule.largestPixelValue >= 500) {
|
||||||
val = val / 10
|
val = val / 10
|
||||||
}
|
}
|
||||||
this.$set(this.questionForm, measureData.tableQuestionId, val.toFixed(this.digitPlaces))
|
this.$set(this.questionForm, measureData.tableQuestionId, val.toFixed(this.digitPlaces))
|
||||||
|
|
Loading…
Reference in New Issue