diff --git a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_camera.png b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_camera.png index 4464f9f..bcdf530 100644 Binary files a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_camera.png and b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_camera.png differ diff --git a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_email.png b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_email.png index 184799f..7cc0dbe 100644 Binary files a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_email.png and b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_email.png differ diff --git a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_phone.png b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_phone.png index 770340a..672c334 100644 Binary files a/code/VideoAccess-VCMP/web/client/assets/images/background/icon_phone.png and b/code/VideoAccess-VCMP/web/client/assets/images/background/icon_phone.png differ diff --git a/code/VideoAccess-VCMP/web/client/src/sections/application/components/applyModal.jsx b/code/VideoAccess-VCMP/web/client/src/sections/application/components/applyModal.jsx index f8dfe17..a363bb5 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/application/components/applyModal.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/application/components/applyModal.jsx @@ -19,7 +19,7 @@ const ApplyModal = ({ close, modalName, visible }) => { return close()} onOk={handleOk} > @@ -38,12 +38,12 @@ const ApplyModal = ({ close, modalName, visible }) => { allowEmpty={false} initValue={'' || ""} - placeholder="建议命名方式: [应用名 + 应用场景] 如:智慧昌南-消防,不超过15个字符" - style={{ width: 466 }} + placeholder="建议命名方式: [应用名 + 应用场景] 不超过15个字符" + style={{ width: 350 }} rules={[ { required: true, - message: "建议命名方式: [应用名 + 应用场景] 如:智慧昌南-消防,不超过15个字符", + message: "建议命名方式: [应用名 + 应用场景] 不超过15个字符", }, ]} /> @@ -53,7 +53,7 @@ const ApplyModal = ({ close, modalName, visible }) => { initValue={'' || null} placeholder="请选择应用类型" allowEmpty={false} - style={{ width: 150 }} + style={{ width: 350 }} rules={[{ required: true, message: "请选择应用类型" }]} > {[{ name: 'web', id: 'web' }, { name: 'app', id: 'app' }, { name: '小程序', id: '小程序' }, { name: '其他', id: '其他' }].map((item, index) => ( diff --git a/code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx b/code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx index fccf34e..465e79b 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/offline/components/pushSideSheet.jsx @@ -1,6 +1,6 @@ import React, { useState, useRef, useEffect } from "react"; import { connect } from "react-redux"; -import { Modal, Spin,Input,Collapse ,SideSheet,Tabs, TabPane,Popover} from "@douyinfe/semi-ui"; +import { Modal, Spin,Tag, Space,Collapse ,SideSheet,Tabs, TabPane,Popover} from "@douyinfe/semi-ui"; import moment from "moment"; import './pushSideSheet.less' import { push } from "react-router-redux"; @@ -13,8 +13,8 @@ function pushSideSheet (props) { } = props; const { offline } = actions; const [logList, setLogList] = useState([]);//日志列表 - const [noticeTest, setNoticeTest] = useState('');//通知列表 - const [equipmentTest, setEquipmentTest] = useState();//设备列表 + const [noticeTest, setNoticeTest] = useState([]);//通知列表 + const [equipmentTest, setEquipmentTest] = useState([]);//设备列表 //初始化 useEffect(() => { @@ -30,7 +30,8 @@ function pushSideSheet (props) { title:getTimeTitle(journal[index].time), time:getTimeData(journal[index].time), cameraList:camerTest, - receiverList:receiverTest + receiverList:receiverTest, + noticeWay:journal[index].noticeWay[0], } ) } @@ -56,23 +57,21 @@ function pushSideSheet (props) { for (let j = 0; j < showList.length; j++) { for (let i = 0; i < timeList.length; i++) { if(timeList[i].title==showList[j].title){ - showList[j].timeList.push({time:timeList[i].time,cameraList:timeList[i].cameraList,receiverList:timeList[i].receiverList}) + showList[j].timeList.push({time:timeList[i].time,cameraList:timeList[i].cameraList,receiverList:timeList[i].receiverList,noticeWay:timeList[i].noticeWay,}) } } } setLogList(showList) - let noticeList ='' + let noticeList =[] for (let i = 0; i < pushData.cameraStatusPushReceivers.length; i++) { - noticeList=noticeList+pushData.cameraStatusPushReceivers[i].receiver+';' + noticeList.push(pushData.cameraStatusPushReceivers[i].receiver) } setNoticeTest(noticeList) - - let equipmentList='' + let equipmentList=[] for (let i = 0; i < pushData.cameraStatusPushMonitors.length; i++) { - noticeList=noticeList+pushData.cameraStatusPushMonitors[i].camera.name+';' + equipmentList.push(pushData.cameraStatusPushMonitors[i].camera.name) } setEquipmentTest(equipmentList) - console.log('pushData',pushData); }, []); function getTimeTitle(date){ let year = moment(date).year()+'年' @@ -94,7 +93,7 @@ function pushSideSheet (props) { - + {logList.map((item, index) => { return ( {item.title}} itemKey={String(index)} key={index} > @@ -116,7 +115,7 @@ function pushSideSheet (props) { }>
{itm.cameraList}
-
上线及时通知
+
{itm.noticeWay=='online'?'上线及时通知':itm.noticeWay=='offline'?'离线即时通知':'24时定时统计'}
) })} @@ -129,9 +128,17 @@ function pushSideSheet (props) { 设置 -
{equipmentTest}
+
+ + {equipmentTest.map((item, index) => { + return( + {item} + ) + })} + +
@@ -139,9 +146,17 @@ function pushSideSheet (props) { 设置 -
{noticeTest}
+
+ + {noticeTest.map((item, index) => { + return( + {item} + ) + })} + +
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx b/code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx index a28a636..2256ce0 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/offline/containers/carrierpigeon.jsx @@ -198,7 +198,12 @@ const Carrierpigeon = (props) => {