视频监控

This commit is contained in:
cwchen 2024-04-23 16:07:11 +08:00
parent fdfd5d0b94
commit 716d5f30f2
2 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,7 @@ function loadVideoTree() {
loginout(1); loginout(1);
} }
}, function (xhr, status, error) { }, function (xhr, status, error) {
error(xhr, status, error) errorFn(xhr, status, error)
}, aqEnnable); }, aqEnnable);
function setData(data) { function setData(data) {
@ -23,15 +23,16 @@ function loadVideoTree() {
$.each(data, function (index, item) { $.each(data, function (index, item) {
if (item.id !== '0') { if (item.id !== '0') {
totalNum++; totalNum++;
let titleName = item.title;
if(item.title.length>20){ if(item.title.length>20){
item.title = item.title.substr(0, 20) + '...'; titleName = item.title.substr(0, 20) + '...';
} }
if (item.onLine === '1') { if (item.onLine === '1') {
onlineNum++; onlineNum++;
item.title = '<img src="../../../img/video/ball_online.png"><span>' + item.title + '</span>' item.title = '<img src="../../img/video/ball_online.png"><span data-mtpis="'+item.title+'">' + titleName + '</span>'
} else { } else {
offLineNum++; offLineNum++;
item.title = '<img src="../../../img/video/ball_offline.png"><span>' + item.title + '</span>' item.title = '<img src="../../img/video/ball_offline.png"><span data-mtpis="'+item.title+'">' + titleName + '</span>'
} }
} }
}) })

View File

@ -4,7 +4,7 @@
color: #fff; color: #fff;
border-radius: 5px; border-radius: 5px;
font-family: "Alibaba PuHuiTi R"; font-family: "Alibaba PuHuiTi R";
z-index: 999; z-index: 999999999999 !important;
display: inline; display: inline;
font-size: 14px; font-size: 14px;
} }