125 lines
4.6 KiB
Plaintext
125 lines
4.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.report.RptInfoSet" %>
|
||
|
|
<%request.setAttribute("TYPE_CATALOGUE", RptInfoSet.TYPE_CATALOGUE);%>
|
||
|
|
<%request.setAttribute("TYPE_SETTING", RptInfoSet.TYPE_SETTING);%>
|
||
|
|
<%request.setAttribute("Role_Generate", RptInfoSet.Role_Generate);%>
|
||
|
|
<%request.setAttribute("Role_Check", RptInfoSet.Role_Check);%>
|
||
|
|
<!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 editFun1 = function(id) {
|
||
|
|
if (id.length<2) {
|
||
|
|
$("#rptDayLogList").html("");
|
||
|
|
}else{
|
||
|
|
$.post(ext.contextPath + '/report/RptDayLog/showRptDayLogList.do', {rptdeptId: id} , function(data) {
|
||
|
|
$("#rptDayLogList").html(data);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
var editFun2 = function(id) {
|
||
|
|
if (id.length<2) {
|
||
|
|
$("#rptDayLogList").html("");
|
||
|
|
}else{
|
||
|
|
$.post(ext.contextPath + '/report/RptDayLog/showRptDayLogListAudit.do', {rptdeptId: id}, function(data){
|
||
|
|
$("#rptDayLogList").html(data);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
var initTreeView1 = function() {
|
||
|
|
$.post(ext.contextPath + '/report/rptDeptSet/getTree.do', {unitId:unitId,urlType:'${Role_Generate}'} , function(data) {
|
||
|
|
var treeData = data.result;
|
||
|
|
// 1
|
||
|
|
$('#tree').treeview({data: treeData,levels: 3});
|
||
|
|
$('#tree').on('nodeSelected', function(event, treeData) {
|
||
|
|
editFun1(treeData.id);
|
||
|
|
//level为树形层级 1为设备大类 2为设备小类 3为部位
|
||
|
|
});
|
||
|
|
},'json');
|
||
|
|
$("#rptDayLogList").html("");
|
||
|
|
document.getElementById('button1').className = 'btn btn-primary btn-sm';
|
||
|
|
document.getElementById('button2').className = 'btn btn-default btn-sm';
|
||
|
|
};
|
||
|
|
|
||
|
|
var initTreeView2 = function() {
|
||
|
|
$.post(ext.contextPath + '/report/rptDeptSet/getTree.do', {unitId:unitId,urlType:'${Role_Check}'} , function(data) {
|
||
|
|
var treeData = data.result;
|
||
|
|
// 3
|
||
|
|
$('#tree').treeview({data: treeData,levels: 3});
|
||
|
|
$('#tree').on('nodeSelected', function(event, treeData) {
|
||
|
|
editFun2(treeData.id);
|
||
|
|
//level为树形层级 1为设备大类 2为设备小类 3为部位
|
||
|
|
});
|
||
|
|
},'json');
|
||
|
|
$("#rptDayLogList").html("");
|
||
|
|
document.getElementById('button1').className = 'btn btn-default btn-sm';
|
||
|
|
document.getElementById('button2').className = 'btn btn-primary btn-sm';
|
||
|
|
};
|
||
|
|
|
||
|
|
$(function() {
|
||
|
|
initTreeView1();
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body class="hold-transition ${cu.themeclass} sidebar-mini">
|
||
|
|
<div class="wrapper">
|
||
|
|
<!-- 引用top -->
|
||
|
|
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
||
|
|
<!-- 菜单栏 -->
|
||
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
||
|
|
<div class="content-wrapper">
|
||
|
|
<!-- Content Header (Page header) -->
|
||
|
|
<section class="content-header">
|
||
|
|
<div class="btn-group" style="width: 100%;">
|
||
|
|
<security:authorize buttonUrl="report/RptDayLog/showRptDayLogList.do">
|
||
|
|
<button type="button" id="button1" class="btn btn-primary btn-sm" onclick="initTreeView1();"><i
|
||
|
|
class="fa fa-file-text-o"></i>数据填报</button>
|
||
|
|
</security:authorize>
|
||
|
|
<security:authorize buttonUrl="report/RptDayLog/showRptDayLogListAudit.do">
|
||
|
|
<button type="button" id="button2" class="btn btn-default btn-sm" onclick="initTreeView2();"><i
|
||
|
|
class="fa fa-check-square"></i>数据审核</button>
|
||
|
|
</security:authorize>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<!-- Main content -->
|
||
|
|
<section class="content container-fluid" style="padding-top:2px;">
|
||
|
|
<!-- <div id="equipmentClassSubDiv"></div> -->
|
||
|
|
<div id="mainAlertdiv"></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>
|
||
|
|
|
||
|
|
<div class="box-body no-padding">
|
||
|
|
<div id="tree" style="height:700px;overflow:auto; "></div>
|
||
|
|
</div>
|
||
|
|
<!-- /.box-body -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-9" id="rptDayLogList" ></div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<!-- /.content -->
|
||
|
|
</div>
|
||
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
||
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|