You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
430 lines
13 KiB
430 lines
13 KiB
<!DOCTYPE html>
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description"
|
|
content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
|
|
<meta name="author" content="Coderthemes">
|
|
|
|
|
|
<title>用户列表</title>
|
|
|
|
<!-- Base Css Files -->
|
|
<link href="${ctx }/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<!-- Font Icons -->
|
|
<link href="${ctx }/assets/font-awesome/css/font-awesome.min.css"
|
|
rel="stylesheet" />
|
|
<link href="${ctx }/assets/ionicon/css/ionicons.min.css"
|
|
rel="stylesheet" />
|
|
<link href="${ctx }/css/material-design-iconic-font.min.css"
|
|
rel="stylesheet">
|
|
|
|
<!-- animate css -->
|
|
<link href="${ctx }/css/animate.css" rel="stylesheet" />
|
|
|
|
<!-- Waves-effect -->
|
|
<link href="${ctx }/css/waves-effect.css" rel="stylesheet">
|
|
|
|
<!-- DataTables -->
|
|
<link href="${ctx }/assets/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="${ctx }/assets/select2/select2.css" rel="stylesheet" type="text/css" />
|
|
<link href="${ctx }/assets/jquery-multi-select/multi-select.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- Custom Files -->
|
|
<link href="${ctx }/css/helper.css" rel="stylesheet" type="text/css" />
|
|
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
|
|
<script src="${ctx }/js/jquery.min.js"></script>
|
|
<script src="${ctx }/js/jquery-1.8.3.min.js"></script>
|
|
<script src="${ctx }/js/echarts.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/css/style_lynew.css" />
|
|
<script src="${ctx }/js/modernizr.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
sjrd();//数据热度TOP10
|
|
sjjh();//数据交互平台访问量
|
|
fwlzs();//数据访问量走势
|
|
fkph();//数据访客偏好
|
|
});
|
|
//数据热度TOP10
|
|
function sjrd(){
|
|
var tdata = [];//数据
|
|
var tname = [];//名称
|
|
$.ajax({
|
|
url :"${ctx}/dcstatisindex/sjrdtop10.do",
|
|
type :"post",
|
|
dataType : "json",
|
|
success : function(result) {
|
|
if(result!=null&&result!=""){
|
|
for(var i=0;i<result.length;i++){
|
|
tdata.push(result[i].dataOut);
|
|
tname.push(result[i].iname);
|
|
}
|
|
sjrdchart(tdata,tname);
|
|
}else{
|
|
$("#bar_char01").html("<div class=\"zwsj\"><img src=\"${ctx}/bigscreen/images/zwsj.png\" width=\"100%\"></div>");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function sjrdchart(tdata,tname){
|
|
var myChart = echarts.init(document.getElementById('bar_char01'));
|
|
option = {
|
|
color: ['#3398DB'],
|
|
tooltip : {
|
|
trigger: 'axis',
|
|
axisPointer : { // 坐标轴指示器,坐标轴触发有效
|
|
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
}
|
|
},
|
|
grid: {x: 60, y: 31, x2: 30, borderColor: "#274456"},
|
|
xAxis : [{
|
|
type : 'category',
|
|
data : tname,
|
|
axisTick: {
|
|
alignWithLabel: true
|
|
},
|
|
axisLabel:{
|
|
rotate:21, //刻度旋转45度角
|
|
textStyle:{
|
|
color:"black",
|
|
fontSize:10
|
|
}
|
|
}
|
|
}],
|
|
yAxis : [{
|
|
name: '单位:条次',
|
|
type : 'value'
|
|
}],
|
|
series : [{
|
|
type:'bar',
|
|
barWidth: '35%',
|
|
data:tdata,
|
|
itemStyle: {
|
|
normal: {
|
|
label : {show: true,textStyle:{fontSize:15},position:'top'},
|
|
color: function(params) {
|
|
var colorList = [
|
|
'#C1232B','#B5C334','#FCCE10','#E87C25','#27727B',
|
|
'#FE8463','#9BCA63','#FAD860','#F3A43B','#60C0DD',
|
|
'#D7504B','#C6E579','#F4E001','#F0805A','#26C0C0'
|
|
];
|
|
return colorList[params.dataIndex]
|
|
}
|
|
}
|
|
}
|
|
}]
|
|
};
|
|
myChart.setOption(option);
|
|
}
|
|
//数据交互平台访问量
|
|
function sjjh(){
|
|
var totalout = [];//数据
|
|
var name = [];//名称
|
|
$.ajax({
|
|
url : "${ctx}/tcdcapp/sjjh.do",
|
|
type : "post",
|
|
dataType : "json",
|
|
success : function(result) {
|
|
if(result!=null&&result!=""){
|
|
for(var i=0;i<result.length;i++){
|
|
totalout.push(result[i].outcount);
|
|
name.push(result[i].cname);
|
|
}
|
|
sjjhchart(totalout,name);
|
|
}else{
|
|
$("#bar_char02").html("<div class=\"zwsj\"><img src=\"${ctx}/bigscreen/images/zwsj.png\" width=\"100%\"></div>");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function sjjhchart(totalout,name){
|
|
var myChart = echarts.init(document.getElementById('bar_char02'));
|
|
option = {
|
|
color: ['#3398DB'],
|
|
tooltip : {
|
|
trigger: 'axis',
|
|
axisPointer : { // 坐标轴指示器,坐标轴触发有效
|
|
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
}
|
|
},
|
|
grid: {x: 60, y: 31, x2: 30, borderColor: "#274456"},
|
|
xAxis : [{
|
|
type : 'category',
|
|
data : name,
|
|
axisTick: {
|
|
alignWithLabel: true
|
|
},
|
|
axisLabel:{
|
|
interval:0,
|
|
rotate:21, //刻度旋转45度角
|
|
textStyle:{
|
|
color:"black",
|
|
fontSize:10
|
|
}
|
|
}
|
|
}],
|
|
yAxis : [{
|
|
name: '单位:条次',
|
|
type : 'value'
|
|
}],
|
|
series : [{
|
|
type:'bar',
|
|
barWidth: '35%',
|
|
data:totalout,
|
|
itemStyle: {
|
|
normal: {
|
|
label : {show: true,textStyle:{fontSize:15},position:'top'},
|
|
color: function(params) {
|
|
var colorList = [
|
|
'#C1232B','#B5C334','#FCCE10','#E87C25','#27727B',
|
|
'#FE8463','#9BCA63','#FAD860','#F3A43B','#60C0DD',
|
|
'#D7504B','#C6E579','#F4E001','#F0805A','#26C0C0'
|
|
];
|
|
return colorList[params.dataIndex]
|
|
}
|
|
}
|
|
}
|
|
}]
|
|
};
|
|
myChart.setOption(option);
|
|
var str="";
|
|
for(var i=0;i<name.length;i++){
|
|
var a=i+1;
|
|
str+="<div><p>"+a+" "+name[i]+"</p></div>"
|
|
}
|
|
$("#bar_char03").html(str);
|
|
}
|
|
|
|
//数据访问量走势
|
|
function fwlzs(){
|
|
var totalall = [];//数据总条数
|
|
var months = [];//月份
|
|
$.ajax({
|
|
url : "${ctx}/dcstatisappmonth/fwlzs.do",
|
|
type : "post",
|
|
dataType : "json",
|
|
success : function(result) {
|
|
if(result!=null&&result!=""){
|
|
for(var i=0;i<result.length;i++){
|
|
totalall.push(result[i].sunnum);
|
|
months.push(result[i].months);
|
|
}
|
|
fwlzschart(totalall,months);
|
|
}else{
|
|
$("#bar_char04").html("<div class=\"zwsj\"><img src=\"${ctx}/bigscreen/images/zwsj.png\" width=\"100%\"></div>");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function fwlzschart(totalall,months){
|
|
var charts=document.getElementById('bar_char04');
|
|
var myChart = echarts.init(charts);
|
|
var option = {
|
|
title: {
|
|
//text: '数据访问量走势图'
|
|
},
|
|
tooltip: {
|
|
trigger: 'axis'
|
|
},
|
|
legend: {
|
|
data:[]
|
|
},
|
|
grid: {x: 60, y: 31, x2: 30, borderColor: "#274456"},
|
|
toolbox: {
|
|
feature: {
|
|
//saveAsImage: {}
|
|
}
|
|
},
|
|
xAxis: {
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
data: months,
|
|
axisLine: { lineStyle: { width: 0}},
|
|
axisLabel: {textStyle: { color: "#000000",fontFamily:'Microsoft YaHei',fontSize:16}},
|
|
splitLine: {lineStyle: { width: 1, color: "#274456"}},
|
|
axisTick: { show : true, length: 5, lineStyle : { color : '#274456'}}
|
|
},
|
|
yAxis: {
|
|
type: 'value',
|
|
name: '单位:条次',
|
|
nameTextStyle: {color: "#000000", fontSize: 16,fontFamily:'Microsoft YaHei'},
|
|
axisLine: { lineStyle: { width: 0}},
|
|
axisLabel: {textStyle: { color: "#000000", fontSize: 16}},
|
|
splitLine: {lineStyle: { color: "#274456"}},
|
|
axisTick: { show : true, length: 5, lineStyle : { color : '#274456'}},
|
|
splitNumber : 4
|
|
},
|
|
series: [
|
|
{
|
|
name:'访问量',
|
|
type:'line',
|
|
//stack: '总量',
|
|
data:totalall,
|
|
itemStyle : { normal: {label : {show: true,textStyle:{fontSize:16}},color:'#7FFF00',lineStyle:{color:'#7FFF00',width:3}}}
|
|
}
|
|
],
|
|
top:'0px'
|
|
};
|
|
|
|
myChart.setOption(option);
|
|
}
|
|
|
|
//数据访客偏好
|
|
function fkph(){
|
|
var iname=[];
|
|
var dataout=[];
|
|
var month=[];
|
|
$.ajax({
|
|
url : "${ctx}/tcdcstatismonth/fkph.do",
|
|
type : "post",
|
|
dataType : "json",
|
|
success : function(result) {
|
|
if(result!=null&&result!=""){
|
|
for(var i=0;i<result.length;i++){
|
|
iname.push(result[i].iname);
|
|
dataout.push(result[i].sunnum);
|
|
month.push(result[i].months);
|
|
}
|
|
fkphchart(iname,dataout,month);
|
|
}else{
|
|
$("#bar_char05").html("<div class=\"zwsj\"><img src=\"${ctx}/bigscreen/images/zwsj.png\" width=\"100%\"></div>");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
function fkphchart(iname,dataout,month){
|
|
var charts=document.getElementById('bar_char05');
|
|
var myChart = echarts.init(charts);
|
|
var option = {
|
|
title: {
|
|
//text: '2016年来涞源人数走势图'
|
|
},
|
|
tooltip: {
|
|
trigger: 'axis'
|
|
},
|
|
legend: {
|
|
data:[]
|
|
},
|
|
grid: {x: 60, y: 31, x2: 30, borderColor: "#274456"},
|
|
toolbox: {
|
|
feature: {
|
|
//saveAsImage: {}
|
|
}
|
|
},
|
|
xAxis: {
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
data: month,
|
|
axisLine: { lineStyle: { width: 0}},
|
|
axisLabel: {textStyle: { color: "#000000",fontFamily:'Microsoft YaHei',fontSize:16}},
|
|
splitLine: {lineStyle: { width: 1, color: "#274456"}},
|
|
axisTick: { show : true, length: 5, lineStyle : { color : '#274456'}}
|
|
},
|
|
yAxis: {
|
|
type: 'value',
|
|
name: '单位:条次',
|
|
nameTextStyle: {color: "#000000", fontSize: 16,fontFamily:'Microsoft YaHei'},
|
|
axisLine: { lineStyle: { width: 0}},
|
|
axisLabel: {textStyle: { color: "#000000", fontSize: 16}},
|
|
splitLine: {lineStyle: { color: "#274456"}},
|
|
axisTick: { show : true, length: 5, lineStyle : { color : '#274456'}},
|
|
splitNumber : 4
|
|
},
|
|
series: [
|
|
{
|
|
name:'访问量',
|
|
type:'line',
|
|
stack: '总量',
|
|
data:dataout,
|
|
itemStyle : { normal: {label : {show: true,textStyle:{fontSize:16}},color:'#DE2C27',lineStyle:{color:'#DE2C27',width:3}}}
|
|
}
|
|
],
|
|
top:'0px'
|
|
};
|
|
|
|
myChart.setOption(option);
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
* { /* font-size:12px; */
|
|
|
|
}
|
|
|
|
.dataTables_filter,
|
|
.dataTables_length,
|
|
.datatable-editable_filter {
|
|
margin-right:10px;
|
|
}
|
|
.dataTables_length{position:relative; top:-2px;}
|
|
|
|
.checkbox,.radio {
|
|
margin-top: 0px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.checkbox {
|
|
padding-left: 25px;
|
|
}
|
|
.select2-container .select2-choice {
|
|
padding:0px 5px;
|
|
}
|
|
.statesele {
|
|
font-weight: normal;
|
|
margin-bottom: 0;
|
|
}
|
|
.sta {
|
|
display:inline-block;
|
|
}
|
|
.form-lpsj{display:inline-block; width:110px; position:relative; top:-2px;}
|
|
</style>
|
|
</head>
|
|
|
|
|
|
|
|
<body style=" background:#fff;">
|
|
<div class="nr-nry">
|
|
|
|
<!--旅游资源-->
|
|
<div class="box">
|
|
<p class="zbt-bt">数据热度<span class="bold"> Top10</span></p>
|
|
<p class="zxbt-bt">(说明:根据数据访问量统计出前十项)</p>
|
|
<div class="echart-tb" style="height:340px;"><div style="height:340px;width:100%;float:left;" id="bar_char01"></div></div>
|
|
</div><!--旅游资源结束-->
|
|
|
|
<!--旅游资源-->
|
|
<div class="box">
|
|
<p class="zbt-bt">数据交互平台访问量<span class="bold"> Top10</span><span class="sm-text"> (最近30天)</span></p>
|
|
<p class="zxbt-bt">(说明:统计接入数据中心的的平台及访问次数)</p>
|
|
<div class="echart-tb" style="height:340px"><div style="height:340px;width:90%;float:left;" id="bar_char02"></div><div style="height:340px;width:10%;float:left;" id="bar_char03"> </div></div>
|
|
</div><!--旅游资源结束-->
|
|
|
|
<!--旅游资源-->
|
|
<div class="box">
|
|
<p class="zbt-bt">数据访问量走势图</p>
|
|
<p class="zxbt-bt">(说明:最近十二个月的所有的数据访问总量统计)</p>
|
|
<div class="echart-tb" style="height:340px" id="bar_char04"></div>
|
|
</div><!--旅游资源结束-->
|
|
|
|
<!--旅游资源-->
|
|
<div class="box">
|
|
<p class="zbt-bt">数据访客偏好<span class="sm-text"> (按时段)</span></p>
|
|
<p class="zxbt-bt">(说明:根据数据访问量统计出前十项)</p>
|
|
<div class="echart-tb" style="height:340px" id="bar_char05"></div>
|
|
</div><!--旅游资源结束-->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="footer-nry"><p>中国联合网络通信有限公司河北省分公司 ©技术支持</p></div>
|
|
|
|
</body>
|
|
</html> |