Browse Source

信鸽页面暂存

release_1.1.1
yangsen 2 years ago
parent
commit
a40ad82452
  1. 35
      code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx

35
code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx

@ -44,7 +44,7 @@ const Carrierpigeon = (props) => {
localStorage.getItem(PIGEON) == null localStorage.getItem(PIGEON) == null
? localStorage.setItem( ? localStorage.setItem(
PIGEON, PIGEON,
JSON.stringify(["manufactor", "type","state","support"]) JSON.stringify(["manufactor", "type", "state", "support"])
) )
: ""; : "";
}, []); }, []);
@ -93,7 +93,7 @@ const Carrierpigeon = (props) => {
}, },
}, },
{ {
title: "设备名称", title: "策略名称",
dataIndex: "name", dataIndex: "name",
render: (_, r, index) => { render: (_, r, index) => {
console.log(r); console.log(r);
@ -101,10 +101,19 @@ const Carrierpigeon = (props) => {
}, },
}, },
{ {
title: "SIP地址", title: "监听设备数量",
dataIndex: "owner", dataIndex: "owner",
render: (_, r, index) => { render: (_, r, index) => {
return r?.gbNvr?.sipip console.log(r);
return r.name
},
},
{
title: "累计推送次数",
dataIndex: "owner",
render: (_, r, index) => {
console.log(r);
return (r.name + '次')
}, },
}, },
{ {
@ -115,7 +124,7 @@ const Carrierpigeon = (props) => {
return ( return (
<div style={{ display: "flex" }}> <div style={{ display: "flex" }}>
<Button theme="borderless"> <Button theme="borderless">
启用 修改
</Button> </Button>
<Button <Button
theme="borderless" theme="borderless"
@ -124,7 +133,7 @@ const Carrierpigeon = (props) => {
setRowId(row.id); setRowId(row.id);
}} }}
> >
释义 禁用
</Button> </Button>
<Popconfirm <Popconfirm
title="删除NVR会删除端口下的所有摄像头,是否确定删除?" title="删除NVR会删除端口下的所有摄像头,是否确定删除?"
@ -141,8 +150,14 @@ const Carrierpigeon = (props) => {
}); });
}} }}
> >
<Button theme="borderless">方案</Button> <Button theme="borderless">删除</Button>
</Popconfirm> </Popconfirm>
<Button theme="borderless">
复制
</Button>
<Button theme="borderless">
日志
</Button>
</div> </div>
); );
}, },
@ -157,7 +172,7 @@ const Carrierpigeon = (props) => {
const column = [ const column = [
{ {
title: "设备厂家", title: "策略类型",
dataIndex: "venderId", dataIndex: "venderId",
key: "manufactor", key: "manufactor",
render: (_, r, index) => { render: (_, r, index) => {
@ -184,7 +199,7 @@ const Carrierpigeon = (props) => {
key: "port", key: "port",
}, },
{ {
title: "设备状态", title: "推送机制",
dataIndex: "size", dataIndex: "size",
key: "state", key: "state",
render: (_, r, index) => { render: (_, r, index) => {
@ -519,7 +534,7 @@ const Carrierpigeon = (props) => {
}} }}
> >
<span style={{ lineHeight: "30px" }}> <span style={{ lineHeight: "30px" }}>
{equipmentWarehouseNvr.total}个设备 {equipmentWarehouseNvr.total}条策略
</span> </span>
<Pagination <Pagination
total={equipmentWarehouseNvr.total} total={equipmentWarehouseNvr.total}

Loading…
Cancel
Save