76 lines
2.5 KiB
Plaintext
76 lines
2.5 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8" %>
|
||
|
|
<%@ page import="com.sipai.tools.Mqtt" %>
|
||
|
|
<%@ page import="org.springframework.context.ApplicationContext" %>
|
||
|
|
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
|
||
|
|
<% ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getServletContext());
|
||
|
|
Mqtt mqtt = (Mqtt) ctx.getBean("mqtt");
|
||
|
|
request.setAttribute("hostWeb", mqtt.getHostWeb()); %>
|
||
|
|
|
||
|
|
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>Title</title>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
var index;
|
||
|
|
|
||
|
|
function mqtt_emergency_open(msg) {
|
||
|
|
console.log(msg)
|
||
|
|
if(msg.length>0){
|
||
|
|
// let mpid = msg
|
||
|
|
}
|
||
|
|
// emergency_iframe
|
||
|
|
// let src = ext.contextPath+"/process/dataVisualFrame/view.do?frameId=0bf9f1f50e5844a6bf00aa9b911b129a&unitId=HFCG";
|
||
|
|
// $('#emergency_iframe').attr('src',src);
|
||
|
|
|
||
|
|
index = layer.open({
|
||
|
|
id: 1,
|
||
|
|
type: 1,
|
||
|
|
title: '报警预览',
|
||
|
|
area: ['70%', '800px'],
|
||
|
|
skin: 'bgfff', //没有背景色
|
||
|
|
maxmin: false,
|
||
|
|
shadeClose: false,
|
||
|
|
closeBtn: '1',
|
||
|
|
content: $('#show_emergency_div'),
|
||
|
|
zIndex: 99,
|
||
|
|
// btn: ['报警确认', '关闭'], //按钮组
|
||
|
|
btn: ['关闭'], //按钮组
|
||
|
|
// yes: function (index) {//layer.msg('yes'); //点击确定回调
|
||
|
|
// },
|
||
|
|
btn2: function () {//layer.alert('aaa',{title:'msg title'}); 点击取消回调
|
||
|
|
// layer.msg('bbb');//
|
||
|
|
// layer.closeAll();
|
||
|
|
layer.close(index);
|
||
|
|
},
|
||
|
|
// min: function () { //点击最小化后的回调函数
|
||
|
|
// $(".layui-layer-shade").css({"z-index": "-1"});
|
||
|
|
// },
|
||
|
|
// full: function () { //点击最大化后的回调函数
|
||
|
|
// $(".layui-layer-shade").css({"z-index": "99"});
|
||
|
|
// },
|
||
|
|
// restore: function () { //点击还原后的回调函数
|
||
|
|
// $(".layui-layer-shade").css({"z-index": "99"});
|
||
|
|
// }
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
</script>
|
||
|
|
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
|
||
|
|
<div style="display:none;width: 100%;height: 100%;" id="show_emergency_div">
|
||
|
|
<iframe id="emergency_iframe" scrolling="auto" allowtransparency="yes" style="height:100%;width:100%;border:0px;padding:0px;margin:0px;" src=""></iframe>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|