132 lines
6.7 KiB
Plaintext
132 lines
6.7 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">
|
|
|
|
/* 请求数据 */
|
|
function getValue() {
|
|
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
|
|
// console.log(data);
|
|
if(data!=''){
|
|
for(var i=0;i<data.length;i++){
|
|
if(data[i].elementCode=="waterNum"){
|
|
$('#waterNum').text(data[i].valueUrl);
|
|
}else if(data[i].elementCode=="serviceArea"){
|
|
$('#serviceArea').text(data[i].valueUrl);
|
|
}else if(data[i].elementCode=="peopleNum"){
|
|
$('#peopleNum').text(data[i].valueUrl);
|
|
}else if(data[i].elementCode=="textContent"){
|
|
$('#textContent').text(data[i].valueUrl);
|
|
}
|
|
}
|
|
}
|
|
}, '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) + "px";
|
|
|
|
document.getElementById("titleImage").src = ""+getRootPath()+"/images/大屏/大屏标题文字背景.png";
|
|
document.getElementById("waterImg").src = ""+getRootPath()+"/images/大屏/水量2.png";
|
|
document.getElementById("areaImg").src = ""+getRootPath()+"/images/大屏/服务面积.png";
|
|
document.getElementById("peopleImg").src = ""+getRootPath()+"/images/大屏/服务人口.png";
|
|
|
|
getValue();
|
|
//console.log("height",document.body.scrollHeight);
|
|
});
|
|
|
|
//获取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;
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style="width:100%;height:100%;margin:0;padding:0;overflow-x:hidden;overflow-y:hidden;">
|
|
<div id="main" style="height:100%;width:100%;padding-top:10px;padding-left:10px;padding-right:10px;">
|
|
<div style="height:100%;width:100%;">
|
|
<div style="float:left;width:100%;height:35px;margin-left: 20px;">
|
|
<div style="float:left;width:194px;height:34px;">
|
|
<div style="position:absolute;top:12px;left:50px;z-index:999;opacity: 1;font-size: 20px;font-family: Microsoft YaHei, Microsoft YaHei-Regular;margin-left:20px;">项目概览</div>
|
|
<img id="titleImage" src="" style="z-index:998;position:relative;height:100%;width:100%;"/>
|
|
</div>
|
|
</div>
|
|
<div style="float:left;width:100%;height:46px;margin-left: 20px;margin-top: 30px;">
|
|
<div style="float:left;width:30px;height:42px;">
|
|
<img id="waterImg" src="" style="z-index:999;position:relative;height:100%;width:100%;"/>
|
|
</div>
|
|
<div style="float:left;width:180px;height:46px;line-height: 46px;font-size: 20px;color: #2b9dd8;padding-left: 15px;">
|
|
在线运营供水能力
|
|
</div>
|
|
<div id="waterNum" style="float:left;width:80px;height:46px;line-height: 46px;font-size: 40px;color: #69f6f9;padding-left: 15px;">
|
|
|
|
</div>
|
|
<div style="float:left;width:80px;height:46px;line-height: 46px;font-size: 20px;color: #2b9dd8;padding-left: 10px;">
|
|
万吨/天
|
|
</div>
|
|
</div>
|
|
<div style="float:left;width:100%;height:50px;margin-left: 20px;margin-top: 30px;">
|
|
<div style="float:left;width:40px;height:40px;padding-top: 5px;">
|
|
<img id="areaImg" src="" style="z-index:999;position:relative;height:100%;width:100%;"/>
|
|
</div>
|
|
<div style="float:left;width:100px;height:50px;color: #2b9dd8;padding-left: 10px;">
|
|
<div style="float:left;width: 100%;height: 30px;font-size: 20px;line-height: 30px;">服务面积</div>
|
|
<div style="float:left;width: 100%;height: 20px;font-size: 14px;line-height: 20px;">平方公里</div>
|
|
</div>
|
|
<div id="serviceArea" style="float:left;width:80px;height:50px;line-height: 50px;font-size: 30px;color: #69f6f9;">
|
|
|
|
</div>
|
|
<div style="float:left;width:40px;height:40px;padding-top: 5px;">
|
|
<img id="peopleImg" src="" style="z-index:999;position:relative;height:100%;width:100%;"/>
|
|
</div>
|
|
<div style="float:left;width:100px;height:50px;color: #2b9dd8;padding-left: 10px;">
|
|
<div style="float:left;width: 100%;height: 30px;font-size: 20px;line-height: 30px;">服务人口</div>
|
|
<div style="float:left;width: 100%;height: 20px;font-size: 14px;line-height: 20px;">万人</div>
|
|
</div>
|
|
<div id="peopleNum" style="float:left;width:80px;height:50px;line-height: 50px;font-size: 30px;color: #69f6f9;">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="textContent" style="float:left;width:100%;height: 330px;padding-left: 20px;padding-top: 20px;color: #d8d8d8;line-height:35px;font-size: 19px;line-height: 40px;">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |