110 lines
8.0 KiB
Plaintext
110 lines
8.0 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_GetHourHistory", 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;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 请求数据 */
|
||
|
|
function getValue() {
|
||
|
|
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
|
||
|
|
// console.log(data);
|
||
|
|
var html="";
|
||
|
|
html+="<div style='float:left;width:50%;height:60px;'><img id='backImage' src='"+getRootPath()+"/images/大屏/项目概览.png' style='z-index:-1;positon:relative;height:100%;width:100%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:100%;height: calc((100vh - 60px - 15px)/3);padding:10px;'>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/日期.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[0].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;'>";
|
||
|
|
html+="<div style='float:left;height:100%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[0].valueUrl+" 年</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/运营.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[1].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[1].valueUrl+"</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="<div style='float:left;width:100%;height: calc((100vh - 60px - 15px)/3);padding:10px;'>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/水.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[2].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;'>";
|
||
|
|
html+="<div style='float:left;height:100%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[2].valueUrl+" 万吨/日</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/占地面积.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[3].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;'>";
|
||
|
|
html+="<div style='float:left;height:100%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[3].valueUrl+" 公顷</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="<div style='float:left;width:100%;height: calc((100vh - 60px - 15px)/3);padding:10px;'>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/工艺包.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[4].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[4].valueUrl+"</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="<div style='float:left;width:50%;height:100%;padding-left:30px;'>";
|
||
|
|
html+="<div style='float:left;width:20%;height:100%;'><img src='"+getRootPath()+"/images/大屏/行业排放标准.png' style='z-index:-1;positon:relative;height:90%;'/></div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 22px;font-family: Helvetica;text-align: left;color: #ffffff;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[5].name+"</div>";
|
||
|
|
html+="<div style='float:left;width:80%;height:50%;font-size: 24px;font-family: Helvetica;text-align: left;color: #69f6f9;line-height:calc((100vh - 60px - 60px)/3/2);padding-left:15px;'>"+data[5].valueUrl+"</div>";
|
||
|
|
html+="</div>";
|
||
|
|
html+="</div>"
|
||
|
|
$('#main').html(html);
|
||
|
|
}, 'json');
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 定时器 */
|
||
|
|
//setInterval(change, 60000); //每1分钟切换
|
||
|
|
setInterval(getValue, 3600000); //每一小时切换
|
||
|
|
|
||
|
|
/* 初始化 */
|
||
|
|
$(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-15) + "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;padding-top:15px;">
|
||
|
|
<div style="height:100%;width:100%;">
|
||
|
|
<div id="main" style="height:100%;width:100%;background:rgba(19,32,85,0.27);border-radius: 8px;">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
|
||
|
|
</html>
|