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 82d675d..b50c9b3 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,27 +1,54 @@ -'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', - dispatch: dispatch, - actionType: 'GET_MEMBERS', - url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, - msg: { error: '获取用户列表失败' }, - reducer: { name: 'members' } +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 getNvr(query) { + return (dispatch) => + basicAction({ + type: "get", + dispatch: dispatch, + actionType: "GET_NVR", + query: query, + url: `${ApiTable.getNvr}`, + msg: { option: "获取nvr列表信息" }, + reducer: { name: "equipmentWarehouseNvr" }, }); -} \ No newline at end of file +} + +export function addchangeNvr(data) { + return (dispatch) => + basicAction({ + type: "post", + dispatch: dispatch, + data, + actionType: "ADD_CHANGE_NVR", + url: `${ApiTable.nvr}`, + msg: { option: "添加/修改" }, + }); +} + +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..b837f96 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,19 @@ import React, { useState ,useRef} from 'react' import { Modal,Form,Row,Col,Spin,Notification,Button } from '@douyinfe/semi-ui'; import { IconChevronLeft,IconChevronRight } from '@douyinfe/semi-icons'; +import "./cameraModal.less"; function nvrModal(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:'添加成功', @@ -193,6 +197,140 @@ 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 +
:''} +
+
+
+
+ + +
+ +
+ +
+
+
+ +
+ + +