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

175 lines
8.9 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" src="<%=request.getContextPath()%>/JS/tableScroll.js" charset="utf-8"></script> -->
<style type="text/css">
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
.path {
fill:none;
stroke: #b1dfef;
stroke-width:0.2;
stroke-dasharray:1;
stroke-dashoffset:16;
animation: dash 5s linear infinite;
}
</style>
<script type="text/javascript">
/* 请求数据 */
function getValue() {
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
if(data!=''){
for(var i=0;i<data.length;i++){
if(data[i].elementCode=="img"){
document.getElementById("Image").src = ""+getRootPath()+""+data[i].valueUrl+"";
}
}
}
}, 'json');
}
/* 定时器 */
// setInterval(getValue, 300000); //每5分钟切换
// setInterval(changeDiv, 8000); //每8秒切换
// setInterval(getValue, 3600000); //每一小时切换
// var timeSt="0";
/* 初始化 */
$(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);
});
//获取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-left:10px;padding-right:10px;">
<div style="float:left;width:100%;height:100%;margin-top: 10px;position:relative;">
<svg viewBox="0 0 120 55" style="position: absolute;z-index:999;">
<path d="M99.4,7.35 H91.5 V8" class="path" style="stroke-width:0.1;"/>
<path d="M99.4,7.35 H90.8 V8" class="path" style="stroke-width:0.1;"/>
<path d="M99.4,7.35 H90.2 V8" class="path" style="stroke-width:0.1;"/>
<path d="M99.4,7.35 H89.6 V8" class="path" style="stroke-width:0.1;"/>
<path d="M90.2,13 L90.2,14.2" class="path"/>
<path d="M90.8,13 L90.95,14.2 H89.26 L88.13,7.42 H89.5" class="path"/>
<path d="M96.7,7.3 L96.45,5.7 H95.5" class="path"/>
<path d="M96.7,7.3 L96.1,3.9 H95" class="path"/>
<path d="M99.4,7.65 H93.8" class="path"/>
<path d="M91.9,13 L92.2,14.2" class="path"/>
<path d="M91.4,13 L91.6,14.2 H100.1 L105,35.65 H101.5" class="path"/>
<path d="M104,33.2 H101.2" class="path"/>
<path d="M96.35,12.5 V13.3" class="path"/>
<path d="M95.55,12.5 V13.3" class="path"/>
<path d="M94.85,12.5 V13.3" class="path"/>
<path d="M94.2,12.5 V13.3 H99 L100.75,21.3 H99.5" class="path"/>
<path d="M99.4,21.3 L98.4,16.95 H97.55" class="path"/>
<path d="M99.4,21.3 L98.9,19.3 H98.1" class="path"/>
<path d="M99.4,21.3 L100.05,24.4 H99.2" class="path"/>
<path d="M99.4,21.3 L100.57,26.75 H99.65" class="path"/>
<path d="M108.15,46.55 L108.8,49.25 H104.7" class="path"/>
<path d="M108.15,46.55 L108.9,49.9 H104.8" class="path"/>
<path d="M97.2,48.7 H96 L96.15,49.8" class="path"/>
<path d="M97.8,50.9 H96.4 L96.15,49.8 H95.45 L95.1,47.4 H106 L104.95,42.5 H103.9 L103.7,41.35 H102.8" class="path"/>
<path d="M103.9,42.5 L104.2,44.14 H103.5" class="path"/>
<path d="M79,3.36 H77.7 L78.8,13.8 H79.5" class="path"/>
<path d="M79,5.1 H77.8" class="path"/>
<path d="M78.3,7.3 H78.6" class="path"/>
<path d="M79,10.85 H75.9 L76.1,13.2 H64.7 L64.75,17 H63.5" class="path"/>
<!-- <path d="M64.5,17 H63.5" class="path"/> -->
<path d="M54.5,17.1 H52.8 V16 H51.5" class="path"/>
<path d="M54.5,19.1 H52.7 L52.6,21.2 H51.2" class="path"/>
<path d="M39.3,18.12 H37.45 L37.5,17.1 H36.5" class="path"/>
<path d="M36.3,16.2 H37.5 L38.05,12.58 H64.7 V11.8" class="path"/>
<path d="M64.7,12.58 H69.8 V11.8" class="path"/>
<path d="M66.8,2.7 V0.8" class="path"/>
<path d="M39.3,18.12 H37.45 L36.1,28.1 H31.1 L31.2,27" class="path"/>
<path d="M80.7,17 H78.35 L78.1,14.4 H67.1 V15.1" class="path"/>
<path d="M76.7,14.4 V15.1" class="path"/>
<path d="M80.7,19.1 H78.57 L78.35,17" class="path"/>
<path d="M81.5,24.43 H79.15 L79.48,28.03 H67.6 V27" class="path"/>
<path d="M81.5,26.41 H79.28" class="path"/>
<path d="M77.89,28.03 V27" class="path"/>
<path d="M82.4,32.57 H80.8 L80.45,29.2 H79" class="path"/>
<path d="M82.4,34.99 H81.08 L81.3,37.56 H79.9" class="path"/>
<path d="M83.41,40.85 H81.7 L81.35,37.99 H79.9" class="path"/>
<path d="M83.41,44.16 H82.13 L82.35,47.2 H80.7" class="path"/>
<path d="M71.5,42.85 H68.2 L67.95,37.48 H63.1 V38.3" class="path"/>
<path d="M64.6,37.48 V38.3" class="path"/>
<path d="M62.7,46.5 V48" class="path"/>
<path d="M65.34,46.5 V48.1 H55.4 V47" class="path"/>
<path d="M58.89,48 V38.32 H55.8" class="path"/>
<path d="M71,33.6 H65.2 L64.95,26.15 H63.5" class="path"/>
<path d="M67.3,21.32 H64.88 L64.95,24.15 H63.5" class="path"/>
<path d="M67.3,21.32 H64.88 L64.8,18.92 H63.5" class="path"/>
<path d="M54.5,23.74 H52.5 V21.7 H51.2" class="path"/>
<path d="M54.3,26 H52.35 L52.3,27.75 H51" class="path"/>
<path d="M48,42.5 H45.5 L45.78,37.5 H34 L33.7,39.5" class="path"/>
<path d="M37.9,37.5 L37.7,39.5" class="path"/>
<path d="M27.6,45.4 L27.4,47" class="path"/>
<path d="M42.12,45.4 L41.95,47.05 H23.5 L24.7,40 H23.45" class="path"/>
<path d="M23.7,44.28 H22.4" class="path"/>
<path d="M15,42.68 H11.5" class="path"/>
<path d="M39,24.5 H37.95 L37.3,29.55 H17.6 L18.2,26.7" class="path"/>
<path d="M37.5,28.12 H36" class="path"/>
<path d="M29.38,25.1 L29.6,23.5" class="path"/>
<path d="M23.75,25.1 L24.05,23.5" class="path"/>
<path d="M29.38,24.55 H27 L26.5,23.9" class="path"/>
<path d="M23.9,24.55 H25.8 L26.46,23.9 L28.4,12.7 H26.5" class="path"/>
<path d="M29.38,19.75 H28.8 L30.46,9.5 H28.79 L29.15,7" class="path"/>
<path d="M27.2,11.1 H28.5 L29.15,7" class="path"/>
<path d="M19.5,19.5 H18.5 L20.75,9.45 H24.65 L25.3,7" class="path"/>
<path d="M24.85,2.9 L25.3,0.8" class="path"/>
<path d="M30.8,2.9 L31,1.8 H32 L32.1,0.8" class="path"/>
</svg>
<!-- <div style="position: absolute;left:350px;top:103px;width: 20px;height: 2px;background-color: aquamarine;"></div> -->
<img id="Image" src="" style="z-index:998;position:relative;height:100%;width:100%;"/>
</div>
</div>
</body>
</html>