From 84a56ce17fe505bfa7a7759fb9c0a7e15a35fff0 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Thu, 18 Dec 2025 20:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A4=A7=E5=B1=8F=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E6=95=B0=E6=8D=AE=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/PetitionComplaint.vue | 1 + src/views/datav/Global.vue | 27 +++++++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/data/PetitionComplaint.vue b/src/views/data/PetitionComplaint.vue index 04aabda..f3cad07 100644 --- a/src/views/data/PetitionComplaint.vue +++ b/src/views/data/PetitionComplaint.vue @@ -259,6 +259,7 @@ > +

展示国家信访、公安部信访、局长信箱、案件核查等来源涉访涉诉汇总数据。

{ }); // 点击地图事件 const handleClick = (params) => { - const departId = params.data.departId; - const url = router.resolve({ - path: "/datav/subOneGlobal", - query: { departId: departId }, - }).href; - window.open(url, "_blank"); + // 1) 直接点到有 data 的区域 + let departId = params?.data?.departId; + + // 2) 点到 geo / data 匹配不上:用 name 反查 + if (!departId) { + const hit = globalTempMapVoList.value.find((item) => + item.name?.includes(params?.name?.substring?.(0, 2)) + ); + departId = hit?.departId; + } + if (!departId) { + console.warn("没拿到 departId,click params=", params); + return; + } + + const url = router.resolve({ + path: "/datav/subOneGlobal", + query: { departId }, + }).href; + window.open(url, "_blank"); }; + // 鼠标经过||进入事件 用于停止动画,清除定时器 const setupEventListeners = () => { cartProRankAnimtionStop();