Explorar o código

调整二三级页面右侧展示

l1448442195@163.com hai 1 ano
pai
achega
3fb858cb4d
Modificáronse 3 ficheiros con 59 adicións e 216 borrados
  1. 0 40
      manpower/js/index2.js
  2. 38 84
      manpower/js/index3.js
  3. 21 92
      manpower/js/index4.js

+ 0 - 40
manpower/js/index2.js

@@ -979,7 +979,6 @@ let app = new Vue({
             name: '招聘需求公告累计招聘人次',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1009,13 +1008,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1050,7 +1042,6 @@ let app = new Vue({
             name: '录用结果公示累计公示人数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1080,13 +1071,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1121,7 +1105,6 @@ let app = new Vue({
             name: '2022年累计招聘数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1151,13 +1134,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1192,7 +1168,6 @@ let app = new Vue({
             name: '2022年累计招聘人数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1222,13 +1197,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1261,7 +1229,6 @@ let app = new Vue({
             name: '在岗职工平均薪酬',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1291,13 +1258,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },

+ 38 - 84
manpower/js/index3.js

@@ -1041,7 +1041,6 @@ let app = new Vue({
           {
             name: '录用结果公示累计公示人数',
             type: 'bar',
-            yAxisIndex: 1,
             barWidth: 15,
             itemStyle: {
               normal: {
@@ -1072,13 +1071,6 @@ let app = new Vue({
         splitLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1111,7 +1103,6 @@ let app = new Vue({
           },
           {
             name: '2022年累计招聘数',
-            yAxisIndex: 1,
             type: 'bar',
             barWidth: 15,
             itemStyle: {
@@ -1135,66 +1126,45 @@ let app = new Vue({
       option.title.text = '各三级企业年利润与招聘情况分析'
       option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
       option.legend.show = true
-      option.yAxis = [
-        {
-          max: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          min: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (-Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          splitLine: {
-            show: false,
-          },
-          axisLine: {
-            show: false,
-          },
-          axisLabel: {
-            show: true,
-            formatter: '{value}',
-            textStyle: {
-              color: 'rgba(250,250,250,0.6)',
-            },
-          },
+      option.yAxis.push({
+        splitLine: {
+          show: false,
         },
-        {
-          max: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          min: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (-Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          splitLine: {
-            show: false,
-          },
-          axisLine: {
-            show: false,
-          },
-          axisLabel: {
-            show: true,
-            formatter: '{value}',
-            textStyle: {
-              color: 'rgba(250,250,250,0.6)',
-            },
-          },
-        }
-      ]
+        axisLine: {
+          show: false,
+        },
+      })
+      // option.yAxis = [
+      //   {
+      //     max: function (val) {
+      //       if (Math.abs(val.max) > Math.abs(val.min)) {
+      //         return (Math.abs(val.max) * 1.2).toFixed(0)
+      //       } else {
+      //         return (Math.abs(val.min) * 1.2).toFixed(0)
+      //       }
+      //     },
+      //     min: function (val) {
+      //       if (Math.abs(val.max) > Math.abs(val.min)) {
+      //         return (-Math.abs(val.max) * 1.2).toFixed(0)
+      //       } else {
+      //         return (Math.abs(val.min) * 1.2).toFixed(0)
+      //       }
+      //     },
+      //     splitLine: {
+      //       show: false,
+      //     },
+      //     axisLine: {
+      //       show: false,
+      //     },
+      //     axisLabel: {
+      //       show: true,
+      //       formatter: '{value}',
+      //       textStyle: {
+      //         color: 'rgba(250,250,250,0.6)',
+      //       },
+      //     },
+      //   }
+      // ]
       myChart.setOption(option)
     },
     initChartR4 () {
@@ -1228,7 +1198,6 @@ let app = new Vue({
             name: '2022年累计招聘人数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1257,13 +1226,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1296,7 +1258,6 @@ let app = new Vue({
             name: '在岗职工平均薪酬',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1325,13 +1286,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },

+ 21 - 92
manpower/js/index4.js

@@ -978,7 +978,6 @@ let app = new Vue({
           {
             name: '招聘需求公告累计招聘人次',
             type: 'bar',
-            yAxisIndex: 1,
             barWidth: 15,
             itemStyle: {
               normal: {
@@ -1009,13 +1008,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1050,7 +1042,6 @@ let app = new Vue({
             name: '录用结果公示累计公示人数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1079,13 +1070,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1120,7 +1104,6 @@ let app = new Vue({
             name: '2022年累计招聘数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1142,66 +1125,28 @@ let app = new Vue({
       option.title.text = '各四级企业年利润与招聘情况分析'
       option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
       option.legend.show = true
-      option.yAxis = [
-        {
-          max: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          min: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (-Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          splitLine: {
-            show: false,
-          },
-          axisLine: {
-            show: false,
-          },
-          axisLabel: {
-            show: true,
-            formatter: '{value}',
-            textStyle: {
-              color: 'rgba(250,250,250,0.6)',
-            },
-          },
+      option.yAxis.push({
+        max: function (val) {
+          if (Math.abs(val.max) > Math.abs(val.min)) {
+            return (Math.abs(val.max) * 1.2).toFixed(0)
+          } else {
+            return (Math.abs(val.min) * 1.2).toFixed(0)
+          }
         },
-        {
-          max: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          min: function (val) {
-            if (Math.abs(val.max) > Math.abs(val.min)) {
-              return (-Math.abs(val.max) * 1.2).toFixed(0)
-            } else {
-              return (Math.abs(val.min) * 1.2).toFixed(0)
-            }
-          },
-          splitLine: {
-            show: false,
-          },
-          axisLine: {
-            show: false,
-          },
-          axisLabel: {
-            show: true,
-            formatter: '{value}',
-            textStyle: {
-              color: 'rgba(250,250,250,0.6)',
-            },
-          },
-        }
-      ]
+        min: function (val) {
+          if (Math.abs(val.max) > Math.abs(val.min)) {
+            return (-Math.abs(val.max) * 1.2).toFixed(0)
+          } else {
+            return (Math.abs(val.min) * 1.2).toFixed(0)
+          }
+        },
+        splitLine: {
+          show: false,
+        },
+        axisLine: {
+          show: false,
+        },
+      })
       myChart.setOption(option)
     },
     initChartR4 () {
@@ -1235,7 +1180,6 @@ let app = new Vue({
             name: '2022年累计招聘人数',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1264,13 +1208,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },
@@ -1303,7 +1240,6 @@ let app = new Vue({
             name: '去年同期在岗职工平均薪酬',
             type: 'bar',
             barWidth: 15,
-            yAxisIndex: 1,
             itemStyle: {
               normal: {
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -1332,13 +1268,6 @@ let app = new Vue({
         axisLine: {
           show: false,
         },
-        axisLabel: {
-          show: true,
-          formatter: '{value}',
-          textStyle: {
-            color: 'rgba(250,250,250,0.6)',
-          },
-        },
       })
       myChart.setOption(option)
     },