|
@@ -240,7 +240,7 @@ $(function(){
|
|
|
array_allStation.length=0;
|
|
array_allStation.length=0;
|
|
|
for(var i=0;i<data.length;i++){
|
|
for(var i=0;i<data.length;i++){
|
|
|
if(data!='' && data.length!=0){
|
|
if(data!='' && data.length!=0){
|
|
|
- array_allStation.push(data[i].feeStationName.substr(0,data[i].feeStationName.length-3));
|
|
|
|
|
|
|
+ //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))));
|
|
array_allStation_score.push((1000-(filter_handler(data[i].all_check_score,data[i].checked_num,data[i].people_num,0))));
|
|
|
}else{
|
|
}else{
|
|
|
array_allStation_score.length=0;
|
|
array_allStation_score.length=0;
|
|
@@ -251,6 +251,21 @@ $(function(){
|
|
|
min_allStation = 0;
|
|
min_allStation = 0;
|
|
|
else
|
|
else
|
|
|
min_allStation = eval("Math.min(" + array_allStation_score.toString() + ")").toFixed(0)-10;
|
|
min_allStation = 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;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //console.log(rank);
|
|
|
|
|
+ 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 == 5){
|
|
}else if(type == 5){
|
|
|
array_check_type = [];
|
|
array_check_type = [];
|
|
|
if(data.length != 0){
|
|
if(data.length != 0){
|
|
@@ -444,7 +459,7 @@ $(function(){
|
|
|
option = {
|
|
option = {
|
|
|
tooltip : {
|
|
tooltip : {
|
|
|
trigger: 'item',
|
|
trigger: 'item',
|
|
|
- formatter: "公司考核扣分占比 <br/>{b} : {d}%"
|
|
|
|
|
|
|
+ formatter: "公司考核扣分占比 <br/>{b} : {c} ({d}%)"
|
|
|
},
|
|
},
|
|
|
toolbox: {
|
|
toolbox: {
|
|
|
show : true,
|
|
show : true,
|
|
@@ -504,7 +519,10 @@ $(function(){
|
|
|
},
|
|
},
|
|
|
calculable : true,
|
|
calculable : true,
|
|
|
xAxis : [
|
|
xAxis : [
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ axisLabel: {
|
|
|
|
|
+ interval:0
|
|
|
|
|
+ } ,
|
|
|
type : 'category',
|
|
type : 'category',
|
|
|
data : array_road
|
|
data : array_road
|
|
|
}
|
|
}
|
|
@@ -599,7 +617,7 @@ $(function(){
|
|
|
option = {
|
|
option = {
|
|
|
tooltip : {
|
|
tooltip : {
|
|
|
trigger: 'item',
|
|
trigger: 'item',
|
|
|
- formatter: "温馨服务检查占比 <br/>{b} : {d}%"
|
|
|
|
|
|
|
+ formatter: "温馨服务检查占比 <br/>{b} : {c} ({d}%)"
|
|
|
},
|
|
},
|
|
|
toolbox: {
|
|
toolbox: {
|
|
|
show : true,
|
|
show : true,
|