Compare commits
No commits in common. "9d601b4a4654259f698e1ade4acf53253e484453" and "ae536a7fc43dbfa50404235522b40a9ff5dd0010" have entirely different histories.
9d601b4a46
...
ae536a7fc4
|
|
@ -703,7 +703,7 @@ export default {
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
},
|
},
|
||||||
// currentReadingTaskState() { console.log(this.currentReadingTaskState, 'currentReadingTaskState') },
|
currentReadingTaskState() { console.log(this.currentReadingTaskState, 'currentReadingTaskState') },
|
||||||
activeTaskId: {
|
activeTaskId: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler(id) {
|
handler(id) {
|
||||||
|
|
@ -722,7 +722,7 @@ export default {
|
||||||
this.clipPlaying = false
|
this.clipPlaying = false
|
||||||
this.fps = 15
|
this.fps = 15
|
||||||
}
|
}
|
||||||
if (index === this.cells.length - 1 && series && series.TaskInfo) {
|
if (index === this.cells.length - 1 && series) {
|
||||||
this.lastViewportTaskId = series.TaskInfo.VisitTaskId
|
this.lastViewportTaskId = series.TaskInfo.VisitTaskId
|
||||||
this.currentVisitInfo = series.TaskInfo
|
this.currentVisitInfo = series.TaskInfo
|
||||||
}
|
}
|
||||||
|
|
@ -1047,6 +1047,7 @@ export default {
|
||||||
const element2 = this.$refs['viewport-1'][0].$el
|
const element2 = this.$refs['viewport-1'][0].$el
|
||||||
const element3 = this.$refs['viewport-2'][0].$el
|
const element3 = this.$refs['viewport-2'][0].$el
|
||||||
const element4 = this.$refs['viewport-3'][0].$el
|
const element4 = this.$refs['viewport-3'][0].$el
|
||||||
|
console.log(Enums.OrientationAxis)
|
||||||
let viewportInputArray = [
|
let viewportInputArray = [
|
||||||
{
|
{
|
||||||
viewportId: 'viewport-0',
|
viewportId: 'viewport-0',
|
||||||
|
|
@ -1088,7 +1089,7 @@ export default {
|
||||||
type: ViewportType.ORTHOGRAPHIC,
|
type: ViewportType.ORTHOGRAPHIC,
|
||||||
element: volumeElement2,
|
element: volumeElement2,
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
orientation: Enums.OrientationAxis.SAGITTAL
|
orientation: Enums.OrientationAxis.CORONAL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -1096,7 +1097,7 @@ export default {
|
||||||
type: ViewportType.ORTHOGRAPHIC,
|
type: ViewportType.ORTHOGRAPHIC,
|
||||||
element: volumeElement3,
|
element: volumeElement3,
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
orientation: Enums.OrientationAxis.CORONAL
|
orientation: Enums.OrientationAxis.SAGITTAL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
@ -1505,6 +1506,7 @@ export default {
|
||||||
const referencedImageId = annotation.metadata.referencedImageId
|
const referencedImageId = annotation.metadata.referencedImageId
|
||||||
console.log(annotation, 'annotation')
|
console.log(annotation, 'annotation')
|
||||||
const params = this.getInstanceInfo(referencedImageId)
|
const params = this.getInstanceInfo(referencedImageId)
|
||||||
|
console.log(params, 'params')
|
||||||
annotation.visitTaskId = series.TaskInfo.VisitTaskId
|
annotation.visitTaskId = series.TaskInfo.VisitTaskId
|
||||||
annotation.studyId = series.StudyId
|
annotation.studyId = series.StudyId
|
||||||
annotation.seriesId = series.Id
|
annotation.seriesId = series.Id
|
||||||
|
|
@ -2723,31 +2725,20 @@ export default {
|
||||||
const i = this.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
const i = this.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
if (i === -1) return
|
if (i === -1) return
|
||||||
const studyList = this.visitTaskList[i].StudyList
|
const studyList = this.visitTaskList[i].StudyList
|
||||||
let series = this.getMarkedSeries(studyList, obj.annotation, true)
|
const series = this.getMarkedSeries(studyList, obj.annotation, true)
|
||||||
if (series) {
|
if (series) {
|
||||||
this.activeViewportIndex = this.cells.length - 1
|
this.activeViewportIndex = this.cells.length - 1
|
||||||
if (obj.annotation.from === 'MPR') {
|
if (obj.annotation.from === 'MPR') {
|
||||||
|
let res = await this.openMPRViewport(series)
|
||||||
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
||||||
if (viewPlaneNormal === '0,0,-1') {
|
if (viewPlaneNormal === '0,0,-1') {
|
||||||
this.activeViewportIndex = 0
|
this.activeViewportIndex = 0
|
||||||
series = Object.assign({ orientation: 'AXIAL' }, series)
|
|
||||||
} else if (viewPlaneNormal === '0,-1,0') {
|
} else if (viewPlaneNormal === '0,-1,0') {
|
||||||
this.activeViewportIndex = 2
|
|
||||||
series = Object.assign({ orientation: 'CORONAL' }, series)
|
|
||||||
} else if (viewPlaneNormal === '1,0,0') {
|
|
||||||
this.activeViewportIndex = 1
|
this.activeViewportIndex = 1
|
||||||
series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
} else if (viewPlaneNormal === '1,0,0') {
|
||||||
|
this.activeViewportIndex = 2
|
||||||
}
|
}
|
||||||
let res = await this.openMPRViewport(series)
|
|
||||||
if (!res) return false
|
if (!res) return false
|
||||||
} else {
|
|
||||||
if (this.isMPR) {
|
|
||||||
this.isMPR = false
|
|
||||||
this.rows = 1
|
|
||||||
this.cols = 1
|
|
||||||
this.activeViewportIndex = 0
|
|
||||||
// return this.activeSeries(series)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
||||||
this.$refs[series.TaskInfo.VisitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
this.$refs[series.TaskInfo.VisitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
||||||
|
|
@ -2757,41 +2748,17 @@ export default {
|
||||||
const i = this.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
const i = this.visitTaskList.findIndex(i => i.VisitTaskId === obj.visitTaskId)
|
||||||
if (i === -1) return
|
if (i === -1) return
|
||||||
const studyList = this.visitTaskList[i].StudyList
|
const studyList = this.visitTaskList[i].StudyList
|
||||||
let series = this.getMarkedSeries(studyList, obj.annotation, true)
|
const series = this.getMarkedSeries(studyList, obj.annotation, true)
|
||||||
if (series) {
|
if (series) {
|
||||||
this.activeViewportIndex = this.cells.length - 1
|
this.activeViewportIndex = this.cells.length - 1
|
||||||
if (obj.annotation.from === 'MPR') {
|
if (obj.annotation.from === 'MPR') {
|
||||||
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
||||||
if (viewPlaneNormal === '0,0,-1') {
|
if (viewPlaneNormal === '0,0,-1') {
|
||||||
this.activeViewportIndex = 0
|
this.activeViewportIndex = 0
|
||||||
series = Object.assign({ orientation: 'AXIAL' }, series)
|
|
||||||
} else if (viewPlaneNormal === '0,-1,0') {
|
} else if (viewPlaneNormal === '0,-1,0') {
|
||||||
this.activeViewportIndex = 2
|
|
||||||
series = Object.assign({ orientation: 'CORONAL' }, series)
|
|
||||||
} else if (viewPlaneNormal === '1,0,0') {
|
|
||||||
this.activeViewportIndex = 1
|
this.activeViewportIndex = 1
|
||||||
series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
} else if (viewPlaneNormal === '1,0,0') {
|
||||||
}
|
this.activeViewportIndex = 2
|
||||||
let res = await this.openMPRViewport(series)
|
|
||||||
if (!res) {
|
|
||||||
this.$refs[series.TaskInfo.VisitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
|
||||||
setTimeout(async () => {
|
|
||||||
const divForDownloadViewport = document.querySelector(
|
|
||||||
`div[data-viewport-uid="${this.viewportKey}-${this.activeViewportIndex}"]`
|
|
||||||
)
|
|
||||||
const canvas = await html2canvas(divForDownloadViewport)
|
|
||||||
const base64Str = canvas.toDataURL('image/png', 1)
|
|
||||||
callback(base64Str)
|
|
||||||
}, 200)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (this.isMPR) {
|
|
||||||
this.isMPR = false
|
|
||||||
this.rows = 1
|
|
||||||
this.cols = 1
|
|
||||||
this.activeViewportIndex = 0
|
|
||||||
// return this.activeSeries(series)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(series, true)
|
||||||
|
|
@ -2803,7 +2770,7 @@ export default {
|
||||||
const canvas = await html2canvas(divForDownloadViewport)
|
const canvas = await html2canvas(divForDownloadViewport)
|
||||||
const base64Str = canvas.toDataURL('image/png', 1)
|
const base64Str = canvas.toDataURL('image/png', 1)
|
||||||
callback(base64Str)
|
callback(base64Str)
|
||||||
}, 200)
|
}, 500)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getScreenshots(measureData, callback) {
|
async getScreenshots(measureData, callback) {
|
||||||
|
|
@ -3157,27 +3124,24 @@ export default {
|
||||||
},
|
},
|
||||||
async openMPRViewport(data = null) {
|
async openMPRViewport(data = null) {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
if (this.isMPR) {
|
if (this.isMPR) return resolve(true)
|
||||||
if (!data) return resolve(false)
|
|
||||||
let viewportSeries = this.$refs[`viewport-volume-0`][0].series
|
|
||||||
if (data && viewportSeries.SeriesInstanceUid === data.SeriesInstanceUid) return resolve(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.isMPR = true
|
this.isMPR = true
|
||||||
this.rows = 3
|
this.rows = 3
|
||||||
this.cols = 1
|
this.cols = 1
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.loadingText = this.$t('trials:lugano:message:loadVolumes')
|
this.loadingText = this.$t('trials:lugano:message:loadVolumes')
|
||||||
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
|
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
|
||||||
if (!data) this.activeViewportIndex = 0
|
this.activeViewportIndex = 0
|
||||||
const visitTaskId = this.visitTaskList[this.activeTaskIndex].VisitTaskId
|
// this.$refs[`viewport-0`][0].setSeriesInfo(series)
|
||||||
this.$refs[visitTaskId][0].setSeriesActive(series.StudyIndex, series.SeriesIndex)
|
// this.$refs[`viewport-1`][0].setSeriesInfo(series)
|
||||||
|
// this.$refs[`viewport-2`][0].setSeriesInfo(series)
|
||||||
|
// this.$refs[`viewport-3`][0].setSeriesInfo(series)
|
||||||
await this.getVolume(series)
|
await this.getVolume(series)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.loadingText = null
|
this.loadingText = null
|
||||||
this.$refs[`viewport-volume-0`][0].setSeriesInfo(Object.assign({ orientation: 'AXIAL', isLocation: data && this.activeViewportIndex === 0 }, series))
|
this.$refs[`viewport-volume-0`][0].setSeriesInfo(Object.assign({ orientation: 'AXIAL' }, series))
|
||||||
this.$refs[`viewport-volume-1`][0].setSeriesInfo(Object.assign({ orientation: 'SAGITTAL', isLocation: data && this.activeViewportIndex === 1 }, series))
|
this.$refs[`viewport-volume-1`][0].setSeriesInfo(Object.assign({ orientation: 'CORONAL' }, series))
|
||||||
this.$refs[`viewport-volume-2`][0].setSeriesInfo(Object.assign({ orientation: 'CORONAL', isLocation: data && this.activeViewportIndex === 2 }, series))
|
this.$refs[`viewport-volume-2`][0].setSeriesInfo(Object.assign({ orientation: 'SAGITTAL' }, series))
|
||||||
resolve(false)
|
resolve(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ export default {
|
||||||
async setSeriesInfo(obj, isLocate = false) {
|
async setSeriesInfo(obj, isLocate = false) {
|
||||||
try {
|
try {
|
||||||
let data = obj
|
let data = obj
|
||||||
if (this.series && data.Id === this.series.Id && data.Description === this.series.Description && !isLocate && !data.isLocation) {
|
if (this.series && data.Id === this.series.Id && data.Description === this.series.Description && !isLocate) {
|
||||||
data.SliceIndex = this.series.SliceIndex
|
data.SliceIndex = this.series.SliceIndex
|
||||||
}
|
}
|
||||||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||||
|
|
@ -421,11 +421,7 @@ export default {
|
||||||
}
|
}
|
||||||
console.log("渲染成功")
|
console.log("渲染成功")
|
||||||
}
|
}
|
||||||
}]).then(res => {
|
}])
|
||||||
if (data.isLocation) {
|
|
||||||
setTimeout(() => { csUtils.jumpToSlice(viewport.element, { imageIndex: data.SliceIndex }); })
|
|
||||||
}
|
|
||||||
})
|
|
||||||
viewport.render()
|
viewport.render()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 150px">{{
|
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 150px">{{
|
||||||
user.RealName }}</span>
|
user.RealName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: .75rem;line-height: 18px;color:#999" v-if="isEN">{{ new
|
<div style="font-size: .75rem;line-height: 18px;color:#999" v-if="NODE_ENV !== 'usa'">{{ new
|
||||||
Date().getFullYear() }}{{ $t('common:date:today') }}{{ new Date().getMonth() +
|
Date().getFullYear() }}{{ $t('common:date:today') }}{{ new Date().getMonth() +
|
||||||
1 }}{{ $t('common:date:month') }}{{ new Date().getDate() }}{{ $t('common:date:day') }},{{ dayOfWeek }}
|
1 }}{{ $t('common:date:month') }}{{ new Date().getDate() }}{{ $t('common:date:day') }},{{ dayOfWeek }}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -644,10 +644,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userId', 'name']),
|
...mapGetters(['userId', 'name']),
|
||||||
...mapState('user', ['isTestUser']),
|
...mapState('user', ['isTestUser'])
|
||||||
isEN() {
|
|
||||||
return this.$i18n.locale !== 'zh'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getUserTobeDoneRecord()
|
this.getUserTobeDoneRecord()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue