国际化图表标题

This commit is contained in:
zhanghongqing
2018-07-17 10:09:34 +08:00
parent 7c19df6876
commit 70f01de1b0
4 changed files with 62 additions and 42 deletions

View File

@@ -964,3 +964,21 @@ target_ip_protect=Target IP Protect
ip_multiplex_pool_config=IP Reuse Addr Pool ip_multiplex_pool_config=IP Reuse Addr Pool
letter=Request Info letter=Request Info
show_more=Show More show_more=Show More
#===============dashboard begin===================================
dashboard=Dashboard
traffic_chart=Traffic Chart
os_type=OS Type
browser_type=Browser Type
traffic_protocol_chart=Traffic Protocol Chart
traffic_ipactive_chart=Traffic IpActive Chart
traffic_app_chart=Traffic App Chart
traffic_ua_list=Traffic UA List
traffic_ua_chart=Traffic UA Chart
ranking=Ranking
os=OS
browser=Browser
trend=Trend
traffic_website_list=Traffic Website List
traffic_website_type_chart=Traffic Website Type Chart
website=Website
#===============dashboard end===================================

View File

@@ -959,3 +959,21 @@ dest_ip_report=\u76EE\u7684\u56FD\u5BB6IP\u62A5\u8868
isp_report=\u8FD0\u8425\u5546\u5C40\u70B9\u62A5\u8868 isp_report=\u8FD0\u8425\u5546\u5C40\u70B9\u62A5\u8868
#=============about report=================== #=============about report===================
show_more=\u5C55\u793A\u66F4\u591A show_more=\u5C55\u793A\u66F4\u591A
#===============dashboard begin===================================
dashboard=\u7EDF\u8BA1\u56FE\u8868
traffic_chart=\u6D41\u91CF\u7EDF\u8BA1
os_type=\u64CD\u4F5C\u7CFB\u7EDF\u5206\u7C7B
browser_type=\u6D4F\u89C8\u5668\u5206\u7C7B
traffic_protocol_chart=\u534F\u8BAE\u7C7B\u578B\u7EDF\u8BA1\u56FE
traffic_ipactive_chart=\u6D3B\u8DC3IP\u7EDF\u8BA1\u56FE
traffic_app_chart=APP\u6D41\u91CF\u7EDF\u8BA1\u56FE
traffic_ua_list=\u7EC8\u7AEF\u7528\u6237\u7EDF\u8BA1\u5217\u8868
traffic_ua_chart=\u7EC8\u7AEF\u7528\u6237\u7EDF\u8BA1\u56FE
ranking=\u6392\u540D
os=\u7CFB\u7EDF
browser=\u6D4F\u89C8\u5668
trend=\u8D8B\u52BF
traffic_website_list=\u7F51\u7AD9\u6D41\u91CF\u7EDF\u8BA1\u5217\u8868
traffic_website_type_chart=\u7F51\u7AD9\u5206\u7C7B\u6D41\u91CF\u7EDF\u8BA1\u56FE
website=\u7F51\u7AD9\u540D\u79F0
#===============dashboard end===================================

View File

