feat(bottomUtils): 为口门点位接口请求参数添加mkmjLevel字段

master
LiuJiaNan 2026-08-07 20:07:22 +08:00
parent f99e5e9afc
commit f1cd744883
3 changed files with 9 additions and 1 deletions

View File

@ -111,6 +111,7 @@ export const branchOfficeUtilsList = [
type: "doorway", type: "doorway",
request: "getPrimeportMkmjScreenList", request: "getPrimeportMkmjScreenList",
titleKey: "mkmjName", titleKey: "mkmjName",
params: { mkmjLevel: 2 },
}, },
{ {
label: "人员", label: "人员",
@ -131,6 +132,7 @@ export const branchOfficeUtilsList = [
type: "HGKM_MKMJ_GATE_TYPE_PERSON", type: "HGKM_MKMJ_GATE_TYPE_PERSON",
request: "getPrimeportMkmjGateScreenList", request: "getPrimeportMkmjGateScreenList",
titleKey: "gateName", titleKey: "gateName",
params: { mkmjLevel: 2 },
}, },
{ {
label: "车辆闸机", label: "车辆闸机",
@ -139,6 +141,7 @@ export const branchOfficeUtilsList = [
type: "HGKM_MKMJ_GATE_TYPE_CAR", type: "HGKM_MKMJ_GATE_TYPE_CAR",
request: "getPrimeportMkmjGateScreenList", request: "getPrimeportMkmjGateScreenList",
titleKey: "gateName", titleKey: "gateName",
params: { mkmjLevel: 2 },
}, },
{ {
label: "摄像头", label: "摄像头",
@ -147,6 +150,7 @@ export const branchOfficeUtilsList = [
markIcon: pointIco3, markIcon: pointIco3,
request: "getPrimeportVideoScreenList", request: "getPrimeportVideoScreenList",
titleKey: "videoResourceName", titleKey: "videoResourceName",
params: { mkmjLevel: 2 },
}, },
], ],
}, },

View File

@ -153,7 +153,7 @@ function BottomUtils(props) {
// 根据菜单类型补充接口参数转换坐标。 // 根据菜单类型补充接口参数转换坐标。
const getMarkPointData = async (item) => { 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)) if (dangerWorkTypes.includes(item.type))
requestParams.workType = item.type; requestParams.workType = item.type;
if (gateTypes.includes(item.type)) if (gateTypes.includes(item.type))

View File

@ -109,6 +109,7 @@ export const portUtilsList = [
type: "doorway", type: "doorway",
request: "getPrimeportMkmjScreenList", request: "getPrimeportMkmjScreenList",
titleKey: "mkmjName", titleKey: "mkmjName",
params: { mkmjLevel: 1 },
}, },
// { // {
// label: "人员", // label: "人员",
@ -135,6 +136,7 @@ export const portUtilsList = [
type: "HGKM_MKMJ_GATE_TYPE_PERSON", type: "HGKM_MKMJ_GATE_TYPE_PERSON",
request: "getPrimeportMkmjGateScreenList", request: "getPrimeportMkmjGateScreenList",
titleKey: "gateName", titleKey: "gateName",
params: { mkmjLevel: 1 },
}, },
{ {
label: "车辆闸机", label: "车辆闸机",
@ -145,6 +147,7 @@ export const portUtilsList = [
type: "HGKM_MKMJ_GATE_TYPE_CAR", type: "HGKM_MKMJ_GATE_TYPE_CAR",
request: "getPrimeportMkmjGateScreenList", request: "getPrimeportMkmjGateScreenList",
titleKey: "gateName", titleKey: "gateName",
params: { mkmjLevel: 1 },
}, },
{ {
label: "摄像头", label: "摄像头",
@ -155,6 +158,7 @@ export const portUtilsList = [
markIcon: pointIco3, markIcon: pointIco3,
request: "getPrimeportVideoScreenList", request: "getPrimeportVideoScreenList",
titleKey: "videoResourceName", titleKey: "videoResourceName",
params: { mkmjLevel: 1 },
}, },
], ],
}, },