6 changed files with 80 additions and 14 deletions
@ -0,0 +1,70 @@ |
|||||
|
import React, { useState, useEffect } from "react"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { Button, Form, Input, Row, Table } from "@douyinfe/semi-ui"; |
||||
|
import "../style.less"; |
||||
|
|
||||
|
const CameraHeader = (props) => { |
||||
|
return ( |
||||
|
<> |
||||
|
<div style={{ position: "" }}> |
||||
|
<video |
||||
|
id="nvrBanner" |
||||
|
autoPlay |
||||
|
loop |
||||
|
muted |
||||
|
style={{ width: "100%", objectFit: "cover", height: 171 }} |
||||
|
src="/assets/video/nvr_banner.mp4" |
||||
|
type="video/mp4" |
||||
|
/> |
||||
|
<div style={{ position: "absolute", top: 12 }}> |
||||
|
<div |
||||
|
style={{ |
||||
|
fontSize: 22 + "px", |
||||
|
paddingTop: 15 + "px", |
||||
|
marginLeft: 21 + "px", |
||||
|
}} |
||||
|
> |
||||
|
摄像头管理 |
||||
|
</div> |
||||
|
<div |
||||
|
style={{ |
||||
|
fontSize: 14 + "px", |
||||
|
paddingTop: 18 + "px", |
||||
|
marginLeft: 20 + "px", |
||||
|
}} |
||||
|
> |
||||
|
对NVR(网络硬盘录像机)设备节点的管理 |
||||
|
</div> |
||||
|
<div |
||||
|
style={{ |
||||
|
fontSize: 14 + "px", |
||||
|
marginTop: 28 + "px", |
||||
|
marginLeft: 21 + "px", |
||||
|
width: 89 + "px", |
||||
|
height: 32 + "px", |
||||
|
lineHeight: 32 + "px", |
||||
|
textAlign: "center", |
||||
|
backgroundColor: "#D9EAFF", |
||||
|
color: "#1859C1", |
||||
|
cursor: "pointer", |
||||
|
}} |
||||
|
> |
||||
|
{/* <NvrModal modalName="add" /> */} |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</> |
||||
|
); |
||||
|
}; |
||||
|
|
||||
|
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)(CameraHeader); |
@ -1,5 +1,5 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
import Nvr from './nvr'; |
import Nvr from './nvr'; |
||||
|
import Camera from './camera'; |
||||
export { Nvr }; |
export { Nvr,Camera }; |
@ -1,5 +0,0 @@ |
|||||
.NvrHeader{ |
|
||||
background-image: url(/assets/images/background/nvr_banner.png); |
|
||||
height: 171px; |
|
||||
background-size:100% 100%; |
|
||||
} |
|
Loading…
Reference in new issue