|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div
|
|
|
- v-if="store.currentTask?.collationLabelCode && !isInMiniDialog"
|
|
|
+ v-if="store.currentTask?.collationLabelCode"
|
|
|
ref="abnormalRef"
|
|
|
class="abnormal"
|
|
|
>
|
|
@@ -22,26 +22,7 @@ import { store } from "@/store/store";
|
|
|
|
|
|
import { UpOutlined } from "@ant-design/icons-vue";
|
|
|
|
|
|
-const findParent = (child, selector) => {
|
|
|
- let parent = child.parentNode;
|
|
|
- while (parent && parent !== document.documentElement) {
|
|
|
- if (parent.matches(selector)) {
|
|
|
- return parent;
|
|
|
- }
|
|
|
- parent = parent.parentNode;
|
|
|
- }
|
|
|
-
|
|
|
- return null;
|
|
|
-};
|
|
|
-
|
|
|
const abnormalRef = ref();
|
|
|
-const isInMiniDialog = ref(false);
|
|
|
-
|
|
|
-onMounted(() => {
|
|
|
- if (findParent(abnormalRef.value, ".mini-map-container")) {
|
|
|
- isInMiniDialog.value = true;
|
|
|
- }
|
|
|
-});
|
|
|
|
|
|
const show = ref(true);
|
|
|
const result = computed(() => {
|