first commit
This commit is contained in:
65
WebRoot/jsp/visual/modules/outURL.jsp
Normal file
65
WebRoot/jsp/visual/modules/outURL.jsp
Normal file
@ -0,0 +1,65 @@
|
||||
<%@ 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"%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!-- <html lang="zh-CN"> -->
|
||||
<!-- BEGIN HEAD -->
|
||||
|
||||
<head>
|
||||
<title></title>
|
||||
<!-- 引用页头及CSS页-->
|
||||
<jsp:include page="/jsp/incVisual.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
function getValue() {
|
||||
$.post(ext.contextPath + '/plan/getJspWholeInfoByPlanLayoutId.do', { planLayoutId: "${param.planLayoutId}" }, function (data) {
|
||||
//每一条循环判断
|
||||
//console.log("data", data);
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
var code = data[i].elementCode;
|
||||
if (document.getElementById(code)) {
|
||||
document.getElementById(code).src = data[i].valueUrl;
|
||||
}
|
||||
// } else {
|
||||
// //获取值 和 获取Modbus
|
||||
// if (data[i].getValueType == '${Type_GetValue}' || data[i].getValueType == '${Type_GetModbus}') {
|
||||
// var code = data[i].elementCode;
|
||||
// document.getElementById(code).innerHTML = data[i].mPoint.parmvalue;
|
||||
// } else if (data[i].getValueType == '${Type_GetHistory}') {
|
||||
|
||||
// } else if (data[i].getValueType == '${Type_GetHttp}') {
|
||||
// var code = data[i].elementCode;
|
||||
// document.getElementById(code).innerHTML = data[i].value;
|
||||
// } else {
|
||||
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
/* 定时器 */
|
||||
setInterval(getValue, 300000); //<!--每隔5分钟刷新一次-->
|
||||
|
||||
$(function () {
|
||||
getValue();
|
||||
// console.log(document.documentElement.offsetHeight);
|
||||
// console.log(document.documentElement.clientHeight);
|
||||
document.body.style.backgroundColor = "#" + '${param.backgroundColor}';
|
||||
//document.getElementById("backImage").style.width = document.documentElement.clientWidth + "px";
|
||||
//document.getElementById("backImage").style.height = document.documentElement.clientHeight + "px";
|
||||
// document.getElementById("floatDiv").style.width = document.documentElement.clientWidth + "px";
|
||||
// document.getElementById("floatDiv").style.height = document.documentElement.clientHeight + "px";
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body style="width:100%;height:100%;margin:0;padding:0;">
|
||||
<iframe id="outurl" scrolling="no" allowtransparency="yes" src=""
|
||||
style="height:100%;width:100%;border:0px;padding:0px;margin:0px"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user