fix(数据大屏): 修复组合中的查询组件,移动到大屏弹窗区没有生效问题

This commit is contained in:
wangjiahao
2025-02-18 14:43:35 +08:00
committed by dataeaseShu
parent f522541f08
commit e6cc733e53

View File

@@ -109,6 +109,13 @@ const show = () => {
snapshotStore.recordSnapshotCache('show')
menuOpt('show')
}
const showMoveMenu = computed(
() =>
curComponent?.value?.canvasId === 'canvas-main' &&
curComponent?.value['category'] === 'base' &&
curComponent.value?.component === 'VQuery' &&
popComponentDataLength.value === 0
)
const categoryChange = type => {
if (curComponent.value) {
snapshotStore.recordSnapshotCache('categoryChange')
@@ -323,14 +330,7 @@ const editQueryCriteria = () => {
is-screen
jsname="L2NvbXBvbmVudC90aHJlc2hvbGQtd2FybmluZy9FZGl0QmFySGFuZGxlcg=="
/>
<li
@click="categoryChange('hidden')"
v-show="
curComponent['category'] === 'base' &&
curComponent.component === 'VQuery' &&
popComponentDataLength === 0
"
>
<li @click="categoryChange('hidden')" v-show="showMoveMenu">
{{ t('visualization.move_to_pop_area') }}
</li>
<el-divider class="custom-divider" />