Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/visual/modules/bigScreen_realTimeDataTop.jsp
2026-01-16 14:13:44 +08:00

258 lines
18 KiB
Plaintext

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page import="com.sipai.entity.base.ServerObject"%>
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
<%@page import="com.sipai.entity.visual.JspElement"%>
<%request.setAttribute("Type_GetValue", JspElement.Type_GetValue); %>
<%request.setAttribute("Type_Get7dayHistory", JspElement.Type_GetHourHistory); %>
<%request.setAttribute("Type_Get7dayHistory", JspElement.Type_Get7dayHistory); %>
<%request.setAttribute("Type_GetModbus", JspElement.Type_GetModbus); %>
<%request.setAttribute("Type_GetHttp", JspElement.Type_GetHttp); %>
<!DOCTYPE html>
<!-- <html lang="zh-CN"> -->
<!-- BEGIN HEAD -->
<head>
<title></title>
<!-- 引用页头及CSS页-->
<jsp:include page="/jsp/inc.jsp"></jsp:include>
<script type="text/javascript">
//获取url地址根目录 当前taomcat下路径
function getRootPath(){
var pathName = window.location.pathname.substring(1);
// var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/'));
return window.location.protocol + '//' + window.location.host;
}
//获取url地址根目录 当前taomcat下路径
function getRootPath2(){
var pathName = window.location.pathname.substring(1);
var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/'));
return window.location.protocol + '//' + window.location.host +"/"+webName;
}
var mychart="";
/* 请求数据 */
function getValue() {
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
// console.log(data);
if(data!=null&&data.length>0){
for(var i=0;i<data.length;i++){
if(i==0){
$('#jsph').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==1){
$('#csph').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==2){
$('#jscod').text((data[i].visualCacheData.value).toFixed(0));
}else if(i==3){
$('#cscod').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==4){
$('#jsnh3n').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==5){
$('#csnh3n').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==6){
$('#jstp').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==7){
$('#cstp').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==8){
$('#jstn').text((data[i].visualCacheData.value).toFixed(2));
}else if(i==9){
$('#cstn').text((data[i].visualCacheData.value).toFixed(2));
}
// else if(i==10){
// $('#pjdo').text((data[i].visualCacheData.value).toFixed(2));
// }else if(i==11){
// $('#pjmlss').text((data[i].visualCacheData.value).toFixed(2));
// }
else if(i==10){
$('#zrcll').text((data[i].visualCacheData.value).toFixed(0)+"m³");
}else if(i==11){
$('#wnwyl').text((data[i].visualCacheData.value).toFixed(1)+"t");
}
}
}
}, 'json');
}
/* 定时器 */
setInterval(getValue, 300000); //<!--每隔5分钟刷新一次-->
//setInterval(change, 60000); //每1分钟切换
/* 初始化 */
$(function () {
if('${param.backgroundColor}'=='transparent'){
document.body.style.backgroundColor = '${param.backgroundColor}';
}else{
document.body.style.backgroundColor = "#" + '${param.backgroundColor}';
}
document.getElementById("main").style.width = document.documentElement.clientWidth + "px";
document.getElementById("main").style.height = (document.documentElement.clientHeight) + "px";
getValue();
//console.log("height",document.body.scrollHeight);
});
</script>
</head>
<body style="width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:hidden">
<div style="height:100%;width:100%;">
<div id="main" style="height:100%;width:100%;padding:0px;background:rgba(19,32,85,0.27);border-radius: 8px;">
<div style="float:left;width:250px;height:100%;line-height:calc(100vh);text-align: center;color: #ffffff;font-size: 24px;">
实时工艺情况
</div>
<div style="float:left;width:calc(100% - 250px);height:100%;">
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">昨日处理量</div>
</div>
</div>
<div style="float:left;width:100%;height:calc(100%*0.66);position:relative;">
<div id="zrcll" style="float: left;width: 100%;line-height:calc(100vh*0.66);color: #ffffff;font-size: 18px;text-align: center;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">污泥外运量</div>
</div>
</div>
<div style="float:left;width:100%;height:calc(100%*0.66);position:relative;">
<div id="wnwyl" style="float: left;width: 100%;line-height:calc(100vh*0.66);color: #ffffff;font-size: 18px;text-align: center;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">pH</div>
</div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">进水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="jsph" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">出水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="csph" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">COD&nbsp;&nbsp;<a style="color: #ffffff;">mg/L</a></div>
</div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">进水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="jscod" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">出水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="cscod" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">NH3-N&nbsp;&nbsp;<a style="color: #ffffff;">mg/L</a></div>
</div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">进水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="jsnh3n" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">出水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="csnh3n" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">TP&nbsp;&nbsp;<a style="color: #ffffff;">mg/L</a></div>
</div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">进水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="jstp" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">出水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="cstp" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">TN&nbsp;&nbsp;<a style="color: #ffffff;">mg/L</a></div>
</div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">进水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="jstn" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
<div style="float:left;width:calc(100%*0.55);height:calc(100%/3);position:relative;">
<div style="float: left;width: 100%;line-height:calc(100vh/3);color: #7cffff;font-size: 18px;font-family: Helvetica;text-align: right;letter-spacing:10px;">出水</div>
</div>
<div style="float:left;width:calc(100%*0.45);height:calc(100%/3);position:relative;">
<div id="cstn" style="float: left;width: 100%;line-height:calc(100vh/3);color: #ffffff;font-size: 18px;text-align: left;"></div>
</div>
</div>
<!--
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">平均DO</div>
</div>
</div>
<div style="float:left;width:100%;height:calc(100%*0.66);position:relative;">
<div id="pjdo" style="float: left;width: 100%;line-height:calc(100vh*0.66);color: #ffffff;font-size: 18px;text-align: center;"></div>
</div>
</div>
<div style="float:left;width:calc(100%/9);height:calc(100%);">
<div style="float:left;width:100%;height:calc(100%/3);position:relative;">
<div style="float:left;width:calc(100%*0.65);;height:100%;background: #2b66a9;border-radius:10px;position: absolute;left:17.5%;">
<div style="float:left;width:100%;height:100%;font-size: 18px;font-family: Helvetica;text-align: center;color: #7cffff;line-height:calc(100vh/3);">平均MLSS</div>
</div>
</div>
<div style="float:left;width:100%;height:calc(100%*0.66);position:relative;">
<div id="pjmlss" style="float: left;width: 100%;line-height:calc(100vh*0.66);color: #ffffff;font-size: 18px;text-align: center;"></div>
</div>
</div> -->
</div>
</div>
</div>
</body>
</html>