|
@@ -26,6 +26,7 @@ import { getPointInfoList } from '@/api/globalMap';
|
|
|
import { getDictLabel } from '@/utils/dict';
|
|
|
import { methodList, titleList } from '../data';
|
|
|
import { pointDetailTemplate } from '@/views/globalMap/data/mapData';
|
|
|
+import useAppStore from '@/store/modules/app';
|
|
|
|
|
|
interface Props {
|
|
|
activeMap: string;
|
|
@@ -36,6 +37,7 @@ const containerScale = inject('containerScale');
|
|
|
const props = withDefaults(defineProps<Props>(), {});
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { point_type } = toRefs<any>(proxy?.useDict('point_type'));
|
|
|
+const appStore = useAppStore();
|
|
|
const emits = defineEmits(['update:drawing', 'update:showMask', 'selectGraphics', 'handleShowWarehouse', 'handleShowVideo', 'handleShowPeople']);
|
|
|
|
|
|
const mapRef = ref(null);
|
|
@@ -64,6 +66,22 @@ watch(
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
+watch(
|
|
|
+ () => appStore.showLeftSection,
|
|
|
+ () => {
|
|
|
+ nextTick(() => {
|
|
|
+ handleResize();
|
|
|
+ });
|
|
|
+ }
|
|
|
+);
|
|
|
+watch(
|
|
|
+ () => appStore.showRightSection,
|
|
|
+ () => {
|
|
|
+ nextTick(() => {
|
|
|
+ handleResize();
|
|
|
+ });
|
|
|
+ }
|
|
|
+);
|
|
|
const mapList = reactive({
|
|
|
satellite2: ['YZT1715739306532', 'YZT1695608158269'],
|
|
|
satellite3: ['YZT1708679726700', 'YZT1695608158269'],
|