Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/alarm/alarmPointList.jsp
2026-01-16 14:13:44 +08:00

168 lines
5.6 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">
var addFuns = function() {
swal({
text: "该操作会删除原有数据,确定执行?",
dangerMode: true,
buttons: {
cancel: {
text: "取消",
value: null,
visible: true,
className: "btn btn-default btn-sm",
closeModal: true,
},
confirm: {
text: "确定",
value: true,
visible: true,
className: "btn btn-danger btn-sm",
closeModal: true
}
}
})
.then(function(willDelete){
if (willDelete) {
$.post(ext.contextPath + '/alarm/alarmInformation/dofirstsave.do',{unitId:unitId}, function(data) {
if(data.code>=1){
// $("#table").bootstrapTable('refresh');
informationTree();
}else{
showAlert('d',data.msg,'mainAlertdiv');
}
},'json');
}
});
};
var nowMoldCode="";
function informationTree(){
$.post(ext.contextPath + '/alarm/alarmInformation/getJsonForConfigure.do', {unitId:unitId} , function(datas) {
// console.log(datas)
$('#informationTree').treeview({
data: datas,
levels: 1
});
$('#informationTree').on('nodeSelected', function(event, data) {
nowMoldCode=data.moldCode;
// console.log(data);
if(data.type=='level'){
editFun(data.hiddenId);
}
});
},'json');
$("#rightBox").html("");
}
$(function () {
informationTree();
});
var addFun = function() {
$.post(ext.contextPath + '/alarm/alarmInformation/doadd.do',{nowMoldCode:nowMoldCode}, function(data) {
$("#rightBox").html(data);
});
};
var editFun = function(id) {
$.post(ext.contextPath + '/alarm/alarmInformation/doedit.do', {id:id} , 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="riskLevelDiv"></div>
<div id="mpSubDiv"></div>
<div id="user4SelectDiv"></div>
<div id="areaSubDiv"></div>
<div style="height: 100%;">
<div id="leftBox" class="col-md-3" style="height: 750px;">
<div class="box box-solid" style="height:100%;">
<div class="box-header with-border">
<h3 class="box-title">报警信息</h3>
<div class="box-tools">
<button type="button" class="btn btn-box-tool" onclick="addFun();" 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="informationTree" style="height:100%;overflow:auto;"></div>
</div>
<!-- /.box-body -->
</div>
</div>
<div id="rightBox" class="col-md-9" >
<%-- <div style="float: left;width: 100%;" >--%>
<%-- <div class="box box-solid">--%>
<%-- <div class="box-header with-border">--%>
<%-- <h3 class="box-title">信息配置</h3>--%>
<%-- <div class="box-tools pull-right">--%>
<%-- <a onclick="dosave()" class="btn btn-box-tool" data-toggle="tooltip" title="保存"><i class="glyphicon glyphicon-floppy-disk"></i></a>--%>
<%-- <a onclick="dodel()" class="btn btn-box-tool" data-toggle="tooltip" title="删除"><i class="glyphicon glyphicon-trash"></i></a>--%>
<%-- </div>--%>
<%-- </div>--%>
<%-- <div class="box-body ">--%>
<%-- --%>
<%-- </div>--%>
<%-- </div>--%>
<%-- </div>--%>
</div>
</div>
</section>
<!-- /.content -->
</div>
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
<jsp:include page="/jsp/side.jsp"></jsp:include>
</div>
</body>
</html>