diff --git a/code/VideoAccess-VCMP/web/client/assets/images/background/backGround.png b/code/VideoAccess-VCMP/web/client/assets/images/background/backGround.png new file mode 100644 index 0000000..a01c0fe Binary files /dev/null and b/code/VideoAccess-VCMP/web/client/assets/images/background/backGround.png differ diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/actions/nvr.js b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/actions/nvr.js index 367fa0e..f96c665 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/actions/nvr.js +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/actions/nvr.js @@ -1,15 +1,63 @@ -'use strict'; +"use strict"; -import { basicAction } from '@peace/utils' -import { ApiTable } from '$utils' +import { basicAction } from "@peace/utils"; +import { ApiTable } from "$utils"; -export function getMembers (orgId) { - return dispatch => basicAction({ - type: 'get', +export function getMembers(orgId) { + return (dispatch) => + basicAction({ + type: "get", + dispatch: dispatch, + actionType: "GET_MEMBERS", + url: `${ApiTable.getEnterprisesMembers.replace("{enterpriseId}", orgId)}`, + msg: { error: "获取用户列表失败" }, + reducer: { name: "members" }, + }); +} + +export function getNvr(query) { + return (dispatch) => + basicAction({ + type: "get", + dispatch: dispatch, + actionType: "GET_NVR", + query: query, + url: `${ApiTable.getNvr}`, + msg: { option: "获取nvr列表信息" }, + reducer: { name: "equipmentWarehouseNvr" }, + }); +} +export function delNvr(orgId) { + return (dispatch) => + basicAction({ + type: "del", dispatch: dispatch, - actionType: 'GET_MEMBERS', - url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, - msg: { error: '获取用户列表失败' }, - reducer: { name: 'members' } + actionType: "DEL_NVR", + url: `${ApiTable.delNvr.replace("{nvrId}", orgId)}`, + msg: { option: "删除NVR" }, + reducer: { name: "" }, + }); + } +export function addchangeNvr(data) { + return (dispatch) => + basicAction({ + type: "post", + dispatch: dispatch, + data, + actionType: "ADD_CHANGE_NVR", + url: `${ApiTable.nvr}`, + }); +} + +export function getVender() { + //获取设备厂商 + return (dispatch) => + basicAction({ + type: "get", + dispatch: dispatch, + actionType: "GET_VENDER", + url: `${ApiTable.getVender}`, + msg: { error: "获取设备厂商失败" }, + reducer: { name: "vender" }, }); } diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cameraModal.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cameraModal.jsx index 0d19d87..f9cd3c6 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cameraModal.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cameraModal.jsx @@ -1,15 +1,20 @@ import React, { useState ,useRef} from 'react' +import { connect } from "react-redux"; import { Modal,Form,Row,Col,Spin,Notification,Button } from '@douyinfe/semi-ui'; import { IconChevronLeft,IconChevronRight } from '@douyinfe/semi-icons'; -function nvrModal(props){ +import "./cameraModal.less"; +function cameraModal(props){ + const { TextArea } = Form; const {modalName,visible,close}=props const form = useRef(); // const [visible, setVisible] = useState(false);//是否显示弹框 const [isloading,setloading] = useState(false);//是否显示loading const [loadingTip,setloadingTip] = useState('获取中...请稍后...');//loading tip的值 const [step,setstep] = useState(0)//第几步 - const [okText,setokText] = useState('测试校验')//ok弹框text 右边 + const [okText,setokText] = useState('确定')//ok弹框text 右边 const [cancelText,setcancelText] = useState('取消')//取消弹框text 左边 + const [cloud,setcloud] = useState('')//云台支持 + const [voice,setvoice] = useState('')//语音支持 const opts ={//添加完成确认后通知 title:'Hi', content:'添加成功', @@ -55,7 +60,7 @@ function nvrModal(props){ setcancelText('上一步'); setloading(false); }, 2000); - },2000) + }, 2000) }, 2000); }) .catch(errors=>{//表单校验失败 @@ -86,7 +91,7 @@ function nvrModal(props){ } } function handleLocation(){//高德经纬度 - console.log('handleLocationhandleLocation'); + window.open('https://lbs.amap.com/tools/picker','_blank') } function handleChoose(id){//选择摄像头接入类型 setclickNum(id); @@ -193,10 +198,153 @@ function nvrModal(props){ +
+
console.log(values)} + getFormApi={formApi => form.current = formApi}> + + + + + + { + console.log(checked.target.value); + if(checked.target.value=='yes'){ + setcloud('yes') + } + else{ + setcloud('no') + } + }}> + +
+ 支持 +
+ {cloud=='yes'?
+ 1 +
:''} +
+ +
+ 不支持 +
+ {cloud=='no'?
+ 1 +
:''} +
+
+ + + + + +
+ + Semi + 轻颜相机 + 今日头条 + +
+ { + console.log(checked.target.value); + if(checked.target.value=='yes'){ + setvoice('yes') + } + else{ + setvoice('no') + } + }}> + +
+ 支持 +
+ {voice=='yes'?
+ 1 +
:''} +
+ +
+ 不支持 +
+ {voice=='no'?
+ 1 +
:''} +
+
+
+
+ + +
+ +
+ +
+
+
+ +
+ + +