DICOM分割工具的个性化配置
parent
7325760c23
commit
eda4b31dda
|
|
@ -988,6 +988,13 @@ export default {
|
|||
this.cols = 2
|
||||
this.activeViewportIndex = 1
|
||||
}
|
||||
if (localStorage.getItem('SegmentConfig') && this.readingTool === 3) {
|
||||
let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
|
||||
this.SegmentConfig.renderOutline = obj.renderOutline
|
||||
this.SegmentConfig.renderFill = obj.renderFill
|
||||
this.SegmentConfig.fillAlpha = obj.fillAlpha
|
||||
this.SegmentConfig.outlineWidth = obj.outlineWidth
|
||||
}
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.loadRelatedTasks()
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
</el-switch>
|
||||
<span style="margin-left: 5px;">{{
|
||||
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
|
||||
}}</span>
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="segmentList.length > 0">
|
||||
|
|
@ -320,7 +320,7 @@
|
|||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="restoreSegmentationVersion(scope.row)">{{
|
||||
$t('trials:reading:Segmentations:button:recovery')
|
||||
}}</el-button>
|
||||
}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -564,6 +564,7 @@ export default {
|
|||
})
|
||||
const digitPlaces = Number(localStorage.getItem('digitPlaces'))
|
||||
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
|
||||
this.getSegmentConfig()
|
||||
// document.addEventListener("click", () => {
|
||||
// this.popoverId = null
|
||||
// });
|
||||
|
|
@ -588,6 +589,7 @@ export default {
|
|||
SegmentConfig: {
|
||||
handler() {
|
||||
// this.readingSegmentByConfig()
|
||||
this.setSegmentConfig()
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
|
|
@ -611,6 +613,23 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
getSegmentConfig() {
|
||||
if (!localStorage.getItem('SegmentConfig')) return false
|
||||
let obj = JSON.parse(localStorage.getItem('SegmentConfig'))
|
||||
this.sliderStep = obj.sliderStep
|
||||
this.sliderMax = obj.sliderMax
|
||||
},
|
||||
setSegmentConfig() {
|
||||
let obj = {
|
||||
sliderStep: this.sliderStep,
|
||||
sliderMax: this.sliderMax,
|
||||
renderOutline: this.SegmentConfig.renderOutline,
|
||||
renderFill: this.SegmentConfig.renderFill,
|
||||
fillAlpha: this.SegmentConfig.fillAlpha,
|
||||
outlineWidth: this.SegmentConfig.outlineWidth,
|
||||
}
|
||||
localStorage.setItem('SegmentConfig', JSON.stringify(obj))
|
||||
},
|
||||
handleSliderChange(value) {
|
||||
// console.log(value, 'value')
|
||||
let data = this.sliderSection.find(item => item.max === value)
|
||||
|
|
@ -620,6 +639,7 @@ export default {
|
|||
if (this.brushSize >= data.max) {
|
||||
this.brushSize = data.max
|
||||
}
|
||||
this.setSegmentConfig()
|
||||
},
|
||||
fileSizeFormatter(size) {
|
||||
if (!size) return
|
||||
|
|
|
|||
Loading…
Reference in New Issue