|
@@ -10,9 +10,7 @@
|
|
:key="menu.name"
|
|
:key="menu.name"
|
|
class="nav_item"
|
|
class="nav_item"
|
|
:class="{
|
|
:class="{
|
|
- active: menu.router.includes(
|
|
|
|
- router.currentRoute.value.name.toString()
|
|
|
|
- ),
|
|
|
|
|
|
+ active: menu.router.includes(router.currentRoute.value.name.toString()),
|
|
}"
|
|
}"
|
|
@click="router.replace({ name: menu.router[Number(queryMode)] })"
|
|
@click="router.replace({ name: menu.router[Number(queryMode)] })"
|
|
>
|
|
>
|
|
@@ -85,12 +83,7 @@ import { router } from "@/router";
|
|
import { Back } from "@element-plus/icons-vue";
|
|
import { Back } from "@element-plus/icons-vue";
|
|
import vectorIcon from "@/assets/vector.svg";
|
|
import vectorIcon from "@/assets/vector.svg";
|
|
import locationIcon from "@/assets/location.svg";
|
|
import locationIcon from "@/assets/location.svg";
|
|
-import {
|
|
|
|
- COORD_NAME,
|
|
|
|
- POYS_NAME,
|
|
|
|
- QUERY_COORD_NAME,
|
|
|
|
- QUERY_POYS_NAME,
|
|
|
|
-} from "@/router";
|
|
|
|
|
|
+import { COORD_NAME, POYS_NAME, QUERY_COORD_NAME, QUERY_POYS_NAME } from "@/router";
|
|
import {
|
|
import {
|
|
mapManage,
|
|
mapManage,
|
|
board,
|
|
board,
|
|
@@ -118,8 +111,7 @@ const menus = [
|
|
router: [POYS_NAME, QUERY_POYS_NAME],
|
|
router: [POYS_NAME, QUERY_POYS_NAME],
|
|
},
|
|
},
|
|
];
|
|
];
|
|
-const setMapContainer = (dom: HTMLDivElement) =>
|
|
|
|
- setTimeout(() => mapManage.mount(dom));
|
|
|
|
|
|
+const setMapContainer = (dom: HTMLDivElement) => setTimeout(() => mapManage.mount(dom));
|
|
const setBoardContainer = (dom: HTMLDivElement) =>
|
|
const setBoardContainer = (dom: HTMLDivElement) =>
|
|
setTimeout(() => board.setProps({ dom }));
|
|
setTimeout(() => board.setProps({ dom }));
|
|
|
|
|
|
@@ -154,7 +146,13 @@ watch(
|
|
const showPoints = ref(true);
|
|
const showPoints = ref(true);
|
|
|
|
|
|
watch(
|
|
watch(
|
|
- () => [isCoordPage.value, boardData.value, showPoints.value] as const,
|
|
|
|
|
|
+ () =>
|
|
|
|
+ [
|
|
|
|
+ isCoordPage.value,
|
|
|
|
+ boardData.value,
|
|
|
|
+ showPoints.value,
|
|
|
|
+ board.polygon.attrib.points.length,
|
|
|
|
+ ] as const,
|
|
([isCoordPage, _, showPoints]) => {
|
|
([isCoordPage, _, showPoints]) => {
|
|
if (!board.polygon) return;
|
|
if (!board.polygon) return;
|
|
const ids = scenePoints.value.map(({ id }) => id.toString());
|
|
const ids = scenePoints.value.map(({ id }) => id.toString());
|