feat(bottomUtils): 为口门点位接口请求参数添加mkmjLevel字段
parent
f99e5e9afc
commit
f1cd744883
|
|
@ -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 },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue