Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
9c36c7975c
|
@ -200,7 +200,7 @@ export default {
|
||||||
this.stack.seriesId = dicomSeries.seriesId
|
this.stack.seriesId = dicomSeries.seriesId
|
||||||
this.stack.seriesNumber = dicomSeries.seriesNumber
|
this.stack.seriesNumber = dicomSeries.seriesNumber
|
||||||
this.stack.imageIds = dicomSeries.imageIds
|
this.stack.imageIds = dicomSeries.imageIds
|
||||||
this.stack.currentImageIdIndex = dicomSeries.imageIdIndex ? dicomSeries.imageIdIndex : 0
|
this.stack.currentImageIdIndex = dicomSeries.imageIdIndex && dicomSeries.imageIdIndex < dicomSeries.imageIds.length ? dicomSeries.imageIdIndex : 0
|
||||||
this.stack.firstImageLoading = true
|
this.stack.firstImageLoading = true
|
||||||
this.stack.description = dicomSeries.description
|
this.stack.description = dicomSeries.description
|
||||||
this.toolState.viewportInvert = false
|
this.toolState.viewportInvert = false
|
||||||
|
|
|
@ -405,7 +405,8 @@ export default {
|
||||||
loadImageStack(dicomSeries) {
|
loadImageStack(dicomSeries) {
|
||||||
this.currentDicomCanvas.toolState.clipPlaying = false
|
this.currentDicomCanvas.toolState.clipPlaying = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.currentDicomCanvas.loadImageStack(dicomSeries)
|
let series = Object.assign({}, dicomSeries)
|
||||||
|
this.currentDicomCanvas.loadImageStack(series)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadOtherImageStack(seriesList) {
|
loadOtherImageStack(seriesList) {
|
||||||
|
@ -415,7 +416,8 @@ export default {
|
||||||
Array.from(elements).forEach((element, index) => {
|
Array.from(elements).forEach((element, index) => {
|
||||||
const canvasIndex = element.getAttribute('data-index')
|
const canvasIndex = element.getAttribute('data-index')
|
||||||
if (index < seriesList.length && element.style.display !== 'none') {
|
if (index < seriesList.length && element.style.display !== 'none') {
|
||||||
this.$refs[`dicomCanvas${canvasIndex}`].loadImageStack(seriesList[index])
|
let series = Object.assign({}, seriesList[index])
|
||||||
|
this.$refs[`dicomCanvas${canvasIndex}`].loadImageStack(series)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -1247,7 +1247,8 @@ export default {
|
||||||
store.dispatch('reading/setActiveSeries', series)
|
store.dispatch('reading/setActiveSeries', series)
|
||||||
store.dispatch('reading/setLastCanvasTaskId', series.visitTaskId)
|
store.dispatch('reading/setLastCanvasTaskId', series.visitTaskId)
|
||||||
}
|
}
|
||||||
this.$refs[`dicomCanvas${index}`][0].loadImageStack(series)
|
const s = Object.assign({}, series)
|
||||||
|
this.$refs[`dicomCanvas${index}`][0].loadImageStack(s)
|
||||||
|
|
||||||
if (this.activeTool) {
|
if (this.activeTool) {
|
||||||
if (series.isCurrentTask && series.readingTaskState < 2) {
|
if (series.isCurrentTask && series.readingTaskState < 2) {
|
||||||
|
@ -1270,7 +1271,8 @@ export default {
|
||||||
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries
|
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeSeries = dicomSeries
|
this.activeSeries = dicomSeries
|
||||||
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].loadImageStack(dicomSeries).then(res => {
|
const s = Object.assign({}, dicomSeries)
|
||||||
|
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].loadImageStack(s).then(res => {
|
||||||
if (this.activeTool) {
|
if (this.activeTool) {
|
||||||
if (dicomSeries.isCurrentTask && dicomSeries.readingTaskState < 2) {
|
if (dicomSeries.isCurrentTask && dicomSeries.readingTaskState < 2) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
@ -1331,7 +1333,8 @@ export default {
|
||||||
// }
|
// }
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeSeries = dicomSeries
|
this.activeSeries = dicomSeries
|
||||||
this.$refs[`dicomCanvas${canvasIndex}`][0].loadImageStack(dicomSeries)
|
const s = Object.assign({}, dicomSeries)
|
||||||
|
this.$refs[`dicomCanvas${canvasIndex}`][0].loadImageStack(s)
|
||||||
|
|
||||||
store.dispatch('reading/setActiveSeries', dicomSeries)
|
store.dispatch('reading/setActiveSeries', dicomSeries)
|
||||||
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
||||||
|
@ -1406,7 +1409,8 @@ export default {
|
||||||
var promiseArr = []
|
var promiseArr = []
|
||||||
for (let i = 0; i < this.maxCanvas && i < seriesStack.length; i++) {
|
for (let i = 0; i < this.maxCanvas && i < seriesStack.length; i++) {
|
||||||
this.canvasObj[i] = seriesStack[i]
|
this.canvasObj[i] = seriesStack[i]
|
||||||
promiseArr.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(seriesStack[i]))
|
const s = Object.assign({}, seriesStack[i])
|
||||||
|
promiseArr.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(s))
|
||||||
}
|
}
|
||||||
Promise.all(promiseArr).then(() => {
|
Promise.all(promiseArr).then(() => {
|
||||||
// this.activateDicomCanvas(this.currentDicomCanvasIndex)
|
// this.activateDicomCanvas(this.currentDicomCanvasIndex)
|
||||||
|
@ -1509,12 +1513,14 @@ export default {
|
||||||
|
|
||||||
for (let i = 0; i < this.maxCanvas; i++) {
|
for (let i = 0; i < this.maxCanvas; i++) {
|
||||||
if (i === this.maxCanvas - 1) {
|
if (i === this.maxCanvas - 1) {
|
||||||
loadImagePromises.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(currentAddSeries))
|
const s = Object.assign({}, currentAddSeries)
|
||||||
|
loadImagePromises.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(s))
|
||||||
this.currentDicomCanvasIndex = i
|
this.currentDicomCanvasIndex = i
|
||||||
this.activeSeries = currentAddSeries
|
this.activeSeries = currentAddSeries
|
||||||
store.dispatch('reading/setActiveSeries', currentAddSeries)
|
store.dispatch('reading/setActiveSeries', currentAddSeries)
|
||||||
} else {
|
} else {
|
||||||
loadImagePromises.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(firstAddSeries))
|
const s = Object.assign({}, firstAddSeries)
|
||||||
|
loadImagePromises.push(this.$refs[`dicomCanvas${i}`][0].loadImageStack(s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Promise.all(loadImagePromises)
|
Promise.all(loadImagePromises)
|
||||||
|
|
|
@ -1335,7 +1335,8 @@ export default {
|
||||||
store.dispatch('reading/setActiveSeries', series)
|
store.dispatch('reading/setActiveSeries', series)
|
||||||
store.dispatch('reading/setLastCanvasTaskId', series.visitTaskId)
|
store.dispatch('reading/setLastCanvasTaskId', series.visitTaskId)
|
||||||
}
|
}
|
||||||
this.$refs[`dicomCanvas${index}`][0].loadImageStack(series)
|
let s = Object.assign({}, series)
|
||||||
|
this.$refs[`dicomCanvas${index}`][0].loadImageStack(s)
|
||||||
|
|
||||||
if (this.activeTool) {
|
if (this.activeTool) {
|
||||||
if (series.isCurrentTask && series.readingTaskState < 2) {
|
if (series.isCurrentTask && series.readingTaskState < 2) {
|
||||||
|
@ -1379,9 +1380,10 @@ export default {
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeSeries = dicomSeries
|
this.activeSeries = dicomSeries
|
||||||
|
let s = Object.assign({}, dicomSeries)
|
||||||
this.$refs[
|
this.$refs[
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
][0].loadImageStack(dicomSeries)
|
][0].loadImageStack(s)
|
||||||
// this.$refs['measurementList'].initPage(dicomSeries)
|
// this.$refs['measurementList'].initPage(dicomSeries)
|
||||||
store.dispatch('reading/setActiveSeries', dicomSeries)
|
store.dispatch('reading/setActiveSeries', dicomSeries)
|
||||||
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
||||||
|
@ -1414,7 +1416,8 @@ export default {
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeSeries = dicomSeries
|
this.activeSeries = dicomSeries
|
||||||
this.$refs[`dicomCanvas${canvasIndex}`][0].loadImageStack(dicomSeries)
|
let s = Object.assign({}, dicomSeries)
|
||||||
|
this.$refs[`dicomCanvas${canvasIndex}`][0].loadImageStack(s)
|
||||||
|
|
||||||
store.dispatch('reading/setActiveSeries', dicomSeries)
|
store.dispatch('reading/setActiveSeries', dicomSeries)
|
||||||
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
if (this.currentDicomCanvasIndex === this.maxCanvas - 1) {
|
||||||
|
@ -1517,8 +1520,9 @@ export default {
|
||||||
var promiseArr = []
|
var promiseArr = []
|
||||||
for (let i = 0; i < this.maxCanvas && i < seriesStack.length; i++) {
|
for (let i = 0; i < this.maxCanvas && i < seriesStack.length; i++) {
|
||||||
this.canvasObj[i] = seriesStack[i]
|
this.canvasObj[i] = seriesStack[i]
|
||||||
|
let s = Object.assign({}, seriesStack[i])
|
||||||
promiseArr.push(
|
promiseArr.push(
|
||||||
this.$refs[`dicomCanvas${i}`][0].loadImageStack(seriesStack[i])
|
this.$refs[`dicomCanvas${i}`][0].loadImageStack(s)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Promise.all(promiseArr)
|
Promise.all(promiseArr)
|
||||||
|
@ -1638,15 +1642,17 @@ export default {
|
||||||
|
|
||||||
for (let i = 0; i < this.maxCanvas; i++) {
|
for (let i = 0; i < this.maxCanvas; i++) {
|
||||||
if (i === this.maxCanvas - 1) {
|
if (i === this.maxCanvas - 1) {
|
||||||
|
let s = Object.assign({}, currentAddSeries)
|
||||||
loadImagePromises.push(
|
loadImagePromises.push(
|
||||||
this.$refs[`dicomCanvas${i}`][0].loadImageStack(currentAddSeries)
|
this.$refs[`dicomCanvas${i}`][0].loadImageStack(s)
|
||||||
)
|
)
|
||||||
this.currentDicomCanvasIndex = i
|
this.currentDicomCanvasIndex = i
|
||||||
this.activeSeries = currentAddSeries
|
this.activeSeries = currentAddSeries
|
||||||
store.dispatch('reading/setActiveSeries', currentAddSeries)
|
store.dispatch('reading/setActiveSeries', currentAddSeries)
|
||||||
} else {
|
} else {
|
||||||
|
let s = Object.assign({}, firstAddSeries)
|
||||||
loadImagePromises.push(
|
loadImagePromises.push(
|
||||||
this.$refs[`dicomCanvas${i}`][0].loadImageStack(firstAddSeries)
|
this.$refs[`dicomCanvas${i}`][0].loadImageStack(s)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue