From f1cd7448831605a8d04a3d4f2e5b2b96a11a42d6 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Fri, 7 Aug 2026 20:07:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(bottomUtils):=20=E4=B8=BA=E5=8F=A3?= =?UTF-8?q?=E9=97=A8=E7=82=B9=E4=BD=8D=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=B7=BB=E5=8A=A0mkmjLevel=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Map/components/BottomUtils/branchOfficeUtilsList.js | 4 ++++ src/pages/Container/Map/components/BottomUtils/index.js | 2 +- .../Container/Map/components/BottomUtils/portUtilsList.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js b/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js index 3771d18..cc9f80c 100644 --- a/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js +++ b/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js @@ -111,6 +111,7 @@ export const branchOfficeUtilsList = [ type: "doorway", request: "getPrimeportMkmjScreenList", titleKey: "mkmjName", + params: { mkmjLevel: 2 }, }, { label: "人员", @@ -131,6 +132,7 @@ export const branchOfficeUtilsList = [ type: "HGKM_MKMJ_GATE_TYPE_PERSON", request: "getPrimeportMkmjGateScreenList", titleKey: "gateName", + params: { mkmjLevel: 2 }, }, { label: "车辆闸机", @@ -139,6 +141,7 @@ export const branchOfficeUtilsList = [ type: "HGKM_MKMJ_GATE_TYPE_CAR", request: "getPrimeportMkmjGateScreenList", titleKey: "gateName", + params: { mkmjLevel: 2 }, }, { label: "摄像头", @@ -147,6 +150,7 @@ export const branchOfficeUtilsList = [ markIcon: pointIco3, request: "getPrimeportVideoScreenList", titleKey: "videoResourceName", + params: { mkmjLevel: 2 }, }, ], }, diff --git a/src/pages/Container/Map/components/BottomUtils/index.js b/src/pages/Container/Map/components/BottomUtils/index.js index a99190f..a1ccf86 100644 --- a/src/pages/Container/Map/components/BottomUtils/index.js +++ b/src/pages/Container/Map/components/BottomUtils/index.js @@ -153,7 +153,7 @@ function BottomUtils(props) { // 根据菜单类型补充接口参数转换坐标。 const getMarkPointData = async (item) => { - const requestParams = { portArea, corpinfoId: currentBranchOffice, pageIndex: 1, pageSize: 9999 }; + const requestParams = { portArea, corpinfoId: currentBranchOffice, ...(item.params || {}), pageIndex: 1, pageSize: 9999 }; if (dangerWorkTypes.includes(item.type)) requestParams.workType = item.type; if (gateTypes.includes(item.type)) diff --git a/src/pages/Container/Map/components/BottomUtils/portUtilsList.js b/src/pages/Container/Map/components/BottomUtils/portUtilsList.js index c64161d..7a523db 100644 --- a/src/pages/Container/Map/components/BottomUtils/portUtilsList.js +++ b/src/pages/Container/Map/components/BottomUtils/portUtilsList.js @@ -109,6 +109,7 @@ export const portUtilsList = [ type: "doorway", request: "getPrimeportMkmjScreenList", titleKey: "mkmjName", + params: { mkmjLevel: 1 }, }, // { // label: "人员", @@ -135,6 +136,7 @@ export const portUtilsList = [ type: "HGKM_MKMJ_GATE_TYPE_PERSON", request: "getPrimeportMkmjGateScreenList", titleKey: "gateName", + params: { mkmjLevel: 1 }, }, { label: "车辆闸机", @@ -145,6 +147,7 @@ export const portUtilsList = [ type: "HGKM_MKMJ_GATE_TYPE_CAR", request: "getPrimeportMkmjGateScreenList", titleKey: "gateName", + params: { mkmjLevel: 1 }, }, { label: "摄像头", @@ -155,6 +158,7 @@ export const portUtilsList = [ markIcon: pointIco3, request: "getPrimeportVideoScreenList", titleKey: "videoResourceName", + params: { mkmjLevel: 1 }, }, ], },