播放速度默认值更改
parent
4c98f91677
commit
134fba1e77
|
@ -247,7 +247,7 @@
|
||||||
<svg-icon icon-class="previousframe" style="font-size:20px;" />
|
<svg-icon icon-class="previousframe" style="font-size:20px;" />
|
||||||
</button>
|
</button>
|
||||||
<!-- 播放 -->
|
<!-- 播放 -->
|
||||||
<button class="btn-link" :title="$t('trials:dicom-show:play')" @click="currentDicomCanvas.toggleClipPlay()">
|
<button class="btn-link" :title="$t('trials:dicom-show:play')" @click="clipPlay">
|
||||||
<svg-icon
|
<svg-icon
|
||||||
:icon-class="currentDicomCanvas.toolState.clipPlaying ? 'stop' : 'play'"
|
:icon-class="currentDicomCanvas.toolState.clipPlaying ? 'stop' : 'play'"
|
||||||
style="font-size:20px;"
|
style="font-size:20px;"
|
||||||
|
@ -261,9 +261,10 @@
|
||||||
<button class="btn-link" :title="$t('trials:dicom-show:lastframe')" @click="currentDicomCanvas.scrollPage(9999)">
|
<button class="btn-link" :title="$t('trials:dicom-show:lastframe')" @click="currentDicomCanvas.scrollPage(9999)">
|
||||||
<svg-icon icon-class="lastframe" style="font-size:20px;" />
|
<svg-icon icon-class="lastframe" style="font-size:20px;" />
|
||||||
</button>
|
</button>
|
||||||
<select class="sidetool-select" style="width:60px" @change="setDicomCanvasfps($event)">
|
<select v-model="fps" class="sidetool-select" style="width:60px" @change="setDicomCanvasfps($event)">
|
||||||
<!-- 默认值 -->
|
<!-- 默认值 -->
|
||||||
<option :value="10">{{ $t('trials:dicom-show:default') }}</option>
|
<option :value="5">5</option>
|
||||||
|
<option :value="10">10</option>
|
||||||
<option :value="15">15</option>
|
<option :value="15">15</option>
|
||||||
<option :value="20">20</option>
|
<option :value="20">20</option>
|
||||||
<option :value="30">30</option>
|
<option :value="30">30</option>
|
||||||
|
@ -386,7 +387,8 @@ export default {
|
||||||
wwwcList: [],
|
wwwcList: [],
|
||||||
layout: null,
|
layout: null,
|
||||||
seriesList: [],
|
seriesList: [],
|
||||||
customWwc: { visible: false, title: null }
|
customWwc: { visible: false, title: null },
|
||||||
|
fps: 15
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -566,6 +568,10 @@ export default {
|
||||||
setDicomCanvasfps(event) {
|
setDicomCanvasfps(event) {
|
||||||
this.currentDicomCanvas.setFps(event.target.value)
|
this.currentDicomCanvas.setFps(event.target.value)
|
||||||
},
|
},
|
||||||
|
clipPlay() {
|
||||||
|
this.currentDicomCanvas.setFps(this.fps)
|
||||||
|
this.currentDicomCanvas.toggleClipPlay()
|
||||||
|
},
|
||||||
fitToType(e, type) {
|
fitToType(e, type) {
|
||||||
const toolButtons = document.querySelectorAll('[data-tool]')
|
const toolButtons = document.querySelectorAll('[data-tool]')
|
||||||
Array.from(toolButtons).forEach((toolBtn) => {
|
Array.from(toolButtons).forEach((toolBtn) => {
|
||||||
|
|
|
@ -328,9 +328,9 @@
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
||||||
<el-tooltip class="item" effect="dark" :content="$t('trials:dicom-show:speed')" placement="bottom">
|
<el-tooltip class="item" effect="dark" :content="$t('trials:dicom-show:speed')" placement="bottom">
|
||||||
<select class="select-wrapper" :disabled="clipPlaying" @change="setDicomCanvasfps($event)">
|
<select v-model="fps" class="select-wrapper" :disabled="clipPlaying" @change="setDicomCanvasfps($event)">
|
||||||
<!-- 默认值 -->
|
<!-- 默认值 -->
|
||||||
<option :value="5">{{ $t('trials:dicom-show:default') }}</option>
|
<!-- <option :value="5">{{ $t('trials:dicom-show:default') }}</option> -->
|
||||||
<option :value="5">5</option>
|
<option :value="5">5</option>
|
||||||
<option :value="10">10</option>
|
<option :value="10">10</option>
|
||||||
<option :value="15">15</option>
|
<option :value="15">15</option>
|
||||||
|
@ -838,7 +838,8 @@ export default {
|
||||||
activeCanvasWW: null,
|
activeCanvasWW: null,
|
||||||
activeCanvasWC: null,
|
activeCanvasWC: null,
|
||||||
activeTaskInfo: {},
|
activeTaskInfo: {},
|
||||||
clipPlaying: false
|
clipPlaying: false,
|
||||||
|
fps: 15
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -902,6 +903,7 @@ export default {
|
||||||
this.clipPlaying = this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toolState.clipPlaying
|
this.clipPlaying = this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toolState.clipPlaying
|
||||||
} else {
|
} else {
|
||||||
this.clipPlaying = false
|
this.clipPlaying = false
|
||||||
|
this.fps = 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1258,6 +1260,7 @@ export default {
|
||||||
},
|
},
|
||||||
loadImageStack(dicomSeries) {
|
loadImageStack(dicomSeries) {
|
||||||
this.clipPlaying = false
|
this.clipPlaying = false
|
||||||
|
this.fps = 15
|
||||||
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries
|
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.activeSeries = dicomSeries
|
this.activeSeries = dicomSeries
|
||||||
|
@ -1948,6 +1951,7 @@ export default {
|
||||||
const isLoaded = this.getSeriesLoadStatus()
|
const isLoaded = this.getSeriesLoadStatus()
|
||||||
if (!isLoaded) return
|
if (!isLoaded) return
|
||||||
this.clipPlaying = isPlay
|
this.clipPlaying = isPlay
|
||||||
|
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].setFps(this.fps)
|
||||||
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleClipPlay(isPlay)
|
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].toggleClipPlay(isPlay)
|
||||||
},
|
},
|
||||||
getSeriesLoadStatus() {
|
getSeriesLoadStatus() {
|
||||||
|
|
|
@ -448,9 +448,8 @@
|
||||||
class="select-wrapper"
|
class="select-wrapper"
|
||||||
:disabled="clipPlaying"
|
:disabled="clipPlaying"
|
||||||
@change="setDicomCanvasfps($event)"
|
@change="setDicomCanvasfps($event)"
|
||||||
|
v-model="fps"
|
||||||
>
|
>
|
||||||
<!-- 默认值 -->
|
|
||||||
<option :value="5">{{ $t("trials:dicom-show:default") }}</option>
|
|
||||||
<option :value="5">5</option>
|
<option :value="5">5</option>
|
||||||
<option :value="10">10</option>
|
<option :value="10">10</option>
|
||||||
<option :value="15">15</option>
|
<option :value="15">15</option>
|
||||||
|
@ -857,7 +856,7 @@ export default {
|
||||||
isFullscreen: false,
|
isFullscreen: false,
|
||||||
manualsDialog: { visible: false },
|
manualsDialog: { visible: false },
|
||||||
clipPlaying: false,
|
clipPlaying: false,
|
||||||
|
fps: 15,
|
||||||
// 上传
|
// 上传
|
||||||
uploadImageVisible: false,
|
uploadImageVisible: false,
|
||||||
trialCriterion: {},
|
trialCriterion: {},
|
||||||
|
@ -900,6 +899,7 @@ export default {
|
||||||
][0].toolState.clipPlaying;
|
][0].toolState.clipPlaying;
|
||||||
} else {
|
} else {
|
||||||
this.clipPlaying = false;
|
this.clipPlaying = false;
|
||||||
|
this.fps = 15
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1358,6 +1358,7 @@ export default {
|
||||||
},
|
},
|
||||||
loadImageStack(dicomSeries) {
|
loadImageStack(dicomSeries) {
|
||||||
this.clipPlaying = false;
|
this.clipPlaying = false;
|
||||||
|
this.fps = 15
|
||||||
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries;
|
this.canvasObj[this.currentDicomCanvasIndex] = dicomSeries;
|
||||||
if (this.activeTool) {
|
if (this.activeTool) {
|
||||||
if (dicomSeries.isCurrentTask && dicomSeries.readingTaskState < 2) {
|
if (dicomSeries.isCurrentTask && dicomSeries.readingTaskState < 2) {
|
||||||
|
@ -2053,7 +2054,6 @@ export default {
|
||||||
dicomSeries.readingTaskState < 2
|
dicomSeries.readingTaskState < 2
|
||||||
) {
|
) {
|
||||||
if (this.activeTool && !type) {
|
if (this.activeTool && !type) {
|
||||||
console.log(1111122222);
|
|
||||||
this.measuredTools.forEach((item) => {
|
this.measuredTools.forEach((item) => {
|
||||||
this.$refs[
|
this.$refs[
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
|
@ -2068,7 +2068,6 @@ export default {
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
][0].setToolActive(toolName);
|
][0].setToolActive(toolName);
|
||||||
} else {
|
} else {
|
||||||
console.log(222233333);
|
|
||||||
this.measuredTools.forEach((item) => {
|
this.measuredTools.forEach((item) => {
|
||||||
this.$refs[
|
this.$refs[
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
|
@ -2080,7 +2079,6 @@ export default {
|
||||||
][0].setToolActive(toolName);
|
][0].setToolActive(toolName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(3333344444);
|
|
||||||
if (!this.activeTool) return;
|
if (!this.activeTool) return;
|
||||||
this.measuredTools.forEach((item) => {
|
this.measuredTools.forEach((item) => {
|
||||||
this.$refs[
|
this.$refs[
|
||||||
|
@ -2093,7 +2091,6 @@ export default {
|
||||||
this.activeTool = "";
|
this.activeTool = "";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(44445555);
|
|
||||||
if (this.activeTool === toolName) {
|
if (this.activeTool === toolName) {
|
||||||
this.$refs[
|
this.$refs[
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
|
@ -2160,6 +2157,7 @@ export default {
|
||||||
const isLoaded = this.getSeriesLoadStatus();
|
const isLoaded = this.getSeriesLoadStatus();
|
||||||
if (!isLoaded) return;
|
if (!isLoaded) return;
|
||||||
this.clipPlaying = isPlay;
|
this.clipPlaying = isPlay;
|
||||||
|
this.$refs[`dicomCanvas${this.currentDicomCanvasIndex}`][0].setFps(this.fps)
|
||||||
this.$refs[
|
this.$refs[
|
||||||
`dicomCanvas${this.currentDicomCanvasIndex}`
|
`dicomCanvas${this.currentDicomCanvasIndex}`
|
||||||
][0].toggleClipPlay(isPlay);
|
][0].toggleClipPlay(isPlay);
|
||||||
|
|
Loading…
Reference in New Issue