Browse Source

添加银三角摄像头

dev
CODE 1 year ago
parent
commit
bd5c8427c6
  1. 7
      api/app/lib/controllers/data/videoCenter.js
  2. 4
      web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js

7
api/app/lib/controllers/data/videoCenter.js

@ -2,7 +2,7 @@
const moment = require('moment')
const request = require('superagent')
function videoList(opts) {
function videoList (opts) {
return async function (ctx) {
try {
const { models, } = ctx.fs.dc;
@ -66,7 +66,10 @@ function videoList(opts) {
}, {
deviceName: '东文大桥',
deviceSerial: 'L48947087',
},]
}, {
deviceName: '银三角',
deviceSerial: 'AC7329717',
}]
const deviceState = await Promise.all(deviceRes_.map(d => {
return app.fs.yingshiRequest.post(`lapp/device/info`, {

4
web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js

@ -50,7 +50,7 @@ const Righttop = ({ videoCenterList }) => {
useEffect(() => {
if (videoCenterList.length) {
setList(videoCenterList.slice(-4))
setList(videoCenterList.slice(-5))
}
}, [videoCenterList])
const renderBody = () => {
@ -79,7 +79,7 @@ const Righttop = ({ videoCenterList }) => {
</div>
)
}) :
<img src='/assets/images/quanju/nodata.png' style={{minWidth:'100%'}}/>
<img src='/assets/images/quanju/nodata.png' style={{ minWidth: '100%' }} />
}
</div >
)

Loading…
Cancel
Save