first commit
This commit is contained in:
125
WebRoot/jsp/process/libraryProcessManage4Tree.jsp
Normal file
125
WebRoot/jsp/process/libraryProcessManage4Tree.jsp
Normal file
@ -0,0 +1,125 @@
|
||||
<%@ 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>
|
||||
<!-- 文件上传-->
|
||||
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/css/fileinput.min.css" />
|
||||
<script type="text/javascript"
|
||||
src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/fileinput.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/locales/zh.js"
|
||||
charset="utf-8"></script>
|
||||
|
||||
<style type="text/css">
|
||||
.buttonDiv {
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var unitId = "";
|
||||
|
||||
var choiceFun = function (id) {
|
||||
$.post(ext.contextPath + '/process/libraryProcessManage/showList.do', { classId: id }, function (data) {
|
||||
$("#contentListTable").html(data);
|
||||
});
|
||||
};
|
||||
|
||||
var initTreeView = function () {
|
||||
$.post(ext.contextPath + '/process/libraryProcessManageType/getTreeJson.do', { unitId: unitId }, function (data) {
|
||||
var treeData = data.result;
|
||||
$('#tree').treeview({ data: treeData, levels: 1 });
|
||||
$('#tree').on('nodeSelected', function (event, treeData) {
|
||||
choiceFun(treeData.id);
|
||||
});
|
||||
}, 'json');
|
||||
$("#contentListTable").html("");
|
||||
};
|
||||
|
||||
//导入
|
||||
// function doImport() {
|
||||
// $.post(ext.contextPath + '/timeEfficiency/patrolContentsStandard/doImport.do', { unitId: unitId }, function (data) {
|
||||
// $("#subDiv").html(data);
|
||||
// openModal('subModal');
|
||||
// });
|
||||
// }
|
||||
|
||||
//导出
|
||||
// function doExport() {
|
||||
// window.open(ext.contextPath + "/timeEfficiency/patrolContentsStandard/doExport.do?unitId=" + unitId);
|
||||
// }
|
||||
|
||||
$(function () {
|
||||
unitId = unitId;
|
||||
initTreeView();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
||||
<!-- 搜索状态 0为隐藏 1为显示 -->
|
||||
<input type="hidden" id="searchStatus" name="searchStatus" value="0">
|
||||
|
||||
<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="subDiv"></div>
|
||||
<div id="equipmentProcessSectionSubDiv"></div>
|
||||
<div style="width:100%;height:10px;background-color:#ECF0F5;">
|
||||
|
||||
</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 class="box-tools" id="addDiv">
|
||||
<button type="button" class="btn btn-box-tool" onclick="doImport();"><i
|
||||
class="fa fa-cloud-upload"></i>
|
||||
导入
|
||||
</button>
|
||||
<button type="button" class="btn btn-box-tool" onclick="doExport();"><i
|
||||
class="fa fa-cloud-download"></i>
|
||||
导出
|
||||
</button>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body no-padding">
|
||||
<div id="tree" style="height:700px;overflow:auto; "></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9" id="contentListTable"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user