diff --git a/code/VideoAccess-VCMP/web/client/assets/images/background/setup.png b/code/VideoAccess-VCMP/web/client/assets/images/background/setup.png new file mode 100644 index 0000000..8e3944e Binary files /dev/null and b/code/VideoAccess-VCMP/web/client/assets/images/background/setup.png differ diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/setup.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/setup.jsx new file mode 100644 index 0000000..276670b --- /dev/null +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/setup.jsx @@ -0,0 +1,33 @@ +import React, { useState, useEffect } from "react"; +import { Modal, CheckboxGroup, Checkbox } from "@douyinfe/semi-ui"; + +function Setup(props) { + const { dispatch, actions, user, loading, visible, close, editData } = props; + return ( + { + close(); + }} + onCancel={() => { + close(); + }} + > + {}} + /> + + ); +} + +export default Setup; diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx index ae58a53..9796cce 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx @@ -1,11 +1,13 @@ -import React, { useEffect } from "react"; +import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import { Button, Form, Input, Row, Table } from "@douyinfe/semi-ui"; import "../style.less"; -import NvrModal from "../components/nvrModal" +import NvrModal from "../components/nvrModal"; +import Setup from "../components/setup"; const NvrHeader = (props) => { const { dispatch, actions, user, loading } = props; + const [setup, setSetup] = useState(false); const screen = { width: 193, @@ -16,7 +18,6 @@ const NvrHeader = (props) => { const columns = [ { title: "序号", - align: "center", render: (text, record, index) => { return index + 1; }, @@ -24,8 +25,8 @@ const NvrHeader = (props) => { { title: "设备名称", // dataIndex: "name",/// - align: "center", width: 200, + background: "red", render: (text, record, index) => { return (
@@ -45,34 +46,30 @@ const NvrHeader = (props) => { }, { title: "设备厂家", - align: "center", dataIndex: "size", }, { title: "SIP地址", - align: "center", dataIndex: "owner", }, { title: "端口号", - align: "center", dataIndex: "updateTime", }, { title: "通道数", - align: "center", dataIndex: "nameIconSrc", }, { title: "操作", - align: "center", + width: "20%", dataIndex: "", render: (y) => { return ( <> - - - + + + ); }, @@ -109,45 +106,53 @@ const NvrHeader = (props) => { ]; return ( <> -
-
+
+
{
{ width: 65, height: 30, borderRadius: 3, - marginBottom: "20px", - marginRight: "20px", + marginBottom: 20, + marginRight: 20, }} > 搜素 @@ -243,7 +248,7 @@ const NvrHeader = (props) => { backGround: "#FFFFFF", borderRadius: 3, border: "1px solid #D9D9D9", - marginBottom: "20px", + marginBottom: 20, }} > 重置 @@ -251,8 +256,15 @@ const NvrHeader = (props) => {
- +
{ > 设备列表
- } - columns={columns} - dataSource={data} - pagination={false} - bordered={false} - /> +
+ + +
+
+
+ {setup ? ( + { + setSetup(false); + // setEditData(null) + }} + // reportType={reportType} + // editData={editData} + /> + ) : ( + "" + )} + ); }; -function mapStateToProps (state) { - const { auth, global, members } = state; - return { - loading: members.isRequesting, - user: auth.user, - actions: global.actions, - members: members.data, - }; +function mapStateToProps(state) { + const { auth, global, members } = state; + return { + loading: members.isRequesting, + user: auth.user, + actions: global.actions, + members: members.data, + }; } export default connect(mapStateToProps)(NvrHeader);