Browse Source

解决报错问题

release_0.0.2
wenlele 2 years ago
parent
commit
3f3d357f1e
  1. 13
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
  2. 2
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

13
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

@ -166,8 +166,8 @@ const CameraHeader = (props) => {
dataIndex: "cameraAbility.type", dataIndex: "cameraAbility.type",
key: "type", key: "type",
render: (_, r, index) => { render: (_, r, index) => {
let manufactorName = data.find((item) => item.id == r.venderId); let access = accessType.find((item) => item.key == r.type);
return manufactorName ? manufactorName.name : ""; return access ? access.name : "";
}, },
}, },
{ {
@ -406,8 +406,13 @@ const CameraHeader = (props) => {
placeholder="全部" placeholder="全部"
showClear showClear
> >
<Form.Select.Option value="12">111</Form.Select.Option> {accessType.map((item) => {
<Form.Select.Option value="11">111111</Form.Select.Option> return (
<Form.Select.Option key={item.key} value={item.key}>
{item.name}
</Form.Select.Option>
);
})}
</Form.Select> </Form.Select>
<Form.Select <Form.Select
label="厂家筛选:" label="厂家筛选:"

2
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

@ -8,7 +8,7 @@ import Setup from "../components/setup";
import SideSheets from "../components/sideSheet"; import SideSheets from "../components/sideSheet";
export const accessType = [ export const accessType = [
{ name: "萤石", key: "yingshi" }, { name: "萤石云平台摄像头", key: "yingshi" },
{ name: "NVR摄像头", key: "nvr" }, { name: "NVR摄像头", key: "nvr" },
{ name: "IPC 网络摄像头", key: "ipc" }, { name: "IPC 网络摄像头", key: "ipc" },
{ name: "级联摄像头", key: "cascade" }, { name: "级联摄像头", key: "cascade" },

Loading…
Cancel
Save