Ver código fonte

三四级调整

l1448442195@163.com 1 ano atrás
pai
commit
7907493f1d
3 arquivos alterados com 198 adições e 92 exclusões
  1. 2 2
      manpower/js/index2.js
  2. 99 46
      manpower/js/index3.js
  3. 97 44
      manpower/js/index4.js

+ 2 - 2
manpower/js/index2.js

@@ -540,7 +540,7 @@ let app = new Vue({
             data: dataL7[0],
           },
           {
-            name: '劳动生产率同比变化',
+            name: '全员劳动生产率同比变化',
             type: 'line',
             barWidth: 15,
             yAxisIndex: 1,
@@ -563,7 +563,7 @@ let app = new Vue({
         ],
       }
       option.title.text = '人数变化和全员劳动生产率变化率分析'
-      option.legend.data = ['人数变化', '劳动生产率同比变化']
+      option.legend.data = ['人数变化', '全员劳动生产率同比变化']
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',

+ 99 - 46
manpower/js/index3.js

@@ -539,7 +539,7 @@ let app = new Vue({
             data: dataL7[0],
           },
           {
-            name: '全员劳动生产率',
+            name: '全员劳动生产率同比变化',
             type: 'line',
             barWidth: 15,
             yAxisIndex: 1,
@@ -562,28 +562,46 @@ let app = new Vue({
         ],
       }
       option.title.text = '人数变化和全员劳动生产率变化率分析'
-      option.legend.data = ['人数变化', '全员劳动生产率']
+      option.legend.data = ['人数变化', '全员劳动生产率同比变化']
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',
-        formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
+        formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        type: 'value',
-        axisLine: {
-          show: false,
-        },
-        splitLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     initChartL8 () {
@@ -642,24 +660,42 @@ let app = new Vue({
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',
-        formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
+        formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        type: 'value',
-        axisLine: {
-          show: false,
-        },
-        splitLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     // 中间图表---------------------------------------------开始
@@ -1143,7 +1179,7 @@ let app = new Vue({
         },
         axisLabel: {
           show: true,
-          formatter: '{value} %',
+          formatter: '{value}',
           textStyle: {
             color: 'rgba(250,250,250,0.6)',
           },
@@ -1275,21 +1311,38 @@ let app = new Vue({
         trigger: 'axis',
         formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        splitLine: {
-          show: false,
-        },
-        axisLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          splitLine: {
+            show: false,
+          },
+          axisLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          splitLine: {
+            show: false,
+          },
+          axisLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     initChartR7 () {

+ 97 - 44
manpower/js/index4.js

@@ -539,7 +539,7 @@ let app = new Vue({
             data: dataL7[0],
           },
           {
-            name: '全员劳动生产率',
+            name: '全员劳动生产率同比变化',
             type: 'line',
             barWidth: 15,
             yAxisIndex: 1,
@@ -562,28 +562,46 @@ let app = new Vue({
         ],
       }
       option.title.text = '人数变化和全员劳动生产率变化率分析'
-      option.legend.data = ['人数变化', '全员劳动生产率']
+      option.legend.data = ['人数变化', '全员劳动生产率同比变化']
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',
         formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        type: 'value',
-        axisLine: {
-          show: false,
-        },
-        splitLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     initChartL8 () {
@@ -644,22 +662,40 @@ let app = new Vue({
         trigger: 'axis',
         formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        type: 'value',
-        axisLine: {
-          show: false,
-        },
-        splitLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          type: 'value',
+          axisLine: {
+            show: false,
+          },
+          splitLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     // 中间图表---------------------------------------------开始
@@ -751,7 +787,7 @@ let app = new Vue({
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',
-        formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
+        formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
       option.yAxis.push({
         type: 'value',
@@ -1276,21 +1312,38 @@ let app = new Vue({
         trigger: 'axis',
         formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
       }
-      option.yAxis.push({
-        splitLine: {
-          show: false,
-        },
-        axisLine: {
-          show: false,
-        },
-        axisLabel: {
-          show: true,
-          formatter: '{value} %',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
+      option.yAxis = [
+        {
+          splitLine: {
+            show: false,
+          },
+          axisLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
           },
         },
-      })
+        {
+          splitLine: {
+            show: false,
+          },
+          axisLine: {
+            show: false,
+          },
+          axisLabel: {
+            show: true,
+            formatter: '{value} %',
+            textStyle: {
+              color: 'rgba(250,250,250,0.6)',
+            },
+          },
+        }
+      ]
       myChart.setOption(option)
     },
     initChartR7 () {