161 lines
6.8 KiB
Plaintext
161 lines
6.8 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.alarm.AlarmPoint" %>
|
|
<% request.setAttribute("Type_MPoint", AlarmPoint.Type_MPoint);%>
|
|
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%>
|
|
</title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
<style type="text/css">
|
|
.select2-container .select2-selection--single {
|
|
height: 34px;
|
|
line-height: 34px;
|
|
}
|
|
|
|
.select2-selection__arrow {
|
|
margin-top: 3px;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function informationTree() {
|
|
$.post(ext.contextPath + '/alarm/alarmInformation/getJsonForSysSubscribe.do', {unitId: unitId}, function (datas) {
|
|
// console.log(datas)
|
|
$('#informationTree').treeview({
|
|
data: datas,
|
|
levels: 1
|
|
});
|
|
$('#informationTree').on('nodeSelected', function (event, data) {
|
|
// console.log(data);
|
|
if (data.type == 'level') {
|
|
showSysPoint(data.code);
|
|
}
|
|
});
|
|
}, 'json');
|
|
$("#rightBox").html("");
|
|
}
|
|
|
|
function personalInformationTree() {
|
|
$.post(ext.contextPath + '/alarm/alarmInformation/getJsonForPersonalSubscribe.do', {unitId: unitId}, function (datas) {
|
|
// console.log("c",datas)
|
|
$('#personalLnformationTree').treeview({
|
|
data: datas,
|
|
levels: 1
|
|
});
|
|
$('#personalLnformationTree').on('nodeSelected', function (event, data) {
|
|
// console.log(data);
|
|
if (data.type == 'level') {
|
|
// console.log(data);
|
|
showPersonalPoint(data.moldCode,data.levelCode);
|
|
}
|
|
});
|
|
}, 'json');
|
|
$("#rightBox").html("");
|
|
}
|
|
|
|
$(function () {
|
|
informationTree();
|
|
personalInformationTree();
|
|
});
|
|
|
|
var addPersonalFun = function () {
|
|
$.post(ext.contextPath + '/alarm/alarmSubscribe/doadd.do', function (data) {
|
|
$("#subDiv").html(data);
|
|
openModal('subModal');
|
|
});
|
|
};
|
|
|
|
var showSysPoint = function (code) {
|
|
$.post(ext.contextPath + '/alarm/alarmSubscribe/showSysPoint.do', {code: code}, function (data) {
|
|
$("#rightBox").html(data);
|
|
});
|
|
};
|
|
|
|
var showPersonalPoint = function (moldCode,levelCode) {
|
|
$.post(ext.contextPath + '/alarm/alarmSubscribe/showPersonalPoint.do', {moldCode: moldCode,levelCode :levelCode}, function (data) {
|
|
$("#rightBox").html(data);
|
|
});
|
|
};
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<!-- 引用top -->
|
|
<%--<jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
<!-- 菜单栏 -->
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1 id="head_title"></h1>
|
|
<ol class="breadcrumb">
|
|
<li><a id='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>
|
|
<!-- <li class="active">Here</li> -->
|
|
</ol>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
<div id="mpSubDiv"></div>
|
|
<div id="user4SelectDiv"></div>
|
|
|
|
<div id="leftBox" class="col-md-3" style="height: 750px;">
|
|
<div class="box box-solid" style="height:100%;margin-bottom:0px;overflow: auto;overflow-x: hidden;">
|
|
<ul class="nav nav-tabs" id="myTab">
|
|
<li class="active"><a href="#tab1" data-toggle="tab"
|
|
index="0" aria-expanded="true">系统订阅</a></li>
|
|
<li class=""><a href="#tab2" data-toggle="tab" index="1"
|
|
aria-expanded="true">个人订阅</a></li>
|
|
</ul>
|
|
<div class="tab-content no-padding">
|
|
<div class="chart tab-pane active" id="tab1" style="position: relative; padding:5px;">
|
|
<div class="box-header with-border">
|
|
<%-- <h3 class="box-title"> </h3>--%>
|
|
<div class="box-tools">
|
|
</div>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<div id="informationTree" style="height:100%;overflow:auto;"></div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<div class=" tab-pane" id="tab2" style="position: relative; padding:5px;">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"></h3>
|
|
|
|
<div class="box-tools">
|
|
<button type="button" class="btn btn-box-tool" onclick="addPersonalFun();"
|
|
title="新增"><i class="fa fa-plus"> 新增</i></button>
|
|
<%-- <button type="button" class="btn btn-box-tool" onclick="addFuns();" title="期初新增"><i class="fa fa-plus"> 期初新增</i></button>--%>
|
|
</div>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<div id="personalLnformationTree" style="height:100%;overflow:auto;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="rightBox" class="col-md-9" style="height: 100%;">
|
|
</div>
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<jsp:include page="/jsp/side.jsp"></jsp:include>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |