|
@@ -0,0 +1,129 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>项目报表</title>
|
|
|
|
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
|
|
+ <meta name="decorator" content="ani"/>
|
|
|
|
+ <%@ include file="/webpage/include/bootstraptable.jsp"%>
|
|
|
|
+ <%@ include file="/webpage/include/echarts.jsp"%>
|
|
|
|
+ <%--<%@include file="reportList.js" %>--%>
|
|
|
|
+ <style type="text/css">
|
|
|
|
+ #div1{
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+ <div class="wrapper wrapper-content">
|
|
|
|
+ <div class="panel panel-primary">
|
|
|
|
+ <div class="panel-heading">
|
|
|
|
+ <h3 class="panel-title">项目报表</h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="panel-body">
|
|
|
|
+ <div>
|
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
|
+ <li role="presentation"><a href="${ctx}/sg/report/">按施工单位</a></li>
|
|
|
|
+ <li role="presentation" class="active"><a href="#">按归口部门</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <!-- 表格 -->
|
|
|
|
+ <%--<table id="reportTable" data-toolbar="#toolbar"></table>--%>
|
|
|
|
+
|
|
|
|
+ <!-- context menu -->
|
|
|
|
+ <div id="div1">
|
|
|
|
+ <table class="table table-bordered">
|
|
|
|
+
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th> </th>
|
|
|
|
+ <c:forEach items="${list}" var="data" varStatus="index">
|
|
|
|
+ <th>${data.name}</th>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>完成</th>
|
|
|
|
+ <c:forEach items="${list}" var="data" varStatus="index">
|
|
|
|
+ <th>${data.finishCount}</th>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>未完成</th>
|
|
|
|
+ <c:forEach items="${list}" var="data" varStatus="index">
|
|
|
|
+ <th>${data.unfinishCount}</th>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <%--<table class="table table-bordered">--%>
|
|
|
|
+
|
|
|
|
+ <%--<thead>--%>
|
|
|
|
+ <%--<tr>--%>
|
|
|
|
+ <%--<th> </th>--%>
|
|
|
|
+ <%--<c:forEach items="${list1}" var="data" varStatus="index">--%>
|
|
|
|
+ <%--<th>${data.name}</th>--%>
|
|
|
|
+ <%--</c:forEach>--%>
|
|
|
|
+ <%--</tr>--%>
|
|
|
|
+ <%--<tr>--%>
|
|
|
|
+ <%--<th>1-7天</th>--%>
|
|
|
|
+ <%--<c:forEach items="${list1}" var="data" varStatus="index">--%>
|
|
|
|
+ <%--<th>${data.level1}</th>--%>
|
|
|
|
+ <%--</c:forEach>--%>
|
|
|
|
+ <%--</tr>--%>
|
|
|
|
+ <%--<tr>--%>
|
|
|
|
+ <%--<th>8-14天</th>--%>
|
|
|
|
+ <%--<c:forEach items="${list1}" var="data" varStatus="index">--%>
|
|
|
|
+ <%--<th>${data.level2}</th>--%>
|
|
|
|
+ <%--</c:forEach>--%>
|
|
|
|
+ <%--</tr>--%>
|
|
|
|
+ <%--<tr>--%>
|
|
|
|
+ <%--<th>15-21天</th>--%>
|
|
|
|
+ <%--<c:forEach items="${list1}" var="data" varStatus="index">--%>
|
|
|
|
+ <%--<th>${data.level3}</th>--%>
|
|
|
|
+ <%--</c:forEach>--%>
|
|
|
|
+ <%--</tr>--%>
|
|
|
|
+ <%--<tr>--%>
|
|
|
|
+ <%--<th>21天以上</th>--%>
|
|
|
|
+ <%--<c:forEach items="${list1}" var="data" varStatus="index">--%>
|
|
|
|
+ <%--<th>${data.level4}</th>--%>
|
|
|
|
+ <%--</c:forEach>--%>
|
|
|
|
+ <%--</tr>--%>
|
|
|
|
+
|
|
|
|
+ <%--</thead>--%>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <%--</table>--%>
|
|
|
|
+ <div class="btn-group" role="group" aria-label="...">
|
|
|
|
+ <div class="btn-group" role="group">
|
|
|
|
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
+ 项目状态
|
|
|
|
+ <span class="caret"></span>
|
|
|
|
+ </button>
|
|
|
|
+ <ul class="dropdown-menu">
|
|
|
|
+ <li><a href="${ctx}/sg/report/unitlist?status=1">完成</a></li>
|
|
|
|
+ <li><a href="${ctx}/sg/report/unitlist?status=0">未完成</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="main" style="width: 100%;height: 400px"></div>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ // 基于准备好的dom,初始化echarts实例4
|
|
|
|
+ var myChart = echarts.init(document.getElementById('main'));
|
|
|
|
+ window.onresize = myChart.resize;
|
|
|
|
+
|
|
|
|
+ $(function () {
|
|
|
|
+ jp.get("${ctx}${dataURL}", function (option) {
|
|
|
|
+ // 指定图表的配置项和数据
|
|
|
|
+ // 使用刚指定的配置项和数据显示图表。
|
|
|
|
+ myChart.setOption(option);
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ </script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</body>
|
|
|
|
+</html>
|