From 49fcae7088c073be0e4f8fd342acf0f5e6d52a7c Mon Sep 17 00:00:00 2001 From: wenlele Date: Wed, 24 Aug 2022 13:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../openness/containers/mirroringDetail.jsx | 1058 ++++++++++------- .../client/src/sections/openness/style.less | 8 + 2 files changed, 640 insertions(+), 426 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroringDetail.jsx b/code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroringDetail.jsx index df8205d..0c6113f 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroringDetail.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroringDetail.jsx @@ -2,462 +2,668 @@ import React, { useEffect, useState, useRef } from 'react'; import { connect } from 'react-redux'; import '../style.less' import { Tree, Popconfirm, Typography, Input, Switch, Modal, Checkbox, CheckboxGroup } from "@douyinfe/semi-ui"; -import VideoScreen from '../components/videoScreen' const MirroringDetail = (props) => { - const { history, dispatch, actions, user, loading, StatusPushList } = props; - const { openness } = actions; - useEffect(() => { + const { history, dispatch, actions, user, loading, StatusPushList } = props; + const { openness } = actions; + useEffect(() => { - }, []); - // const = useRef(0) + }, []); + // const = useRef(0) - const [chooseNum, setChooseNum] = useState(0);//当前选择tab - const [chooseList, setChooseList] = useState(['节点', '样式', '功能']); - const [editKey, setEditKey] = useState('') - const [comingVisible, setComingVisible] = useState(false) - const [treeData, setTreeData] = useState([//树形控件数据 - { - label: '主要节点1', - value: '0', - key: '0', - }, - ]); - const searchData = useRef({})//摄像头查询条件 - const [search, setSearch] = useState({}); //搜索条件 - const [indeterminate, setIndeterminate] = useState(true);//全选 - const [checkAll, setCheckall] = useState(false);//全选是否 - const onCheckAllChange = (e) => {//全选 - console.log(e); - setCheckedList(e.target.checked ? plainOptions : []); - setIndeterminate(false); - setCheckall(e.target.checked); - }; - const equipmentGetCamera = () => { - searchData.current = { ...search } - dispatch(openness.getCamera(searchData.current)).then((res) => { - // limits.current = res.payload.data.data.length - console.log(res.payload.data.data); - }); - } - useEffect(() => { - equipmentGetCamera(); - }, []); - function nodeDelete (item) {//删除树状子节点 - let mainData = JSON.parse(JSON.stringify(treeData)) - let nodeKeyArr = item.key.split('-') - if (nodeKeyArr.length == 1) { - mainData.splice( - mainData.indexOf(mainData.find(function (element) { - return element.key === item.key - })), 1) - } else if (nodeKeyArr.length == 2) { - for (let index = 0; index < mainData.length; index++) { - mainData[index].children.splice( - mainData[index].children.indexOf(mainData[index].children.find(function (element) { - return element.key === item.key - })), 1) - } - } else if (nodeKeyArr.length == 3) { - for (let j = 0; j < mainData.length; j++) { - for (let i = 0; i < mainData[j].children.length; i++) { - mainData[j].children[i].children.splice( - mainData[j].children[i].children.indexOf(mainData[j].children[i].children.find(function (element) { - return element.key === item.key - })), 1) + const [chooseNum, setChooseNum] = useState(0);//当前选择tab + const [chooseList, setChooseList] = useState(['节点', '样式', '功能']); + const [editKey, setEditKey] = useState('') + const [comingVisible, setComingVisible] = useState(false) + const [treeData, setTreeData] = useState([//树形控件数据 + { + label: '主要节点1', + value: '0', + key: '0', + }, + ]); + const [indeterminate, setIndeterminate] = useState(false);//全选 + const [checkAll, setCheckall] = useState(false);//全选是否 + const [plainOptions, setPlainOptions] = useState([]);//摄像头选择 + const [checkedList, setCheckedList] = useState([]);//选中的摄像头列表 + const [mykeyword, setMykeyword] = useState('');//摄像头搜索 + const [showCameraList, setShowCameraList] = useState([])//展示的摄像头列表 + const [addCamera, setAddCamera] = useState(false);//添加视频弹框 + const [addCameraKey, setAddCameraKey] = useState('');//添加视频弹框 + + function onCheckAllChange (e) {//全选 + if (e.target.checked) { + let mycheckList = [] + for (let i = 0; i < showCameraList.length; i++) { + mycheckList.push(showCameraList[i].value) + } + setCheckedList(mycheckList) + } + else { + setCheckedList([]) + } + setIndeterminate(false); + setCheckall(e.target.checked); + } + function equipmentGetCamera () {//查询摄像头 + dispatch(openness.getCamera()).then((res) => { + let resList = res.payload.data.data + let optionsList = [] + for (let i = 0; i < resList.length; i++) { + optionsList.push({ + label: resList[i].name, + value: resList[i].id, + extra: 'DID:' + resList[i].gbCamera.did || '', + }) } - } - } else if (nodeKeyArr.length == 4) { - for (let k = 0; k < mainData.length; k++) { - for (let j = 0; j < mainData[k].children.length; j++) { - for (let i = 0; i < mainData[k].children[j].children.length; i++) { - mainData[k].children[j].children[i].children.splice( - mainData[k].children[j].children[i].children.indexOf(mainData[k].children[j].children[i].children.find(function (element) { + setShowCameraList(optionsList) + setPlainOptions(optionsList) + }); + } + function onChange (checkedList) {//摄像头选择 + setCheckedList(checkedList); + setIndeterminate(!!checkedList.length && checkedList.length < showCameraList.length); + setCheckall(checkedList.length === showCameraList.length); + } + useEffect(() => { + equipmentGetCamera(); + }, []); + function nodeDelete (item) {//删除树状子节点 + let mainData = JSON.parse(JSON.stringify(treeData)) + let nodeKeyArr = item.key.split('-') + if (nodeKeyArr.length == 1) { + mainData.splice( + mainData.indexOf(mainData.find(function (element) { + return element.key === item.key + })), 1) + } else if (nodeKeyArr.length == 2) { + for (let index = 0; index < mainData.length; index++) { + mainData[index].children.splice( + mainData[index].children.indexOf(mainData[index].children.find(function (element) { return element.key === item.key - })), 1) - } + })), 1) } - } - } - setTreeData(mainData) - } - function nodeAdd (item) {//添加树状子节点 - let mainData = JSON.parse(JSON.stringify(treeData)) - let nodeKeyArr = item.key.split('-') - if (nodeKeyArr.length == 1) { - for (let index = 0; index < mainData.length; index++) { - if (mainData[index].key == item.key) { - if (mainData[index].children && mainData[index].children > 0) { - let mainKey = mainData[index].children[mainData[index].children.length - 1].key - let thekeyarr = mainKey.split('-') - mainData[index].children.push({ - label: '二级节点' + (Number(thekeyarr[1]) + 2), - value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), - key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), - }) - } - else { - let mainKey = mainData[index].key - let thekeyarr = mainKey.split('-') - mainData[index].children = [{ - label: '二级节点1', - value: (Number(thekeyarr[0])) + '-0', - key: (Number(thekeyarr[0])) + '-0', - }] - } + } else if (nodeKeyArr.length == 3) { + for (let j = 0; j < mainData.length; j++) { + for (let i = 0; i < mainData[j].children.length; i++) { + mainData[j].children[i].children.splice( + mainData[j].children[i].children.indexOf(mainData[j].children[i].children.find(function (element) { + return element.key === item.key + })), 1) + } } - } - } else if (nodeKeyArr.length == 2) { - for (let index = 0; index < mainData.length; index++) { - for (let j = 0; j < mainData[index].children.length; j++) { - if (mainData[index].children[j].key == item.key) { - if (mainData[index].children[j].children && mainData[index].children[j].children.length > 0) { - let mainKey = mainData[index].children[j].children[mainData[index].children[j].children.length - 1].key - let thekeyarr = mainKey.split('-') - mainData[index].children[j].children.push({ - label: '三级节点' + (Number(thekeyarr[2]) + 2), - value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), - key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), - }) - } - else { - let mainKey = mainData[index].children[j].key - let thekeyarr = mainKey.split('-') - mainData[index].children[j].children = [{ - label: '三级节点1', - value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', - key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', - }] - } - } + } else if (nodeKeyArr.length == 4) { + for (let k = 0; k < mainData.length; k++) { + for (let j = 0; j < mainData[k].children.length; j++) { + for (let i = 0; i < mainData[k].children[j].children.length; i++) { + mainData[k].children[j].children[i].children.splice( + mainData[k].children[j].children[i].children.indexOf(mainData[k].children[j].children[i].children.find(function (element) { + return element.key === item.key + })), 1) + } + } } - } - } - setTreeData(mainData) - } - function changeLable (value, item) {//编辑摄像头名称 - console.log('valvalval', value); - console.log('itemitem', item); - let mainData = JSON.parse(JSON.stringify(treeData)) - let nodeKeyArr = item.key.split('-') - if (nodeKeyArr.length == 1) { - for (let index = 0; index < mainData.length; index++) { - if (mainData[index].key == item.key) { - mainData[index].label = value + } + setTreeData(mainData) + } + function nodeAdd (item) {//添加树状子节点 + let mainData = JSON.parse(JSON.stringify(treeData)) + let nodeKeyArr = item.key.split('-') + if (nodeKeyArr.length == 1) { + for (let index = 0; index < mainData.length; index++) { + if (mainData[index].key == item.key) { + if (mainData[index].children && mainData[index].children.length > 0) { + let mainKey = mainData[index].children[mainData[index].children.length - 1].key + let thekeyarr = mainKey.split('-') + mainData[index].children.push({ + label: '二级节点' + (Number(thekeyarr[1]) + 2), + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), + }) + } + else { + let mainKey = mainData[index].key + let thekeyarr = mainKey.split('-') + mainData[index].children = [{ + label: '二级节点1', + value: (Number(thekeyarr[0])) + '-0', + key: (Number(thekeyarr[0])) + '-0', + }] + } + } } - } - } else if (nodeKeyArr.length == 2) { - for (let index = 0; index < mainData.length; index++) { - for (let j = 0; j < mainData[index].children.length; j++) { - if (mainData[index].children[j].key == item.key) { - mainData[index].children[j].label = value - } + } else if (nodeKeyArr.length == 2) { + for (let index = 0; index < mainData.length; index++) { + if (mainData[index].children) { + for (let j = 0; j < mainData[index].children.length; j++) { + if (mainData[index].children[j].key == item.key) { + if (mainData[index].children[j].children && mainData[index].children[j].children.length > 0) { + let mainKey = mainData[index].children[j].children[mainData[index].children[j].children.length - 1].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children.push({ + label: '三级节点' + (Number(thekeyarr[2]) + 2), + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), + }) + } + else { + let mainKey = mainData[index].children[j].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children = [{ + label: '三级节点1', + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', + }] + } + } + } + } } - } - } else if (nodeKeyArr.length == 3) { - for (let index = 0; index < mainData.length; index++) { - for (let j = 0; j < mainData[index].children.length; j++) { - for (let k = 0; k < mainData[index].children[j].children.length; k++) { - if (mainData[index].children[j].children[k].key == item.key) { - mainData[index].children[j].children[k].label = value - } - } + } + setTreeData(mainData) + } + function changeLable (value, item) {//编辑摄像头名称 + let mainData = JSON.parse(JSON.stringify(treeData)) + let nodeKeyArr = item.key.split('-') + if (nodeKeyArr.length == 1) { + for (let index = 0; index < mainData.length; index++) { + if (mainData[index].key == item.key) { + mainData[index].label = value + } } - } - } - setTreeData(mainData) - } - function lableBlur () { - setEditKey('') - } - function cameraAdd (item) {//添加摄像头 - - } - const renderLabel = (label, item) => {//树状展示 - let keyArr = item.key.split('-') - return ( -
- { - keyArr.length == 1 ? ( -
-
- 设置 -
-
- { - editKey == item.key ? ( - changeLable(value, item)} style={{ width: 65 }} className='inputpadding' size='small'> - ) : - ( - - {label} - ) + } else if (nodeKeyArr.length == 2) { + for (let index = 0; index < mainData.length; index++) { + for (let j = 0; j < mainData[index].children.length; j++) { + if (mainData[index].children[j].key == item.key) { + mainData[index].children[j].label = value + } + } + } + } else if (nodeKeyArr.length == 3) { + for (let index = 0; index < mainData.length; index++) { + for (let j = 0; j < mainData[index].children.length; j++) { + for (let k = 0; k < mainData[index].children[j].children.length; k++) { + if (mainData[index].children[j].children[k].key == item.key) { + mainData[index].children[j].children[k].label = value + } + } + } + } + } + setTreeData(mainData) + } + function lableBlur () { + setEditKey('') + } + function cameraAdd (item) {//添加摄像头 + let myplainOptions = JSON.parse(JSON.stringify(plainOptions)) + for (let i = 0; i < myplainOptions.length; i++) {//摄像头列表 + for (let j = 0; j < treeData.length; j++) {//第一级 + if (treeData[j].children) {//有没有子集 + for (let k = 0; k < treeData[j].children.length; k++) {//第二级 + if (treeData[j].children[k].children) {//有没有子集 + for (let l = 0; l < treeData[j].children[k].children.length; l++) {//第三级 + if (treeData[j].children[k].children[l].children) {//有没有子集 + for (let p = 0; p < treeData[j].children[k].children[l].children.length; p++) { + if (treeData[j].children[k].children[l].children[p].cameraId) { + if (myplainOptions[i].value == treeData[j].children[k].children[l].children[p].cameraId) { + myplainOptions.splice(i, 1) + } + } + } + } + else if (treeData[j].children[k].children[l].cameraId) {//有没有摄像头 + if (myplainOptions[i].value == treeData[j].children[k].children[l].cameraId) { + myplainOptions.splice(i, 1) + } + } + } + } + else if (treeData[j].children[k].cameraId) {//有没有摄像头 + if (myplainOptions[i].value == treeData[j].children[k].cameraId) { + myplainOptions.splice(i, 1) + } + } + } + } + } + } + console.log('myplainOptionsmyplainOptions', myplainOptions); + setCheckedList([]) + setShowCameraList(myplainOptions) + setAddCamera(true) + setAddCameraKey(item.key) + } + const renderLabel = (label, item) => {//树状展示 + let keyArr = item.key.split('-') + return ( +
+ { + keyArr.length == 1 ? ( +
+
+ 设置 +
+
+ { + editKey == item.key ? ( + changeLable(value, item)} style={{ width: 65 }} className='inputpadding' size='small'> + ) : + ( + + {label} + ) + } +
+
+ ) : ( +
+ { + editKey == item.key ? ( + changeLable(value, item)} style={{ width: 65 }} className='inputpadding' size='small'> + ) : + ( + + {label} + ) + } +
+ ) + } +
+ { + (!item.children || item.children.length < 1 || item.children[0].cameraId) && !item.cameraId ? ( +
cameraAdd(item)}> + 添加摄像头 +
+ ) : ('') + } + { + item.cameraId ? ('') : ( +
{ setEditKey(item.key) }}> + 编辑 +
+ ) + } + nodeDelete(item)}> +
+ 删除 +
+
+ { + keyArr.length > 2||(item.children&&item.children[0].cameraId) ? ('') : ( +
nodeAdd(item)}> + 添加子节点 +
+ ) + } +
+
+ ) + }; + function toback () {//返回上一个页面 + history.goBack() + } + function tochange (index) {//节点样式功能切换 + setChooseNum(index) + } + function addMainNode () {//增加主要节点 + let mainData = JSON.parse(JSON.stringify(treeData)) + if (mainData.length > 0) { + let mainKey = mainData[mainData.length - 1].key + mainKey = Number(mainKey) + 2 + mainData.push({ + label: '主要节点' + mainKey, + value: String(mainKey - 1), + key: String(mainKey - 1), + }) + } + else { + mainData.push({ + label: '主要节点1', + value: '0', + key: '0', + }) + } + setTreeData(mainData) + } + function searchCamera () {//查询摄像头 + if (mykeyword !== '') { + console.log('111111111', mykeyword); + } + else { + console.log('22222222222', mykeyword); + // setShowCameraList(plainOptions) + } + } + function finishAdd () {//完成添加摄像头 + console.log('checkedList', checkedList); + let mainData = JSON.parse(JSON.stringify(treeData)) + let nodeKeyArr = addCameraKey.split('-') + if (nodeKeyArr.length == 1) { + for (let q = 0; q < plainOptions.length; q++) { + for (let w = 0; w < checkedList.length; w++) { + if (plainOptions[q].value == checkedList[w]) { + for (let index = 0; index < mainData.length; index++) { + if (mainData[index].key == addCameraKey) { + if (mainData[index].children && mainData[index].children.length > 0) { + let mainKey = mainData[index].children[mainData[index].children.length - 1].key + let thekeyarr = mainKey.split('-') + mainData[index].children.push({ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1]) + 1), + cameraId: plainOptions[q].value + }) + } + else { + let mainKey = mainData[index].key + let thekeyarr = mainKey.split('-') + mainData[index].children = [{ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-0', + key: (Number(thekeyarr[0])) + '-0', + cameraId: plainOptions[q].value + }] + } + } } -
-
- ) : ( -
- { - editKey == item.key ? ( - changeLable(value, item)} style={{ width: 65 }} className='inputpadding' size='small'> - ) : - ( - - {label} - ) - } -
- ) + } + } } -
- { - !item.children || item.children < 1 ? ( -
cameraAdd(item)}> + } else if (nodeKeyArr.length == 2) { + for (let q = 0; q < plainOptions.length; q++) { + for (let w = 0; w < checkedList.length; w++) { + if (plainOptions[q].value == checkedList[w]) { + for (let index = 0; index < mainData.length; index++) {//第一级 + if (mainData[index].children) {//有没有子集 + for (let j = 0; j < mainData[index].children.length; j++) {//第二级 + if (mainData[index].children[j].key == addCameraKey) { + if (mainData[index].children[j].children && mainData[index].children[j].children.length > 0) { + let mainKey = mainData[index].children[j].children[mainData[index].children[j].children.length - 1].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children.push({ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2]) + 1), + cameraId: plainOptions[q].value + }) + } + else { + let mainKey = mainData[index].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children = [{ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-0', + cameraId: plainOptions[q].value + }] + } + } + } + } + } + } + } + } + } else if (nodeKeyArr.length == 3) { + for (let q = 0; q < plainOptions.length; q++) { + for (let w = 0; w < checkedList.length; w++) { + if (plainOptions[q].value == checkedList[w]) { + for (let index = 0; index < mainData.length; index++) {//第一级 + if (mainData[index].children) {//有没有子集 + for (let j = 0; j < mainData[index].children.length; j++) {//第二级 + if (mainData[index].children[j].children) {//有没有子集 + for (let k = 0; k < mainData[index].children[j].children.length; k++) {//第三级 + if (mainData[index].children[j].children[k].key == addCameraKey) { + if (mainData[index].children[j].children[k].children && mainData[index].children[j].children[k].children.length > 0) { + let mainKey = mainData[index].children[j].children[k].children[mainData[index].children[j].children[k].children.length - 1].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children[k].children.push({ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2])) + '-' + (Number(thekeyarr[3]) + 1), + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2])) + '-' + (Number(thekeyarr[3]) + 1), + cameraId: plainOptions[q].value + }) + } + else { + let mainKey = mainData[index].key + let thekeyarr = mainKey.split('-') + mainData[index].children[j].children[k].children = [{ + label: plainOptions[q].label, + value: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2])) + '-0', + key: (Number(thekeyarr[0])) + '-' + (Number(thekeyarr[1])) + '-' + (Number(thekeyarr[2])) + '-0', + cameraId: plainOptions[q].value + }] + } + } + } + } + } + } + } + } + } + } + } + setTreeData(mainData); + setAddCamera(false); + setAddCameraKey(''); + } + return ( +
+
+
+
添加摄像头 -
- ) : ('') - } -
{ setEditKey(item.key) }}> - 编辑 -
- nodeDelete(item)}> -
- 删除 -
-
- { - keyArr.length > 2 ? ('') : ( -
nodeAdd(item)}> +
+
+ 智慧小蓝智慧排涝视频融合系统 +
+
添加子节点 -
- ) - } -
-
- ) - }; - function toback () {//返回上一个页面 - history.goBack() - } - function tochange (index) {//节点样式功能切换 - setChooseNum(index) - } - function addMainNode () {//增加主要节点 - let mainData = JSON.parse(JSON.stringify(treeData)) - if (mainData.length > 0) { - let mainKey = mainData[mainData.length - 1].key - mainKey = Number(mainKey) + 2 - mainData.push({ - label: '主要节点' + mainKey, - value: String(mainKey - 1), - key: String(mainKey - 1), - }) - } - else { - mainData.push({ - label: '主要节点1', - value: '0', - key: '0', - }) - } - setTreeData(mainData) - } - return ( -
-
-
-
- 设置 -
-
- 智慧小蓝智慧排涝视频融合系统 -
-
- 设置 -
-
-
-
- 设置 -
-
- 设置 -
-
-
-
-
-
- {chooseList.map((item, index) => { - return ( -
tochange(index)} > - {item} -
- ) - })} -
- {/* 节点 */} -
-
-
+
+
+
+
设置 -
-
- 增加主要节点 -
-
- -
- {/* 添加视频 */} -
-
-
添加视频
-
+
+
设置 -
-
-
-
-
摄像头名称
-
- +
+
+
+
+
+
+ {chooseList.map((item, index) => { + return ( +
tochange(index)} > + {item} +
+ ) + })} +
+ {/* 节点 */} +
+
+
+ 设置 +
+
+ 增加主要节点 +
-
- 设置 + {/*
*/} + + {/*
*/} +
+ {/* 添加视频 */} + {addCamera ? ( +
+
+
添加视频
+
{ setAddCamera(false); setAddCameraKey('') }}> + 设置 +
+
+
+
+
摄像头名称
+
+ { setMykeyword(value) }} + placeholder="请输入摄像头名称" + showClear> + +
+
+ 设置 +
+
+
+
+ + 全选 + +
+
+ 完成 +
+
+
+
+ +
-
-
-
- - 全选 - + ) : ('')} + {/* 样式 */} +
+
+
header
+
console.log(v)} size="small" aria-label="是否有头部">
-
- console.log(checked)} aria-label="Checkbox 示例">隐藏添加过的 +
{ setComingVisible(true) }}> +
自定义样式
+
+ 设置 +
-
-
-
- {/* 样式 */} -
-
-
header
-
console.log(v)} size="small" aria-label="是否有头部">
-
-
{ setComingVisible(true) }}> -
自定义样式
-
- 设置 -
-
-
-
-
- - - +
+
+
+
-
- { - setComingVisible(false) - }} - width={610} - onCancel={() => { - setComingVisible(false) - }} - okText="确定" - cancelText="取消" - closeOnEsc={true} - > - 开发中,敬请期待~ - -
- ) + { + setComingVisible(false) + }} + width={610} + onCancel={() => { + setComingVisible(false) + }} + okText="确定" + cancelText="取消" + closeOnEsc={true} + > + 开发中,敬请期待~ + +
+ ) } function mapStateToProps (state) { - const { auth, global } = state; - return { - user: auth.user, - actions: global.actions, - }; + const { auth, global } = state; + return { + user: auth.user, + actions: global.actions, + }; } export default connect(mapStateToProps)(MirroringDetail); diff --git a/code/VideoAccess-VCMP/web/client/src/sections/openness/style.less b/code/VideoAccess-VCMP/web/client/src/sections/openness/style.less index 1623844..cb3ec89 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/openness/style.less +++ b/code/VideoAccess-VCMP/web/client/src/sections/openness/style.less @@ -9,6 +9,14 @@ padding: 0px; } } +.my_CheckboxGroup{ + .semi-checkbox-addon{ + font-size: 12px; + } + .semi-checkbox-extra{ + font-size: 12px; + } +} .hasHeader{ .semi-switch-checked{ background-color:#2F53EA