<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>移交统计</title>
|
<link href="static/plugins/font-awesome/css/font-awesome.css"
|
rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css"
|
rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/styles/initialize.css"
|
type="text/css">
|
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/archives.css" type="text/css">
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript"
|
src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<script type="text/javascript"
|
src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
|
<script src="static/plugins/echarts/echarts.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/plugins/datagrid-cellediting.js"></script>
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
<style>
|
html, body {
|
height: 100%;
|
}
|
|
.table_statistical {
|
width: 100%;
|
height: 100%;
|
border: 0;
|
}
|
|
.table_statistical tr td {
|
width: 50%;
|
height: 100%;
|
}
|
|
.table_statistical_div {
|
width: 100%;
|
height: 100%;
|
padding-top: 3%;
|
}
|
</style>
|
</head>
|
|
<body class="pt-tree">
|
<div class="archives_statistics">
|
<h3 class="statistics_title">
|
【根据资料类别统计】
|
</h3>
|
<div class="statistics_txt">
|
<div class="title">统计结果</div>
|
<div class="statistics_scroll">
|
<div id="histogram_statistical" style="width: 98%;height:98%;"></div>
|
</div>
|
</div>
|
</div>
|
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
|
<script>
|
$(function () {
|
new ResizeScroll({
|
"id": ".statistics_scroll",
|
fun: function () {
|
var wh = $(window).height();
|
//重新计算iframe高度
|
$("#statisticsIframe").height(wh - 60 - 160);
|
return (wh - 60 - 124);
|
}
|
});
|
histogram()
|
})
|
|
function histogram() {
|
var myChart = echarts.init(document.getElementById('histogram_statistical'));
|
option = {
|
title: {
|
text: '资料统计',
|
left: 'center',
|
textStyle: {
|
color: '#ffffff'
|
}
|
},
|
tooltip: {},
|
|
grid: {
|
containLabel: true,
|
bottom: '0%'
|
},
|
toolbox: {
|
show: true,
|
orient: 'vertical',
|
left: 'right',
|
top: 'center',
|
feature: {
|
mark: {show: true},
|
restore: {show: true},
|
saveAsImage: {show: true}
|
}
|
},
|
visualMap: {
|
top: 10,
|
right: 10,
|
pieces: [{
|
gt: 0,
|
lte: 200,
|
color: '#85c021'
|
}, {
|
gt: 200,
|
lte: 500,
|
color: '#ffde33'
|
}, {
|
gt: 500,
|
lte: 800,
|
color: '#ff9933'
|
}, {
|
gt: 800,
|
lte: 1000,
|
color: '#cc0033'
|
}, {
|
gt: 1000,
|
color: '#660099'
|
}],
|
outOfRange: {
|
color: '#999'
|
}
|
},
|
xAxis: {
|
type: "category",
|
data: [],
|
axisLabel: {
|
interval: 0,
|
color: '#0a0a0a',
|
rotate: 50
|
}
|
},
|
yAxis: [{
|
type: "value",
|
axisLabel: {
|
color: '#0a0a0a',
|
}
|
}],
|
series: []
|
};
|
myChart.showLoading(); //loading动画
|
// 使用刚指定的配置项和数据显示图表。
|
|
$.ajax({
|
type: "post",
|
async: true,
|
url: "screen/getSearchConditionEchartsHistogram",
|
dataType: "json",
|
success: function (result) {
|
if (result) {
|
myChart.hideLoading();
|
myChart.setOption({
|
xAxis: {
|
data: result.xAxisData
|
},
|
series: result.seriesList
|
});
|
}
|
|
},
|
error: function (errorMsg) {
|
//请求失败时执行该函数
|
alert("请求数据失败!");
|
myChart.hideLoading();
|
}
|
});
|
myChart.setOption(option);
|
}
|
|
</script>
|
</body>
|
</html>
|