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 }, }, ], },