87 lines
2.6 KiB
Plaintext
87 lines
2.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"%>
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<!-- <html lang="zh-CN"> -->
|
||
|
|
<!-- BEGIN HEAD -->
|
||
|
|
<head>
|
||
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
|
||
|
|
<!-- 引用页头及CSS页-->
|
||
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var unitId="";
|
||
|
|
|
||
|
|
var choiceFun = function(id) {
|
||
|
|
$.post(ext.contextPath + '/equipment/equipmentFittings/showList4Facility.do', {classId: id} , function(data) {
|
||
|
|
$("#equipmentFittingsTable").html(data);
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
var initTreeView = function() {
|
||
|
|
$.post(ext.contextPath + '/equipment/facilitiesClass/getTreeJson.do', {unitId:unitId} , function(data) {
|
||
|
|
var treeData = data.result;
|
||
|
|
var ptree=[];
|
||
|
|
ptree.push({
|
||
|
|
id:"-1",
|
||
|
|
code:"-1",
|
||
|
|
nodes:treeData,
|
||
|
|
icon:"",
|
||
|
|
pid:"-2",
|
||
|
|
text:"全部",
|
||
|
|
type:"-1",
|
||
|
|
})
|
||
|
|
// console.log(ptree);
|
||
|
|
$('#tree').treeview({data: ptree,levels: 2});
|
||
|
|
$('#tree').on('nodeSelected', function(event, treeData) {
|
||
|
|
choiceFun(treeData.id);
|
||
|
|
});
|
||
|
|
},'json');
|
||
|
|
$("#equipmentFittingsTable").html("");
|
||
|
|
};
|
||
|
|
$(function() {
|
||
|
|
unitId=unitId;
|
||
|
|
initTreeView();
|
||
|
|
choiceFun("-1");
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
||
|
|
<div class="wrapper">
|
||
|
|
<div class="content-wrapper">
|
||
|
|
<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>
|
||
|
|
</ol>
|
||
|
|
</section>
|
||
|
|
<section class="content container-fluid">
|
||
|
|
<div id="mainAlertdiv"></div>
|
||
|
|
<div id="FittingsDiv"></div>
|
||
|
|
<div id="subDiv"></div>
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-3">
|
||
|
|
<div class="box box-solid">
|
||
|
|
<div class="box-header with-border">
|
||
|
|
<h3 class="box-title">设施分类</h3>
|
||
|
|
<div class="box-tools" id="addDiv" style="display:none">
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="box-body no-padding">
|
||
|
|
<div id="tree" style="height:1000px;overflow:auto; "></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-9" id="equipmentFittingsTable" ></div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|