修改活跃ip统计样式,导出图片改为js

This commit is contained in:
zhanghongqing
2018-11-15 16:19:22 +08:00
parent 219fa11d88
commit c90d2e7cc2
4 changed files with 13 additions and 10 deletions

View File

@@ -706,7 +706,7 @@ function systemList(){
$(rs).each(function(i, itemObj) {
var os="";
if(itemObj.osType!=null){
if(typeof(itemObj.osType)!="undefined"&&itemObj.osType!=null){
os=(itemObj.osType).toString();
if(os.length>18){
os=os.substring(0,18);
@@ -822,7 +822,7 @@ function browserList() {
if(n>0){
$(rs).each(function(i, itemObj) {
var bs="";
if(itemObj.bsType!=null){
if(typeof(itemObj.bsType)!="undefined"&&itemObj.bsType!=null){
bs=(itemObj.bsType).toString();
if(bs.length>18){
bs=bs.substring(0,18);
@@ -890,7 +890,7 @@ function websiteList() {
if(n>0){
$(rs).each(function(i, itemObj) {
var web="";
if(itemObj.websiteService!=null){
if(typeof(itemObj.websiteService)!="undefined"&&itemObj.websiteService!=null){
web=(itemObj.websiteService).toString();
if(web.length>18){
web=web.substring(0,18);

View File

@@ -11,8 +11,8 @@
<div class="page-content">
<div class="theme-panel hidden-xs hidden-sm">
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/ipActiveList'"><spring:message code="refresh"/></button>
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/logChart'"><spring:message code="back"/></button>
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/ipActiveList'"><i class="fa fa-refresh"></i></button>
<button type="button" class="btn btn-default" onClick="javascript:window.location='${ctx}/dashboard/logChart'"><i class="fa fa-history"></i></button>
</div>
<h3 class="page-title">
<spring:message code="traffic_ipactive_hour_trend"></spring:message>
@@ -71,6 +71,8 @@
</div>
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/highcharts.js"></script>
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting.js"></script>
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/series-label.js"></script>
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
<%-- <script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/themes/grid.js"></script> --%>
<script type="text/javascript">
$(document).ready(function(){
@@ -92,8 +94,6 @@ function showIpActiveChart(rs){
var chart = Highcharts.chart('chart', {
exporting: {
allowHTML:true,
url:'saveAsImage',
filename:'Active-IP',
chartOptions: {
plotOptions: {
series: {

View File

@@ -10,6 +10,9 @@
td:hover{
cursor: pointer;
}
.Wdate {
width: 200px !important;
}
</style>
<script>
$(document).ready(function() {
@@ -238,7 +241,7 @@
<div class="input-group-btn">
<span class="selectpicker form-control" ><spring:message code="begin_date"/></span>
</div>
<input id="searchFoundStartTime" name="searchFoundStartTime" type="text" readonly="readonly" class="form-control input-medium Wdate "
<input id="searchFoundStartTime" name="searchFoundStartTime" type="text" readonly="readonly" class="form-control Wdate "
value="${log.searchFoundStartTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
</div>
</div>
@@ -247,7 +250,7 @@
<div class="input-group-btn">
<span class="selectpicker form-control" ><spring:message code="end_date"/></span>
</div>
<input id="searchFoundEndTime" name="searchFoundEndTime" type="text" readonly="readonly" class="form-control input-medium Wdate "
<input id="searchFoundEndTime" name="searchFoundEndTime" type="text" readonly="readonly" class="form-control Wdate "
value="${log.searchFoundEndTime}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
</div>
</div>

View File

@@ -218,7 +218,7 @@ p{
margin-bottom: 5px;
}
.data_content .data_main .main_left div .main_title{
width: 230px;
width: 260px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;