|
|
@@ -256,7 +256,6 @@ $(function(){
|
|
|
array_allStation.length=0;
|
|
|
if(data!='' && data.length!=0){
|
|
|
for(var i=0;i<data.length;i++){
|
|
|
- array_allStation.push(data[i].feeStationName.substr(0,data[i].feeStationName.length-3));
|
|
|
array_allStation_score.push((1000-(filter_handler(data[i].all_check_score,data[i].checked_num,data[i].people_num,0))));
|
|
|
}
|
|
|
}else{
|
|
|
@@ -267,6 +266,20 @@ $(function(){
|
|
|
min_station = 0;
|
|
|
else
|
|
|
min_station = eval("Math.min(" + array_allStation_score.toString() + ")").toFixed(0)-10;
|
|
|
+
|
|
|
+ // 给道管下的收费站排名次
|
|
|
+ var rank = new Array();
|
|
|
+ rank[0] = 1 ;
|
|
|
+ for(var i=1; i<array_allStation_score.length; i++){
|
|
|
+ if(array_allStation_score[i-1] == array_allStation_score[i] ){
|
|
|
+ rank[i] = rank[i-1];
|
|
|
+ }else{
|
|
|
+ rank[i] = i + 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(var i=0;i<array_allStation_score.length;i++){
|
|
|
+ array_allStation.push(data[i].feeStationName.substr(0,data[i].feeStationName.length-3)+"\n"+ (rank[i]));
|
|
|
+ }
|
|
|
}else if(type == 4){
|
|
|
array_score_order.length=0;
|
|
|
array_score_data.length=0;
|
|
|
@@ -288,7 +301,6 @@ $(function(){
|
|
|
array_get_score.length=0;
|
|
|
if(data!='' && data.length!=0){
|
|
|
for(var i=0;i<data.length;i++){
|
|
|
- array_score_last.push(data[i].user.truename+"\n"+"("+data[i].user.fee_station_name.substr(0,data[i].user.fee_station_name.length-3)+")");
|
|
|
array_get_score.push((1000-filter(data[i].all_check_score,data[i].checked_num,0)));
|
|
|
}
|
|
|
}else{
|
|
|
@@ -299,6 +311,21 @@ $(function(){
|
|
|
min_suff = 0;
|
|
|
else
|
|
|
min_suff = eval("Math.min(" + array_get_score.toString() + ")").toFixed(0)-10;
|
|
|
+
|
|
|
+ // 给道管中心人员考核得分后20名
|
|
|
+ var rank = new Array();
|
|
|
+ rank[0] = 1 ;
|
|
|
+ for(var i=1; i<array_get_score.length; i++){
|
|
|
+ if(array_get_score[i-1] == array_get_score[i] ){
|
|
|
+ rank[i] = rank[i-1];
|
|
|
+ }else{
|
|
|
+ rank[i] = i +1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(var i=0;i<array_get_score.length;i++){
|
|
|
+ array_score_last.push(data[i].user.truename+"\n"+"("+data[i].user.fee_station_name.substr(
|
|
|
+ 0,data[i].user.fee_station_name.length-3)+")"+"\n"+ (rank[i]));
|
|
|
+ }
|
|
|
}else if(type == 6){
|
|
|
array_check_type.length=0;
|
|
|
if(data.length != 0){
|
|
|
@@ -552,14 +579,14 @@ $(function(){
|
|
|
{
|
|
|
name:'访问来源',
|
|
|
type:'pie',
|
|
|
- radius : '65%',
|
|
|
+ radius : '55%',
|
|
|
center: ['50%', '50%'],
|
|
|
data:array_points,
|
|
|
itemStyle:{
|
|
|
normal:{
|
|
|
label:{
|
|
|
show: true,
|
|
|
- formatter: '{b} : {c}人 ({d}%)'
|
|
|
+ formatter: '{b} :\n{c}人 ({d}%)'
|
|
|
},
|
|
|
labelLine :{show:true}
|
|
|
}
|
|
|
@@ -595,12 +622,15 @@ $(function(){
|
|
|
}
|
|
|
},
|
|
|
grid:{
|
|
|
- width:"80%",
|
|
|
+ width:"75%",
|
|
|
},
|
|
|
calculable : true,
|
|
|
xAxis : [
|
|
|
{
|
|
|
type : 'category',
|
|
|
+ axisLabel :{
|
|
|
+ interval:0 // 显示x轴所有信息,不隐藏部分
|
|
|
+ },
|
|
|
data : array_allStation
|
|
|
}
|
|
|
],
|
|
|
@@ -844,7 +874,7 @@ $(function(){
|
|
|
normal:{
|
|
|
label:{
|
|
|
show: true,
|
|
|
- formatter: '{b} : {c}分 ({d}%)'
|
|
|
+ formatter: '{b} :\n{c}分 ({d}%)'
|
|
|
},
|
|
|
labelLine :{show:true}
|
|
|
}
|