【dicom分割】分段菜单按钮点击后,再点击另一个分段菜单按钮,上一个展示的弹窗应该消失
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-03-30 17:17:17 +08:00
parent 920d0b21c6
commit c5c9e4364c
1 changed files with 11 additions and 2 deletions

View File

@ -205,7 +205,9 @@
<svg-icon :icon-class="item && !item.view ? 'eye' : 'eye-open'" <svg-icon :icon-class="item && !item.view ? 'eye' : 'eye-open'"
@click.stop="viewSegment(item, !item.view)" class="docShow" /> @click.stop="viewSegment(item, !item.view)" class="docShow" />
<i class="el-icon-lock" v-if="item.lock" @click.stop="lockSegment(item, false)"></i> <i class="el-icon-lock" v-if="item.lock" @click.stop="lockSegment(item, false)"></i>
<el-popover placement="bottom" width="40" trigger="click" class="docShow"> <el-popover placement="bottom" width="40" trigger="click" class="docShow"
:value="popoverId === `popover-${item.segmentationId}_${item.segmentIndex}`"
@show="handleClickPopover(item)">
<div class="SegmentGroupBtnBox"> <div class="SegmentGroupBtnBox">
<div class="SegmentGroupBtn" @click.stop="rename('segment', item)"> <div class="SegmentGroupBtn" @click.stop="rename('segment', item)">
{{ $t('trials:reading:Segmentations:button:renameSegmentGroup') }} {{ $t('trials:reading:Segmentations:button:renameSegmentGroup') }}
@ -352,7 +354,8 @@ export default {
drawing: false, // drawing: false, //
isDel: false, isDel: false,
digitPlaces: 2, digitPlaces: 2,
isloaded: false isloaded: false,
popoverId: null
} }
}, },
mounted() { mounted() {
@ -376,6 +379,9 @@ export default {
}) })
const digitPlaces = Number(localStorage.getItem('digitPlaces')) const digitPlaces = Number(localStorage.getItem('digitPlaces'))
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
// document.addEventListener("click", () => {
// this.popoverId = null
// });
}, },
computed: { computed: {
curSegmentGroup() { curSegmentGroup() {
@ -411,6 +417,9 @@ export default {
} }
}, },
methods: { methods: {
handleClickPopover(item) {
this.popoverId = `popover-${item.segmentationId}_${item.segmentIndex}`
},
initThreshold() { initThreshold() {
if (!this.ThresholdTools.includes(this.activeTool)) { if (!this.ThresholdTools.includes(this.activeTool)) {
this.setToolActive(this.ThresholdTools[0]) this.setToolActive(this.ThresholdTools[0])