温红权 8 tahun lalu
induk
melakukan
0b93a335e8

+ 58 - 0
VisualInspection/js/statistics/road_manage_statistics.js

@@ -1149,6 +1149,21 @@ $(function() {
                     stack: '上月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '上月',
+                                textStyle: {
+                                    color: 'blue'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             } else {
                 var data_a = new Array();
@@ -1162,6 +1177,20 @@ $(function() {
                     stack: '上月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '上月',
+                                textStyle: {
+                                    color: 'blue'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             }
 
@@ -1178,6 +1207,20 @@ $(function() {
                     stack: '本月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '本月',
+                                textStyle: {
+                                    color: 'red'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             } else {
                 var data_a = new Array();
@@ -1191,6 +1234,21 @@ $(function() {
                     stack: '本月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '本月',
+                                textStyle: {
+                                    color: 'red'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             }
         }

+ 60 - 33
VisualInspection/js/statistics/total_company_statistics.js

@@ -997,9 +997,24 @@ $(function() {
                     name: dept,
                     type: 'bar',
                     stack: '上月',
-                    barWidth: 10,
+                    // barWidth: 10,
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '上月',
+                                textStyle: {
+                                    color: 'blue'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             } else {
                 var data_a = new Array();
@@ -1017,15 +1032,25 @@ $(function() {
                     name: dept,
                     type: 'bar',
                     stack: '上月',
-                    barWidth: 10,
+                    // barWidth: 10,
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '上月',
+                                textStyle: {
+                                    color: 'blue'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             }
-
-
-
-
             if (map_month_data.get(dept) != null) {
                 var data_a = new Array();
                 var d_t = map_month_data.get(dept);
@@ -1045,6 +1070,21 @@ $(function() {
                     stack: '本月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '本月',
+                                textStyle: {
+                                    color: 'red'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             } else {
                 var data_a = new Array();
@@ -1063,37 +1103,24 @@ $(function() {
                     stack: '本月',
                     data: data_a
                 }
+                if (j == array_all_deptname.length - 1) {
+                    d_tt['itemStyle'] = {
+                        normal: {
+                            label: {
+                                show: true,
+                                position: 'top',
+                                formatter: '本月',
+                                textStyle: {
+                                    color: 'red'
+                                }
+                            }
+                        }
+                    }
+                }
                 sdata.push(d_tt);
             }
         }
 
-        var d_s = new Array();
-        t_map_c.forEach(function(value, key) {
-            var d = {
-                name: "本月",
-                value: value,
-                xAxis: key,
-                yAxis: value
-            }
-            d_s.push(d);
-        });
-        t_map_p.forEach(function(value, key) {
-            console.log(key)
-            var d = {
-                name: "上月",
-                value: value,
-                xAxis: key == 0 ? -0.01 : (key - 0.3),
-                yAxis: value
-            }
-            d_s.push(d);
-        });
-
-
-
-        sdata[sdata.length - 1]['markPoint'] = {
-            data: d_s
-        }
-
 
         var namelist = new Array();
         for (var i = 0; i < array_all_name.length; i++) {

TEMPAT SAMPAH
VisualInspection_server/.DS_Store


File diff ditekan karena terlalu besar
+ 182 - 3
VisualInspection_server/visual/visual.log


TEMPAT SAMPAH
系统问题跟踪表_20170717.xlsx


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini