Browse Source

镜像服务静态页面

release_1.2.1
deartibers 3 years ago
parent
commit
8fcb4a60b1
  1. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/copy.png
  2. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/del.png
  3. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/detail_icon.png
  4. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/idCopy.png
  5. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/nextStep.png
  6. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/question.png
  7. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/release.png
  8. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepfour.png
  9. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepone.png
  10. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepthree.png
  11. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/steptwo.png
  12. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/text.png
  13. BIN
      code/VideoAccess-VCMP/web/client/assets/images/imageImg/图科技蓝_小@2x.png
  14. 48
      code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx
  15. 15
      code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx
  16. 256
      code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroring.jsx
  17. 2
      code/VideoAccess-VCMP/web/package.json

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/copy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/del.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/detail_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/idCopy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/nextStep.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/question.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/release.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepfour.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepone.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/stepthree.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/steptwo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/text.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
code/VideoAccess-VCMP/web/client/assets/images/imageImg/图科技蓝_小@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

48
code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx

@ -13,37 +13,49 @@ function pushSideSheet (props) {
close,
actions,
pushData,//
journal//
rowId,
dispatch
} = props;
const { offline } = actions;
const [logList, setLogList] = useState([]);//
const [noticeTest, setNoticeTest] = useState([]);//
const [equipmentTest, setEquipmentTest] = useState([]);//
const journal = useRef([]);
const [isloading, setloading] = useState(false);
//
useEffect(() => {
setloading(true)
setTimeout(() => {
dispatch(offline.getPushLog(rowId)).then((res) => {
if (res.success) {
journal.current=res.payload.data
}
else {
journal.current=[]
}
let timeList = []
for (let index = 0; index < journal.length; index++) {
let receiverTest=journal[index].receiver.join(';');
for (let index = 0; index < journal.current.length; index++) {
let receiverTest = journal.current[index].receiver.join(';');
let camerTest = ''
for (let j = 0; j < journal[index].camera.length; j++) {
camerTest=camerTest+journal[index].camera[j].name+';'
for (let j = 0; j < journal.current[index].camera.length; j++) {
camerTest = camerTest + journal.current[index].camera[j].name + ';'
}
timeList.push(
{
title:getTimeTitle(journal[index].time),
time:getTimeData(journal[index].time),
title: getTimeTitle(journal.current[index].time),
time: getTimeData(journal.current[index].time),
cameraList: camerTest,
receiverList: receiverTest,
noticeWay:journal[index].noticeWay[0],
noticeWay: journal.current[index].noticeWay[0],
}
)
}
let yearList = []
for (let index = 0; index < journal.length; index++) {
for (let index = 0; index < journal.current.length; index++) {
yearList.push(
{
title:getTimeTitle(journal[index].time),
title: getTimeTitle(journal.current[index].time),
}
)
}
@ -76,11 +88,12 @@ function pushSideSheet (props) {
equipmentList.push(pushData.cameraStatusPushMonitors[i].camera.name)
}
setEquipmentTest(equipmentList)
setTimeout(() => {
equipmentScrollbar = new PerfectScrollbar("#collapse_test", {
suppressScrollX: true,
});
}, 100);
setloading(false)
});
}, 0);
}, []);
useEffect(() => {
const videoStreaming = document.getElementById("collapse_test");
@ -108,6 +121,14 @@ function pushSideSheet (props) {
<SideSheet title={pushData.name} className='sideSheet' width={670} visible={true} onCancel={sideSheetChange}>
<Tabs type="line">
<TabPane tab="推送日志" itemKey="1">
<Spin tip="数据加载中..." spinning={isloading}>
{
isloading?(
<div style={{height:300}}>
</div>
):''
}
</Spin>
<div id="collapse_test"
style={{
height: document.body.clientHeight - 122,
@ -141,7 +162,8 @@ function pushSideSheet (props) {
)
})}
</Collapse.Panel>
)})}
)
})}
</Collapse>
</div>
</TabPane>

15
code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx

@ -34,7 +34,6 @@ const Carrierpigeon = (props) => {
const cameraList = useRef([]);//
const [sideSheetVisible, setSideSheetVisible] = useState(false);
const [pushData, setPushData] = useState({});
const [journal, setJournal] = useState([]);
const tableList = [//
{
title: '推送信息',
@ -197,16 +196,9 @@ const Carrierpigeon = (props) => {
复制
</Button>
<Button onClick={()=>{
dispatch(offline.getPushLog(row.id)).then((res) => {
if(res.success){
setJournal(res.payload.data);
}
else{
setJournal([]);
}
setRowId(row.id);
setPushData(row);
setSideSheetVisible(true);
});
}} theme="borderless">
查看
</Button>
@ -540,10 +532,11 @@ const Carrierpigeon = (props) => {
/>}
{sideSheetVisible&&<PushSideSheet
pushData={pushData}
journal={journal}
rowId={rowId}
close={() => {
setSideSheetVisible(false);
setPushData({})
setPushData({});
setRowId();
}}
/>}
</div>

256
code/VideoAccess-VCMP/web/client/src/sections/openness/containers/mirroring.jsx

@ -1,12 +1,262 @@
import React, { useEffect } from 'react';
import React, { useEffect, useState, useRef } from 'react';
import { connect } from 'react-redux';
import { Coming } from '$components'
import '../style.less'
const Mirroring = (props) => {
const detailList = useRef([
{
title: '科技蓝',
img: '/assets/images/imageImg/text.png',
color: 'blue'
}, {
title: '白',
img: '/assets/images/imageImg/text.png',
color: 'blue'
}, {
title: '黑色(深灰)',
img: '/assets/images/imageImg/text.png',
color: 'blue'
}, {
title: '灰色',
img: '/assets/images/imageImg/text.png',
color: 'blue'
},
]);
const myCustomList = useRef([
{
title: '智慧小蓝视频融合中心实例实例实例实例',
img: '/assets/images/imageImg/text.png',
color: 'blue',
lastEditTime:'2022-12-22 16:00:57',
lastReleaseTime:'2022-12-22 19:20:57',
typeId:'1511444S4545'
}, {
title: '智慧小蓝视频融合',
img: '/assets/images/imageImg/text.png',
color: 'blue',
lastEditTime:'2022-12-22 16:00:57',
lastReleaseTime:'2022-12-22 19:20:57',
typeId:'1511444S4545'
}, {
title: '智慧小蓝视频融合小蓝视频融合',
img: '/assets/images/imageImg/text.png',
color: 'blue',
lastEditTime:'2022-12-22 16:00:57',
lastReleaseTime:'2022-12-22 19:20:57',
typeId:'1511444S4545'
}, {
title: '智慧小蓝视频融合小蓝视频融合是的阿三打阿三打',
img: '/assets/images/imageImg/text.png',
color: 'blue',
lastEditTime:'2022-12-22 16:00:57',
lastReleaseTime:'2022-12-22 19:20:57',
typeId:'1511444S4545'
},
]);
const [maskNum, setMaskNum] = useState(100);
function mouseOver (index) {
setMaskNum(index)
}
function mouseOut () {
setMaskNum(100)
}
return (
<>
<div style={{ height: 171, background: '#FFFFFF' }}>
<div style={{ padding: '18px 0px 0px 20px', color: '#34383E', fontSize: 20, fontWeight: 600 }}>创建步骤</div>
<div style={{ marginTop: 2, display: 'flex', width: "100%", alignItems: 'center' }}>
<div style={{ width: '4.513%', marginLeft: '5.549%' }}>
<img
src="/assets/images/imageImg/stepone.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ marginLeft: '0.854%', marginTop: 16, width: '7.683%' }}>
<div style={{ fontSize: 16, color: '#1859C1', fontWeight: 600 }}>创建镜像模板</div>
<div style={{ marginTop: 2, fontSize: 14, color: 'rgba(0,0,0,0.4500)' }}>选择样式模板</div>
</div>
<div style={{ width: '6.281%' }}>
<img
src="/assets/images/imageImg/nextStep.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ width: '4.513%', marginLeft: '4.086%' }}>
<img
src="/assets/images/imageImg/steptwo.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ marginLeft: '0.854%', marginTop: 16, width: '7.683%' }}>
<div style={{ fontSize: 16, color: '#1859C1', fontWeight: 600 }}>节点配置</div>
<div style={{ marginTop: 2, fontSize: 14, color: 'rgba(0,0,0,0.4500)' }}>创建节点及设备树</div>
</div>
<div style={{ width: '6.281%' }}>
<img
src="/assets/images/imageImg/nextStep.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ width: '4.513%', marginLeft: '5.183%' }}>
<img
src="/assets/images/imageImg/stepthree.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ marginLeft: '0.854%', marginTop: 16, width: '11.464%' }}>
<div style={{ fontSize: 16, color: '#1859C1', fontWeight: 600 }}>发布镜像</div>
<div style={{ marginTop: 2, fontSize: 14, color: 'rgba(0,0,0,0.4500)' }}>发布成功后获取镜像服务ID</div>
</div>
<div style={{ width: '6.281%' }}>
<img
src="/assets/images/imageImg/nextStep.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ width: '4.513%', marginLeft: '5.549%' }}>
<img
src="/assets/images/imageImg/stepfour.png"
alt="设置"
style={{ width: '100%' }}
/>
</div>
<div style={{ marginLeft: '0.854%', marginTop: 16 }}>
<div style={{ fontSize: 16, color: '#1859C1', fontWeight: 600 }}>调用服务</div>
<div style={{ marginTop: 2, fontSize: 14, color: 'rgba(0,0,0,0.4500)' }}>通过服务ID调用镜像服务</div>
<div style={{ marginTop: 3, fontSize: 12, color: '#1859C1', display: 'flex', alignItems: 'center' }}>API调用镜像服务方法
<img
src="/assets/images/imageImg/question.png"
alt="设置"
style={{ width: 11, height: 11, marginLeft: 3 }}
/>
</div>
</div>
</div>
</div>
<div style={{ background: '#FFFFFF', marginTop: 20 }}>
<div style={{ padding: '18px 0px 0px 20px', color: '#34383E', fontSize: 20, fontWeight: 600 }}>应用详情</div>
<div style={{ display: 'flex', padding: '34px 64px 18px 64px', flexWrap: 'wrap', justifyContent: 'space-between' }}>
{detailList.current.map((item, index) => {
return (
<Coming />
<div key={index}>
<div style={{ position: 'relative', width: '306px', height: 142, boxShadow: '0px 2px 4px 0px rgba(231,231,231,0.5)', }} onMouseOver={() => mouseOver(index)}>
<img
src={item.img}
alt="设置"
style={{ width: '306px', height: 142 }}
/>
{maskNum == index ? (<div onMouseOut={() => mouseOut()} style={{ position: 'absolute', width: '100%', height: '100%', background: 'rgba(0,0,0,0.3)', top: 0, display: 'flex', justifyContent: 'center', alignItems: 'center', cursor: 'pointer' }}>
<div style={{ width: 127, height: 33, border: '1px solid #FFFFFF', borderRadius: 4, color: '#ffffff', fontSize: 14, display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
使用该模版
</div>
</div>) : ''}
</div>
<div style={{ marginTop: 11, display: 'flex', alignItems: 'center' }}>
<div style={{ marginRight: 4 }}>
<img
src="/assets/images/imageImg/detail_icon.png"
alt="设置"
style={{ width: 26, height: 26 }}
/>
</div>
<div style={{ color: 'rgba(0,0,0,0.65)', fontSize: 16 }}>
{item.title}
</div>
</div>
</div>
)
})}
</div>
</div>
<div style={{ background: '#FFFFFF', marginTop: 27 }}>
<div style={{ padding: '18px 0px 0px 20px', display: 'flex', alignItems: 'center' }}>
<div style={{ color: '#34383E', fontSize: 20, fontWeight: 600 }}>我的自定义镜像服务</div>
<div style={{ height: 20, border: '1px solid #1859C1', padding: '0px 12px', fontSize: 14, color: '#1859C1', marginLeft: 4, borderRadius: 2, display: 'flex', alignItems: 'center' }}>
共9份
</div>
</div>
<div style={{ display: 'flex', padding: '19px 46px 79px 64px', flexWrap: 'wrap', justifyContent: 'space-between' }}>
{myCustomList.current.map((item,index)=>{
return(
<div style={{ height: 334, width: 362, boxShadow: '1px 2px 12px 1px rgba(217,217,217,0.7)', padding: 16 }}>
<img
src={item.img}
alt="设置"
style={{ width: 330, height: 153 }}
/>
<div style={{ color: '#2F2F2F', fontSize: 16, width: 300, textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden' }}>
{item.title}
</div>
<div style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', marginTop: 10 }}>
<div style={{ display: 'flex', cursor: 'pointer' }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<img
src="/assets/images/imageImg/release.png"
alt="设置"
style={{ width: 16, height: 16 }}
/>
</div>
<div style={{ color: '#1859C1', fontSize: 14, margin: '0px 10px' }}>
发布
</div>
</div>
<div style={{ display: 'flex', cursor: 'pointer' }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<img
src="/assets/images/imageImg/copy.png"
alt="设置"
style={{ width: 16, height: 16 }}
/>
</div>
<div style={{ color: '#1859C1', fontSize: 14, margin: '0px 10px' }}>
复制
</div>
</div>
<div style={{ display: 'flex', cursor: 'pointer' }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<img
src="/assets/images/imageImg/del.png"
alt="设置"
style={{ width: 16, height: 16 }}
/>
</div>
<div style={{ color: '#1859C1', fontSize: 14, marginLeft: 10 }}>
删除
</div>
</div>
</div>
<div style={{ color: 'rgba(0,0,0,0.45)', marginTop: 10, fontSize: 12 }}>
最后编辑于{item.lastEditTime}
</div>
<div style={{ color: 'rgba(0,0,0,0.45)', marginTop: 8, fontSize: 12 }}>
最后发布于{item.lastReleaseTime}
</div>
<div style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', marginTop: 12 }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<img
src="/assets/images/imageImg/idCopy.png"
alt="设置"
style={{ width: 20, height: 20 }}
/>
</div>
<div style={{marginLeft:4,background:'#1859C1',padding:'2px 8px',color:'#FFFFFF',fontSize:12,borderRadius:2}}>
ID:{item.typeId}
</div>
</div>
</div>
)
})}
</div>
</div>
</>
)
}

2
code/VideoAccess-VCMP/web/package.json

@ -7,7 +7,7 @@
"test": "mocha",
"start-vite": "cross-env NODE_ENV=developmentVite npm run start-params",
"start": "cross-env NODE_ENV=development npm run start-params",
"start-params": "node server -p 5000 -u http://localhost:4000 --apiVcmpUrl http://localhost:4000 --apiAuthUrl http://localhost:4200 --apiAnxinyunUrl http://localhost:4100 --iotAuthWeb http://localhost:5200 --iotVideoServer http://221.230.55.27:8081",
"start-params": "node server -p 5000 -u http://10.8.30.112:4000 --apiVcmpUrl http://localhost:4000 --apiAuthUrl http://10.8.30.112:4200 --apiAnxinyunUrl http://10.8.30.112:4100 --iotAuthWeb http://localhost:5200 --iotVideoServer http://221.230.55.27:8081",
"deploy": "export NODE_ENV=production&& npm run build && node server",
"build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js",
"build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js"

Loading…
Cancel
Save