阅片双击放大问题解决
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1f5157e476
commit
5c91e7a00a
|
@ -379,7 +379,7 @@
|
||||||
<dicom-canvas
|
<dicom-canvas
|
||||||
v-if="canvasW"
|
v-if="canvasW"
|
||||||
:ref="`dicomCanvas${i-1}`"
|
:ref="`dicomCanvas${i-1}`"
|
||||||
:style="{width:canvasW,height: canvasH}"
|
:style="{width: fullScreenIndex === i-1 ? fullScreenWidth : canvasW,height: fullScreenIndex === i-1 ? fullScreenHeight : canvasH}"
|
||||||
:canvas-index="i-1"
|
:canvas-index="i-1"
|
||||||
:is-active="i-1===currentDicomCanvasIndex"
|
:is-active="i-1===currentDicomCanvasIndex"
|
||||||
:is-scroll-sync="isScrollSync"
|
:is-scroll-sync="isScrollSync"
|
||||||
|
@ -914,7 +914,11 @@ export default {
|
||||||
petctWindow: null,
|
petctWindow: null,
|
||||||
|
|
||||||
AspectRatio: 1,
|
AspectRatio: 1,
|
||||||
listShow: true
|
listShow: true,
|
||||||
|
|
||||||
|
fullScreenIndex: -1,
|
||||||
|
fullScreenWidth: window.innerWidth - 570 + 'px',
|
||||||
|
fullScreenHeight: window.innerHeight - 130 + 'px'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1286,22 +1290,29 @@ export default {
|
||||||
this.personalConfigDialog.visible = true
|
this.personalConfigDialog.visible = true
|
||||||
},
|
},
|
||||||
setCornerstoneStyle(i) {
|
setCornerstoneStyle(i) {
|
||||||
|
if (this.layoutCol === 1 && this.layoutRow === 1) {
|
||||||
|
this.fullScreenIndex = -1
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.cornerstoneStyle.position) {
|
if (this.cornerstoneStyle.position) {
|
||||||
this.cornerstoneStyle = {}
|
this.cornerstoneStyle = {}
|
||||||
this.setCanvasStyle()
|
this.setCanvasStyle()
|
||||||
|
this.fullScreenIndex = -1
|
||||||
} else {
|
} else {
|
||||||
this.cornerstoneStyle = {
|
this.cornerstoneStyle = {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: '72px',
|
top: '67px',
|
||||||
left: '0px',
|
left: '0px',
|
||||||
right: '350px',
|
right: '350px',
|
||||||
zIndex: 10
|
zIndex: 10,
|
||||||
}
|
}
|
||||||
this.canvasW = window.innerWidth - 570 + 'px'
|
this.fullScreenIndex = this.currentDicomCanvasIndex
|
||||||
this.canvasH = window.innerHeight - 130 + 'px'
|
let w = 570
|
||||||
|
if (!this.studyShow) w -= 170
|
||||||
|
if (!this.listShow) w -= 330
|
||||||
|
this.fullScreenWidth = window.innerWidth - w + 'px'
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].reloadCanvas()
|
|
||||||
for (var i = 0; i < this.maxCanvas; i++) {
|
for (var i = 0; i < this.maxCanvas; i++) {
|
||||||
this.$refs[`dicomCanvas${i}`][0].reloadCanvas()
|
this.$refs[`dicomCanvas${i}`][0].reloadCanvas()
|
||||||
}
|
}
|
||||||
|
@ -1839,6 +1850,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 切换布局
|
// 切换布局
|
||||||
changeLayout(name) {
|
changeLayout(name) {
|
||||||
|
this.fullScreenIndex = -1
|
||||||
if (!name) name = this.layout ? this.layout : 'A'
|
if (!name) name = this.layout ? this.layout : 'A'
|
||||||
if (this.activeTool) {
|
if (this.activeTool) {
|
||||||
if (this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].isCurrentTask && this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].readingTaskState < 2) {
|
if (this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].isCurrentTask && this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].readingTaskState < 2) {
|
||||||
|
|
Loading…
Reference in New Issue