From bd5c8427c6c26d2c21ce3dc012814147ecd59c25 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Wed, 8 Nov 2023 17:31:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=93=B6=E4=B8=89=E8=A7=92?= =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/data/videoCenter.js | 7 +++++-- .../containers/footer/leadership/right/right-top.js | 12 ++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/api/app/lib/controllers/data/videoCenter.js b/api/app/lib/controllers/data/videoCenter.js index 9a074fa7..c3243325 100644 --- a/api/app/lib/controllers/data/videoCenter.js +++ b/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`, { diff --git a/web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js b/web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js index 8fd1c6f5..e2e2c7ed 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/right/right-top.js @@ -48,11 +48,11 @@ const Righttop = ({ videoCenterList }) => { // return () => clearInterval(timer); // }, [num]); - useEffect(() => { - if (videoCenterList.length) { - setList(videoCenterList.slice(-4)) - } - }, [videoCenterList]) + useEffect(() => { + if (videoCenterList.length) { + setList(videoCenterList.slice(-5)) + } + }, [videoCenterList]) const renderBody = () => { const offlineDevice = videoCenterList.filter(v => v.status == 0) return ( @@ -79,7 +79,7 @@ const Righttop = ({ videoCenterList }) => { ) }) : - + } )