wangjianguo 8 年 前
コミット
c7463fc68a

+ 2 - 2
VisualInspection/js/statistics/road_manage_statistics.js

@@ -503,7 +503,7 @@ $(function(){
 			option = {
 				tooltip : {
 					trigger: 'item',
-					formatter:  "道管中心考核扣分占比 <br/>{b} : {d}%"
+					formatter:  "道管中心考核扣分占比 <br/>{b} : {c} ({d}%)"
 				},
 				toolbox: {
 					show : true,
@@ -732,7 +732,7 @@ $(function(){
 			option = {
 				tooltip : {
 					trigger: 'item',
-					formatter:  "温馨服务检查占比 <br/>{b} : {d}%"
+					formatter:  "温馨服务检查占比 <br/>{b} : {c} ({d}%)"
 				},
 				toolbox: {
 					show : true,

+ 5 - 5
VisualInspection/js/statistics/toll_station_statistics.js

@@ -630,7 +630,7 @@ $(function(){
 			option = {
 				tooltip : {
 					trigger: 'item',
-					formatter:  "收费站考核扣分占比 <br/>{b} : {d}%"
+					formatter:  "收费站考核扣分占比 <br/>{b} : {c} ({d}%)"
 				},
 				toolbox: {
 					show : true,
@@ -789,9 +789,9 @@ $(function(){
 				calculable : true,
 				xAxis : [
 					{
-							axisLabel: {  
-				interval:0
-				}  ,
+						axisLabel: {  
+						interval:0
+						}  ,
 						type : 'category',
 						data : array_score_order
 					}
@@ -836,7 +836,7 @@ $(function(){
 			option = {
 				tooltip : {
 					trigger: 'item',
-					formatter:  "温馨服务检查占比 <br/>{b} : {d}%"
+					formatter:  "温馨服务检查占比 <br/>{b} : {c} ({d}%)"
 				},
 				toolbox: {
 					show : true,

+ 22 - 4
VisualInspection/js/statistics/total_company_statistics.js

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