@@ -34,7 +34,7 @@
<div class="left_1"> <div class="left_1">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_1.png" alt=""> --> <!-- <img src="img/title_1.png" alt=""> -->
协议类型统计 <spring:message code="traffic_protocol_chart"/>
</div> </div>
<div id="chart_1" class="" style="width:100%;height: 400px;"></div> <div id="chart_1" class="" style="width:100%;height: 400px;"></div>
</div> </div>
@@ -44,7 +44,7 @@
<div class="center_text"> <div class="center_text">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_3.png" alt=""> --> <!-- <img src="img/title_3.png" alt=""> -->
活跃IP统计图 <spring:message code="traffic_ipactive_chart"/>
</div> </div>
<div id="chart_main" style="width:100%;height:400px;"></div> <div id="chart_main" style="width:100%;height:400px;"></div>
</div> </div>
@@ -53,7 +53,7 @@
<div class="right_1"> <div class="right_1">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_4.png" alt=""> --> <!-- <img src="img/title_4.png" alt=""> -->
APP流量分析 <spring:message code="traffic_app_chart"/>
</div> </div>
<!-- <div class="choice"> <!-- <div class="choice">
<label for="">类型:</label> <label for="">类型:</label>
@@ -71,22 +71,22 @@
<div class="bottom_1 fl"> <div class="bottom_1 fl">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_6.png" alt=""> --> <!-- <img src="img/title_6.png" alt=""> -->
终端用户TOP10 <spring:message code="traffic_ua_list"/>
</div> </div>
<div class="main_table"> <div class="main_table">
<table> <table>
<thead> <thead>
<tr> <tr>
<th>排名</th> <th><spring:message code="ranking"/></th>
<th> <th>
<div class="choice"> <div class="choice">
<select name="uaSelect" id="uaSelect"> <select name="uaSelect" id="uaSelect">
<option value="system">系统</option> <option value="system"><spring:message code="os"/></option>
<option value="browser">浏览器</option> <option value="browser"><spring:message code="browser"/></option>
</select> </select>
</div> </div>
</th> </th>
<th>数量</th> <th><spring:message code="trend"/></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbodyData1"> <tbody id="tbodyData1">
@@ -148,7 +148,7 @@
<div class="bottom_2 fl"> <div class="bottom_2 fl">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_6.png" alt=""> --> <!-- <img src="img/title_6.png" alt=""> -->
终端用户图 <spring:message code="traffic_ua_chart"/>
</div> </div>
<div class="main_table"> <div class="main_table">
<div id="chart_2" class="" style="width:100%;height: 400px;"></div> <div id="chart_2" class="" style="width:100%;height: 400px;"></div>
@@ -157,15 +157,15 @@
<div class="bottom_3 fl"> <div class="bottom_3 fl">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_6.png" alt=""> --> <!-- <img src="img/title_6.png" alt=""> -->
网站流量TOP10 <spring:message code="traffic_website_list"/>
</div> </div>
<div class="main_table"> <div class="main_table">
<table> <table>
<thead> <thead>
<tr> <tr>
<th>排名</th> <th><spring:message code="ranking"/></th>
<th>网站名称</th> <th><spring:message code="website"/></th>
<th>数量</th> <th><spring:message code="trend"/></th>
</tr> </tr>
</thead> </thead>
<tbody id="tbodyData2"> <tbody id="tbodyData2">
@@ -227,7 +227,7 @@
<div class="bottom_4 fr"> <div class="bottom_4 fr">
<div class="main_title"> <div class="main_title">
<!-- <img src="img/title_5.png" alt=""> --> <!-- <img src="img/title_5.png" alt=""> -->
网站流量分析 <spring:message code="traffic_website_type_chart"/>
</div> </div>
<div class="main_table"> <div class="main_table">
<div id="chart_4" class="" style="width:100%;height: 400px;"></div> <div id="chart_4" class="" style="width:100%;height: 400px;"></div>
@@ -332,10 +332,10 @@ function systemList(){
async:true, async:true,
beforeSend: function () { beforeSend: function () {
var msg = "重新加载数据,请稍候..."; var msg = "Reloading...";
var trLen = $("#tbodyData1 tr").length; var trLen = $("#tbodyData1 tr").length;
if(trLen<=0) { if(trLen<=0) {
msg = "数据加载中,请稍候..."; msg = "OnLoading...";
}else { }else {
$("#tbodyData1").html("") $("#tbodyData1").html("")
} }
@@ -409,10 +409,10 @@ function browserList() {
async:true, async:true,
beforeSend: function () { beforeSend: function () {
var msg = "重新加载数据,请稍候..."; var msg = "Reloading...";
var trLen = $("#tbodyData1 tr").length; var trLen = $("#tbodyData1 tr").length;
if(trLen<=0) { if(trLen<=0) {
msg = "onLoading..."; msg = "OnLoading...";
}else { }else {
$("#tbodyData1").html("") $("#tbodyData1").html("")
} }
@@ -455,10 +455,10 @@ function websiteList() {
async:true, async:true,
beforeSend: function () { beforeSend: function () {
var msg = "重新加载数据,请稍候..."; var msg = "ReLoading...";
var trLen = $("#tbodyData2 tr").length; var trLen = $("#tbodyData2 tr").length;
if(trLen<=0) { if(trLen<=0) {
msg = "数据加载中,请稍候..."; msg = "OnLoading...";
}else { }else {
$("#tbodyData2").html("") $("#tbodyData2").html("")
} }

View File

@@ -391,7 +391,7 @@ function echart_2(rs){
}, },
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'], colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'],
title: { title: {
text: '操作系统分类', text: '<spring:message code="os_type"/>',
style: {//设置字体颜色 style: {//设置字体颜色
color: '#fff', color: '#fff',
fontSize:'18px', fontSize:'18px',
@@ -498,7 +498,7 @@ function echart_5(rs){
}, },
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'], colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'],
title: { title: {
text: '浏览器分类列表', text: '<spring:message code="browser_type"/>',
style: {//设置字体颜色 style: {//设置字体颜色
color: '#fff', color: '#fff',
fontSize:'18px', fontSize:'18px',
@@ -596,15 +596,7 @@ function echart_4(rs){
colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'], colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'],
title: { title: {
text: '网站统计分析', text: null,
y:30,
overflow: 'justify',
style: {//设置字体颜色
color: '#fff',
fontSize:'18px',
fontFamily:'Microsoft YaHei'
},
}, },
plotOptions: { plotOptions: {
series: { series: {
@@ -617,7 +609,7 @@ function echart_4(rs){
pie:{ pie:{
point: { point: {
events: { events: {
mouseOver: function(e) { // 鼠标滑过时动态更新标题 mouseOver: function(e) {
this.slice(); this.slice();
}, },
// 鼠标移出时,收回突出显示 // 鼠标移出时,收回突出显示
@@ -694,15 +686,7 @@ function echart_6(rs){
colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'], colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#0035f9','#964CEC','#32B0ED','#95CEFF','#7278DD','#2DA9D8','#C66FE6'],
title: { title: {
text: '网站分类', text: null,
y:30,
overflow: 'justify',
style: {//设置字体颜色
color: '#fff',
fontSize:'18px',
fontFamily:'Microsoft YaHei'
},
}, },
plotOptions: { plotOptions: {
series: { series: {