Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/inc.jsp

230 lines
10 KiB
Plaintext
Raw Normal View History

2026-01-16 14:13:44 +08:00
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="com.sipai.entity.base.ServerObject" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<meta name="renderer" content="webkit"></meta>
<meta name="force-rendering" content="webkit"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"></meta>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"></meta>
<%String contextPath = request.getContextPath();%>
<%String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();%>
<%String serverPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();%>
<%
Map<String, Cookie> cookieMap = new HashMap<String, Cookie>();
Cookie[] cookies = request.getCookies();
if (null != cookies) {
for (Cookie cookie : cookies) {
cookieMap.put(cookie.getName(), cookie);
}
}
%>
<!-- 带有onclick属性的input输入框显示手形 -->
<style type="text/css">
input[onclick] {
cursor: pointer;
}
</style>
<script type="text/javascript">
var ext = ext || {};
ext.contextPath = '<%=contextPath%>';
ext.basePath = '<%=basePath%>';
ext.serverPath = '<%=serverPath%>';
</script>
<!-- END bootstrap全局强制样式 -->
<!-- BEGIN bootstrap页面级样式 -->
<!-- BEGIN bootstrap全局强制样式 -->
<link rel="stylesheet" href="<%=contextPath%>/plugins/bootstrap-ext/dist/bootstrap.min.css"></link>
<!-- bootstrap-table样式 -->
<link rel="stylesheet" href="<%=contextPath%>/plugins/bootstrap-table/bootstrap-table.css"></link>
<!-- bootstrapValidator样式 -->
<link rel="stylesheet"
href="<%=contextPath%>/node_modules/bootstrapvalidator/dist/css/bootstrapValidator.min.css"></link>
<!-- Font Awesome -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/font-awesome/css/font-awesome.min.css"></link>
<!-- 维修分类树样式 -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/font_equipmentClass/iconfont.css"></link>
<!-- 设备台账树样式 -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/font_equipmentCard/iconfont.css"></link>
<!-- 巡检图标样式 -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/font_timeEfficency/iconfont.css"></link>
<!-- 总览图标样式 -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/iconfont/iconfont.css"></link>
<!-- AdminLTE样式 -->
<link rel="stylesheet" href="<%=contextPath%>/plugins/AdminLTE/css/AdminLTE.min.css"></link>
<link rel="stylesheet" href="<%=contextPath%>/plugins/AdminLTE/css/skins/_all-skins.min.css"></link>
<!-- Google Font -->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"/> -->
<!-- select2 -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/select2/dist/css/select2.min.css"></link>
<!-- icheck -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/icheck/skins/all.css"></link>
<!-- bootstrap-treeview -->
<link rel="stylesheet"
href="<%=contextPath%>/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.css"></link>
<%--<link rel="stylesheet"
href="<%=contextPath%>/node_modules/bootstrap-treeview-1.2.0/dist/bootstrap-treeview.min.css"></link>--%>
<!-- bootstrap-datepicker -->
<link rel="stylesheet"
href="<%=contextPath%>/node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"></link>
<!-- bootstrap-timepicker -->
<link rel="stylesheet"
href="<%=contextPath%>/node_modules/bootstrap-timepicker/css/bootstrap-timepicker.min.css"></link>
<!-- bootstrap-datetimepicker -->
<link rel="stylesheet"
href="<%=contextPath%>/node_modules/bootstrap-datetimepicker-master/bootstrap-datetimepicker.css"></link>
<!-- BEGIN 布局样式 -->
<%-- 自定义Bootstrap主题样式 --%>
<%-- <link rel="stylesheet" href="<%=contextPath%>/CSS/bootstrap-override.css" type="text/css"> --%>
<%-- 引入js --%>
<%-- 引入jQuery --%>
<script type="text/javascript" src="<%=contextPath%>/node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=contextPath%>/plugins/jquery-ui/jquery-ui.min.js" charset="utf-8"></script>
<!-- ztree -->
<link rel="stylesheet" href="<%=contextPath%>/node_modules/ztree/zTreeStyle.css"></link>
<script type="text/javascript" src="<%=contextPath%>/node_modules/ztree/jquery.ztree.core.js" charset="utf-8"></script>
<!-- FastClick -->
<%-- <script type="text/javascript" src="<%=contextPath%>/node_modules/fastclick/lib/fastclick.js" charset="utf-8"></script> --%>
<%-- 引入Bootstrap --%>
<script type="text/javascript" src="<%=contextPath%>/node_modules/bootstrap/dist/js/bootstrap.min.js"
charset="utf-8"></script>
<%-- <script type="text/javascript" src="<%=contextPath%>/node_modules/popper.js/dist/popper.min.js" charset="utf-8"></script> --%>
<%-- 引入bootstrapValidator --%>
<script type="text/javascript" src="<%=contextPath%>/node_modules/bootstrapvalidator/dist/js/bootstrapValidator.min.js"
charset="utf-8"></script>
<!-- 引入AdminLTE-->
<script type="text/javascript" src="<%=contextPath%>/plugins/AdminLTE/js/adminlte.js" charset="utf-8"></script>
<!-- 引入bootstrap-table-->
<script type="text/javascript" src="<%=contextPath%>/plugins/bootstrap-table/bootstrap-table.js"
charset="utf-8"></script>
<script type="text/javascript" src="<%=contextPath%>/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"
charset="utf-8"></script>
<!--bootstrap-edittable 表格行内编辑 -->
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-editable/css/bootstrap-editable.css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-editable/js/bootstrap-editable.js"
charset="utf-8"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/plugins/bootstrap-editable/js/bootstrap-table-editable.js"
charset="utf-8"></script>
<!-- 引入sweetalert-->
<script type="text/javascript" src="<%=contextPath%>/node_modules/sweetalert/dist/sweetalert.min.js"
charset="utf-8"></script>
<!-- 引入select2-->
<%--<script type="text/javascript" src="<%=contextPath%>/node_modules/select2/dist/js/select2.min.js" charset="utf-8"></script>--%>
<script type="text/javascript" src="<%=contextPath%>/node_modules/select2/dist/js/select2.full.min.js"
charset="utf-8"></script>
<!-- 引入icheck-->
<script type="text/javascript" src="<%=contextPath%>/node_modules/icheck/icheck.min.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=contextPath%>/node_modules/select2/dist/js/i18n/zh-CN.js"
charset="utf-8"></script>
<!-- 引入bootstrap-treeview-->
<script type="text/javascript"
src="<%=contextPath%>/node_modules/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js"
charset="utf-8"></script>
<%--<script type="text/javascript"--%>
<%-- src="<%=contextPath%>/node_modules/bootstrap-treeview-1.2.0/dist/bootstrap-treeview.min.js"--%>
<%-- charset="utf-8"></script>--%>
<!-- 引入bootstrap-datepicker-->
<script type="text/javascript"
src="<%=contextPath%>/node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"
charset="utf-8"></script>
<script type="text/javascript"
src="<%=contextPath%>/node_modules/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"
charset="utf-8"></script>
<!-- 引入bootstrap-timepicker-->
<script type="text/javascript" src="<%=contextPath%>/node_modules/bootstrap-timepicker/js/bootstrap-timepicker.min.js"
charset="utf-8"></script>
<!-- 引入bootstrap-datetimepicker-->
<script type="text/javascript"
src="<%=contextPath%>/node_modules/bootstrap-datetimepicker-master/bootstrap-datetimepicker.js"
charset="utf-8"></script>
<script type="text/javascript"
src="<%=contextPath%>/node_modules/bootstrap-datetimepicker-master/locales/bootstrap-datetimepicker.zh-CN.js"
charset="utf-8"></script>
<!-- 引入comm.js-->
<script type="text/javascript" src="<%=contextPath%>/JS/comm.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=contextPath%>/JS/reconnecting-websocket.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- END 布局样式 -->
<LINK href="<%=contextPath%>/IMG/sipai.ico" type="image/x-icon" rel="shortcut icon"></LINK>
<!-- END HEAD -->
<LINK href="<%=contextPath%>/IMG/logo.ico" type="image/x-icon" rel="shortcut icon"></LINK>
<script type="text/javascript" src="<%=contextPath%>/node_modules/bootstrap/layer/layer.js" charset="utf-8"></script>
<!--生成二维码的js-->
<%-- <script type="text/javascript" src="<%=contextPath%>/plugins/qrcode/jquery.qrcode.js" charset="utf-8"></script> --%>
<script type="text/javascript" src="<%=contextPath%>/plugins/qrcode/jquery.qrcode.min.js" charset="utf-8"></script>
<!-- echarts-->
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/echarts/echarts5.2.1.js"
charset="utf-8"></script>
<style>
.content-wrapper, .main-footer {
margin-left: 0px;
}
/*
* Component: Sidebar Mini
*/
/* .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .MenuScroll:hover {
width: 230px !important;
} */
@media (min-width: 1100px) {
.modal-xlg {
width: 1000px;
}
}
@media (min-width: 1300px) {
.modal-xlg {
width: 1200px;
}
}
</style>
<script type="text/javascript">
// 厂区切换全局变量
var unitId;
var global_height;
var global_width;
var mqttStatus;
var mqttHostWeb;
var userId;
$(function () {
try {
userId = $("#topUserId", parent.document).val();
mqttStatus = $("#mqttStatus", parent.document).val();
mqtthostWeb = $("#mqttHostWeb", parent.document).val();
unitId = $("#unitId", parent.document).val();
global_height = $("#global_height", parent.document).val();
global_width = $("#global_width", parent.document).val();
} catch (err) {
unitId = '';
global_height = 855;
global_width = 1690;
console.log(err.message);
}
})
</script>