专项检查

This commit is contained in:
2025-04-15 20:48:53 +08:00
parent 80ea8ec450
commit 1c6dca4612
36 changed files with 29955 additions and 932 deletions
+52 -43
View File
@@ -178,7 +178,9 @@
<div class="side-tit image-full">
<asp:Literal runat="server" Text="劳务数据" />
<div class="z-date">
<input id="labour" type="date" value="" />
<input id="labour_start" type="date" value="" />
<span style="font-size: 10px; padding: 0 6px;">至</span>
<input id="labour_end" type="date" value="" />
</div>
</div>
<div class="anq-box">
@@ -186,8 +188,8 @@
<div class="anq-lab">
<asp:Literal runat="server" Text="现场人数" />
</div>
<div class="anq-val" ><span id="all_count"></span> <span style="font-size: 14px;">人</span></div>
<div class="anq-val"><span id="all_count"></span><span style="font-size: 14px;">人</span></div>
</div>
<div class="anq-inner flex-row flex-center">
<div class="anq-inner-b flex-column flex-center">
@@ -246,8 +248,7 @@
</div>
</div>
<div class="lw-map">
<div id="lw-map"></div>
<p style="text-align:center;margin-top: 10%;color:#ffffff;">暂无数据</p>`
<div id="lw-map"></div>`
</div>
<%--<div class="side-tit image-full tit1">视频监控</div>
@@ -573,28 +574,46 @@
// 问题类型统计
problemTypeStatistics($('#safe_start').val(), $('#safe_end').val())
// 劳务数据统计
serviceData($("#labour").val())
serviceData()
}, 300000)
$(document).ready(function () {
let ProjectId = "<%= ProjectId%>"
// 劳务数据日期选择框赋当天日期
$('#labour').val(nowDate());
serviceData(nowDate())
// 初始化劳务数据
$("#labour_start").val(nowDate())
$("#labour_end").val(nowDate())
serviceData()
// 切换日期时请求数据
$('#labour').on("change", function (e) {
serviceData($(this).val())
$('#labour_start').on('change', function () {
let labour_start = $('#labour_start').val()
let labour_end = $('#labour_end').val()
if (new Date(labour_start).getTime() > new Date(labour_end)) {
alert("请选择小于" + labour_end + "日期")
$('#labour_start').val(labour_end)
}
serviceData()
})
$('#labour_end').on('change', function () {
let labour_start = $('#labour_start').val()
let labour_end = $('#labour_end').val()
if (new Date(labour_start).getTime() > new Date(labour_end)) {
$('#labour_start').val(nowDate())
alert("请选择大于" + labour_start + "日期")
}
serviceData()
})
// 给安全问题统计赋值
let date = new Date()
let year = date.getFullYear()
let month = date.getMonth() + 1
$('#safe_start').val(`${year}-${month.toString().padStart(2, '0') }-01`);
$('#safe_end').val(`${year}-${month.toString().padStart(2, '0')}-${new Date(year, month, 0).getDate() }`);
$('#safe_start').val(`${year}-${month.toString().padStart(2, '0')}-01`);
$('#safe_end').val(`${year}-${month.toString().padStart(2, '0')}-${new Date(year, month, 0).getDate()}`);
problemTypeStatistics($('#safe_start').val(), $('#safe_end').val())
$('#safe_start').on('change', function () {
let safe_start = $('#safe_start').val()
let safe_end = $('#safe_end').val()
@@ -604,7 +623,7 @@
} else {
problemTypeStatistics($('#safe_start').val(), $('#safe_end').val())
}
})
$('#safe_end').on('change', function () {
let safe_start = $('#safe_start').val()
@@ -638,8 +657,7 @@
data: JSON.stringify({
ProjectId: ProjectId,
startdate: startdate,
enddate: enddate,
enddate: enddate
}),
success: function (data) {
console.log(data)
@@ -654,31 +672,22 @@
vals.push(e.count)
})
initAQWTap('lw-map', tits, vals)
//if (d.CheckList.length > 0) {
// d.CheckList.map(e => {
// tits.push(e.type)
// vals.push(e.count)
// })
// $("#lw-map").show()
// $(".lw-map>p").hide()
// initAQWTap('lw-map', tits, vals)
//} else {
// $("#lw-map").hide()
// $(".lw-map>p").show()
//}
}
})
}
// 请求劳务数据
function serviceData(date) {
function serviceData() {
let labour_start = $('#labour_start').val()
let labour_end = $('#labour_end').val()
$.ajax({
url: "mainProject.aspx/GetServiceData",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({
date: date,
startdate: labour_start,
enddate: labour_end,
ProjectId: ProjectId,
}),
success: function (data) {
@@ -702,9 +711,9 @@
var option = {
grid: {
containLabel: true,
top: 30,
left: 0,
bottom: resetSize(10),
height: 220,
},
xAxis: {
type: 'category',
@@ -714,8 +723,8 @@
rotate: -25,
interval: 0,
textStyle: {
fontSize: 14,
color: '#84D7FE'
fontSize: 12,
color: '#FFFFFF'
}
}
},
@@ -735,7 +744,7 @@
},
series: [
{
barWidth: resetSize(20),
barWidth: 20,
data: val,
type: 'bar',
label: {
@@ -759,7 +768,7 @@
right: '0',
bottom: 0,
start: 0,//滚动条的起始位置
end: 50, //滚动条的截止位置(按比例分割你的柱状图x轴长度)
end: 8 / tit.length * 100, //滚动条的截止位置(按比例分割你的柱状图x轴长度)
fillerColor: '#6B7388', //滑块的颜色
backgroundColor: '#2B3755',  // 滑块轨道的颜色
borderColor: 'transparent', // 滑块轨道边框的颜色
@@ -974,7 +983,7 @@
}
function resetSize(size, initWidth = 1920) {
let clientWidth = document.body.clientWidth
@@ -1021,8 +1030,8 @@
}, 'json');
}
initVideo();
runShowVideo();
//initVideo();
//runShowVideo();
var videoURL = '<%= VideoHost %>';
let more = document.getElementById('more')
@@ -1033,7 +1042,7 @@
//var password = $('#SimpleForm1_hfMonitorPW-inputEl').val();
console.log(videoURL);
debugger
window.open(videoURL + "#/screen?username=" + '<%= VideoUserName %>' + "&password=" + '<%= VideoPassWord %>', '_blank');
////////window.open(videoURL + "#/screen?username=" + '<%= VideoUserName %>' + "&password=" + '<%= VideoPassWord %>', '_blank');
}
else {
alert("您没有权限!");