修改默认条数
This commit is contained in:
parent
732287caff
commit
ca906f0a74
|
|
@ -314,20 +314,20 @@ function getPerStatisticsPhoto(accessType, timeType) {
|
||||||
if (result.data.warnList && result.data.warnList.length > 0) {
|
if (result.data.warnList && result.data.warnList.length > 0) {
|
||||||
let html = '';
|
let html = '';
|
||||||
let list = result.data.warnList;
|
let list = result.data.warnList;
|
||||||
let zs = Math.floor(list.length / 15);
|
let zs = Math.floor(list.length / 10);
|
||||||
let xs = Math.floor(list.length % 15);
|
let xs = Math.floor(list.length % 10);
|
||||||
if (zs > 0) {
|
if (zs > 0) {
|
||||||
for (let i = 1; i <= zs; i++) {
|
for (let i = 1; i <= zs; i++) {
|
||||||
html += '<div>'
|
html += '<div>'
|
||||||
+ '<div class="pageCapacity">'
|
+ '<div class="pageCapacity">'
|
||||||
+ handleData(15, i, list)
|
+ handleData(10, i, list)
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
}
|
}
|
||||||
if (xs > 0) {
|
if (xs > 0) {
|
||||||
html += '<div>'
|
html += '<div>'
|
||||||
+ '<div class="pageCapacity">'
|
+ '<div class="pageCapacity">'
|
||||||
+ handleData2(15, zs, xs, list)
|
+ handleData2(10, zs, xs, list)
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,12 @@ function loadProRisk2(montageParam) {
|
||||||
$('#fourClassNum').html(data.fourClassNum);
|
$('#fourClassNum').html(data.fourClassNum);
|
||||||
$('#fiveClassNum').html(data.fiveClassNum);
|
$('#fiveClassNum').html(data.fiveClassNum);
|
||||||
$('#totalClassNum').html(data.twoClassNum + data.threeClassNum + data.fourClassNum + data.fiveClassNum);
|
$('#totalClassNum').html(data.twoClassNum + data.threeClassNum + data.fourClassNum + data.fiveClassNum);
|
||||||
$('#weekDate').html("周风险("+data.weekDate + ")");
|
$('#weekDates').html("("+data.weekDate + ")");
|
||||||
|
let today = new Date();
|
||||||
|
let formatter = new Intl.DateTimeFormat('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' });
|
||||||
|
let formattedDate = formatter.format(today);
|
||||||
|
console.log(formattedDate);
|
||||||
|
$("#today").html("("+formattedDate.replaceAll("/","-")+ ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -42,12 +42,8 @@ layui.config({
|
||||||
playList.push(newobj);
|
playList.push(newobj);
|
||||||
playVideList();
|
playVideList();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("4444");
|
console.log("4444");
|
||||||
console.log(playList);
|
console.log(playList);
|
||||||
|
|
||||||
// QXPlayVideo(puid, '0', winDom)
|
|
||||||
// playControl();
|
|
||||||
videoObject.devCode = puid;
|
videoObject.devCode = puid;
|
||||||
} else {
|
} else {
|
||||||
return parent.layer.msg('请选择球机', { icon: 7 });
|
return parent.layer.msg('请选择球机', { icon: 7 });
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ function fourVideo(that){
|
||||||
playVideList();
|
playVideList();
|
||||||
// for (let i = 0; i <playList.length ; i++) {
|
// for (let i = 0; i <playList.length ; i++) {
|
||||||
// QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
// QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
||||||
// playControl();
|
playControl();
|
||||||
// }
|
// }
|
||||||
for (var i = 5; i <= 9; i++) {
|
for (var i = 5; i <= 9; i++) {
|
||||||
document.getElementById("windowbox" + i).style.display = "none";
|
document.getElementById("windowbox" + i).style.display = "none";
|
||||||
|
|
@ -142,6 +142,7 @@ function playVideList(){
|
||||||
for (let i = 0; i <playList.length ; i++) {
|
for (let i = 0; i <playList.length ; i++) {
|
||||||
if( playList[i].state!=1){
|
if( playList[i].state!=1){
|
||||||
flvPlayer= QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
flvPlayer= QXPlayVideo(playList[i].puid, '0', playList[i].windBox);
|
||||||
|
playControl();
|
||||||
playList[i].flvPlayer=flvPlayer;
|
playList[i].flvPlayer=flvPlayer;
|
||||||
playList[i].state=1;
|
playList[i].state=1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,10 +101,11 @@ function QXPlayVideo(puId, idx, dom) {
|
||||||
videoObject.playState = false;
|
videoObject.playState = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
videoObject.playState = true;
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myPlayer.play();
|
myPlayer.play();
|
||||||
|
return myPlayer;
|
||||||
}, 200);
|
}, 200);
|
||||||
// flvPlayer.on(flvjs.Events.SCRIPTDATA_ARRIVED, (errorType, errorDetail, errorInfo) => {
|
// flvPlayer.on(flvjs.Events.SCRIPTDATA_ARRIVED, (errorType, errorDetail, errorInfo) => {
|
||||||
// if (flvPlayer) {
|
// if (flvPlayer) {
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,8 @@
|
||||||
<td>总数</td>
|
<td>总数</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> 本周风险
|
<td> <p>本周风险 </p>
|
||||||
(2024-06-17~2024-06-23)
|
<p id="weekDates"> </p>
|
||||||
</td>
|
</td>
|
||||||
<td id="twoRiskNum">0</td>
|
<td id="twoRiskNum">0</td>
|
||||||
<td id="threeRiskNum">0</td>
|
<td id="threeRiskNum">0</td>
|
||||||
|
|
@ -89,8 +89,9 @@
|
||||||
<td id="totalRiskNum">0</td>
|
<td id="totalRiskNum">0</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> 当日站班会
|
<td>
|
||||||
(2024-06-18)
|
<p>当日站班会 </p>
|
||||||
|
<p id="today"> (2024-06-18) </p>
|
||||||
</td>
|
</td>
|
||||||
<td id="twoClassNum">0</td>
|
<td id="twoClassNum">0</td>
|
||||||
<td id="threeClassNum">0</td>
|
<td id="threeClassNum">0</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue