Bläddra i källkod

二级页面接口重新核对

zhbyyy 2 år sedan
förälder
incheckning
08baf6f2b7

+ 0 - 1
manpowerPort/js/index.js

@@ -944,7 +944,6 @@ let app = new Vue({
       }
       option.yAxis.push({
         type: 'value',
-        max: 15,
         axisLine: {
           show: false,
         },

+ 13 - 11
manpowerPort/js/index2.js

@@ -423,18 +423,20 @@ let app = new Vue({
             }
           })
           this.generateEcharts()
-          this.timeCommon = setInterval(() => {
-            if (that.touch) {
-              if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
-                that.commonOption.dataZoom[0].endValue += 18
-                that.commonOption.dataZoom[0].startValue += 18
-              } else {
-                that.commonOption.dataZoom[0].endValue = 0
-                that.commonOption.dataZoom[0].startValue = 18
+          if (this.companyList.length > 18) {
+            this.timeCommon = setInterval(() => {
+              if (that.touch) {
+                if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
+                  that.commonOption.dataZoom[0].endValue += 18
+                  that.commonOption.dataZoom[0].startValue += 18
+                } else {
+                  that.commonOption.dataZoom[0].endValue = 0
+                  that.commonOption.dataZoom[0].startValue = 18
+                }
+                that.generateEcharts()
               }
-              that.generateEcharts()
-            }
-          }, 5000)
+            }, 15000)
+          }
           resolve(1)
         })
       });

+ 51 - 32
manpowerPort/js/index2JNKG.js

@@ -227,13 +227,17 @@ let app = new Vue({
           tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
           //各二级企业本部机构数
           dataL1[0] = []
+          dataL1[1] = []
+          dataL1[2] = []
           res.orgData.area1.card1.forEach(item => {
             dataL1[0].push(item['ZBPZ0010'])
+            dataL1[1].push(item['ZBPZ0088'])
+            dataL1[2].push(item['ZBPZ0089'])
           })
           // 各二级企业所属架构数
           dataL2[0] = []
           res.orgData.area1.card2.forEach(item => {
-            dataL2[0].push(item['ZBPZ0024'])
+            dataL2[0].push(item['ZBPZ0090'])
           })
 
           // 定职数
@@ -242,19 +246,20 @@ let app = new Vue({
           tipData.analysis[2] = res.orgData.area2.intAnalysis.map(item => item.analysis)
           //各二级企业本部中层管理人数
           dataL3[0] = []
-          res.orgData.area2.card1.forEach(item => {
-            dataL3[0].push(item['ZBPZ0091'])
-            dataL3[0].push(item['ZBPZ0091'])
-            dataL3[0].push(item['ZBPZ0091'])
+          dataL3[1] = []
+          res.orgData.area2.card2.forEach(item => {
+            dataL3[0].push(item['ZBPZ0031'])
+            dataL3[1].push(item['ZBPZ0049'])
           })
+          console.log(dataL3[0], dataL3[1])
           // 各二级企业管理人员数
           dataL4[1] = []
           dataL4[0] = []
           dataL4[2] = []
-          res.orgData.area2.card2.forEach(item => {
-            dataL4[1].push(item['ZBPZ0046'])
-            dataL4[0].push(item['ZBPZ0047'])
-            dataL4[2].push(item['ZBPZ0048'])
+          res.orgData.area2.card1.forEach(item => {
+            dataL4[1].push(item['ZBPZ0091'])
+            dataL4[0].push(item['ZBPZ0093'])
+            dataL4[2].push(item['ZBPZ0092'])
           })
 
           // 定员额
@@ -263,9 +268,11 @@ let app = new Vue({
           // 各二级企业总人数
           dataL5[0] = []
           dataL5[1] = []
+          dataL5[2] = []
           res.orgData.area3.card1.forEach(item => {
             dataL5[0].push(item['ZBPZ0006'])
             dataL5[1].push(item['ZBPZ0050'])
+            dataL5[2].push(item['ZBPZ0051'])
           })
           // 各二级企业本部员额数
           dataL6[0] = []
@@ -347,7 +354,7 @@ let app = new Vue({
           // 各二级企业全员绩效考核
           dataR7[0] = []
           res.orgData.area6.card1.forEach(item => {
-            dataR7[0].push(item['ZBPZ0024'])
+            dataR7[0].push(item['ZBPZ0066'])
           })
           // 各二级企业任期制契约化完成率
           dataR8[0] = []
@@ -435,7 +442,7 @@ let app = new Vue({
                 }
                 that.generateEcharts()
               }
-            }, 5000)
+            }, 15000)
           }
           resolve(1)
         })
@@ -542,7 +549,7 @@ let app = new Vue({
         ],
         series: [
           {
-            name: '六个二级企业本部机构数核定上限',
+            name: '二级企业本部机构数核定上限',
             type: 'line',
             // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
             smooth: true, //平滑曲线显示
@@ -618,7 +625,7 @@ let app = new Vue({
       }
 
       option.title.text = '本部机构数'
-      option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
+      option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '二级企业本部机构数核定上限']
       option.yAxis.push({
         splitLine: {
           show: false,
@@ -782,7 +789,6 @@ let app = new Vue({
       }
       option.yAxis.push({
         type: 'value',
-        max: 15,
         axisLine: {
           show: false,
         },
@@ -846,23 +852,16 @@ let app = new Vue({
             },
             itemStyle: {
               normal: {
-                color: params => {
-                  if (params.value > dataL4[2][params.dataIndex] || params.value > dataL4[0][params.dataIndex]) {
-
-                    return 'red'
-                  } else {
-                    return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-                      {
-                        offset: 0,
-                        color: '#6480f3',
-                      },
-                      {
-                        offset: 1,
-                        color: '#082550',
-                      },
-                    ])
-                  }
-                },
+                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                  {
+                    offset: 0,
+                    color: '#6480f3',
+                  },
+                  {
+                    offset: 1,
+                    color: '#082550',
+                  },
+                ]),
               },
             },
             data: dataL4[0],
@@ -984,6 +983,26 @@ let app = new Vue({
           }
         ],
         series: [
+          {
+            name: '六定改革前各二级中层管理人数',
+            type: 'bar',
+            barWidth: 15,
+            itemStyle: {
+              normal: {
+                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                  {
+                    offset: 0,
+                    color: '#6480f3',
+                  },
+                  {
+                    offset: 1,
+                    color: '#082550',
+                  },
+                ]),
+              },
+            },
+            data: dataL5[2],
+          },
           {
             name: '各二级企业总人数',
             type: 'bar',
@@ -1036,7 +1055,7 @@ let app = new Vue({
         ],
       }
       option.title.text = '各二级企业总人数'
-      option.legend.data = ['各二级企业总人数', '去年同期人数变化率']
+      option.legend.data = ['六定改革前各二级中层管理人数', '各二级企业总人数', '去年同期人数变化率']
       option.legend.show = true
       option.tooltip = {
         trigger: 'axis',

+ 14 - 0
manpowerPort/js/index3.js

@@ -460,6 +460,20 @@ let app = new Vue({
           //   }
           // })
           this.generateEcharts()
+          if (this.companyList.length > 18) {
+            this.timeCommon = setInterval(() => {
+              if (that.touch) {
+                if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
+                  that.commonOption.dataZoom[0].endValue += 18
+                  that.commonOption.dataZoom[0].startValue += 18
+                } else {
+                  that.commonOption.dataZoom[0].endValue = 0
+                  that.commonOption.dataZoom[0].startValue = 18
+                }
+                that.generateEcharts()
+              }
+            }, 15000)
+          }
           resolve(1)
         })
       });

+ 18 - 15
manpowerPort/js/index3MT.js

@@ -267,8 +267,12 @@ let app = new Vue({
           tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
           //各二级企业本部机构数
           dataL1[0] = []
+          dataL1[1] = []
+          dataL1[2] = []
           res.orgData.area1.card1.forEach(item => {
             dataL1[0].push(item['ZBPZ0010'])
+            dataL1[1].push(item['ZBPZ0088'])
+            dataL1[2].push(item['ZBPZ0089'])
           })
           // 各二级企业所属架构数
           dataL2[0] = []
@@ -282,15 +286,19 @@ let app = new Vue({
           tipData.analysis[2] = res.orgData.area2.intAnalysis.map(item => item.analysis)
           //各二级企业本部中层管理人数
           dataL3[0] = []
+          dataL3[1] = []
           res.orgData.area2.card1.forEach(item => {
-            dataL3[0].push(item['ZBPZ0091'])
+            dataL3[0].push(item['ZBPZ0031'])
+            dataL3[1].push(item['ZBPZ0049'])
           })
           // 各二级企业管理人员数
-          dataL4[0] = []
           dataL4[1] = []
+          dataL4[0] = []
+          dataL4[2] = []
           res.orgData.area2.card2.forEach(item => {
-            dataL4[0].push(item['ZBPZ0031'])
-            dataL4[1].push(item['ZBPZ0049'])
+            dataL4[1].push(item['ZBPZ0091'])
+            dataL4[0].push(item['ZBPZ0093'])
+            dataL4[2].push(item['ZBPZ0092'])
           })
 
           // 定员额
@@ -383,7 +391,7 @@ let app = new Vue({
           // 各二级企业全员绩效考核
           dataR7[0] = []
           res.orgData.area6.card1.forEach(item => {
-            dataR7[0].push(item['ZBPZ0024'])
+            dataR7[0].push(item['ZBPZ0066'])
           })
           // 各二级企业任期制契约化完成率
           dataR8[0] = []
@@ -470,7 +478,7 @@ let app = new Vue({
                 }
                 that.generateEcharts()
               }
-            }, 5000)
+            }, 15000)
           }
           resolve(1)
         })
@@ -528,7 +536,7 @@ let app = new Vue({
         ],
         series: [
           {
-            name: '六个二级企业本部机构数核定上限',
+            name: '各三级企业本部机构数核定上限',
             type: 'line',
             // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
             smooth: true, //平滑曲线显示
@@ -551,7 +559,7 @@ let app = new Vue({
             data: dataL1[2],
           },
           {
-            name: '六定改革前各级企业本部机构数',
+            name: '六定改革前各级企业本部机构数',
             type: 'bar',
             barWidth: 15,
             itemStyle: {
@@ -577,7 +585,7 @@ let app = new Vue({
             data: dataL1[0],
           },
           {
-            name: '当前各级企业本部机构数',
+            name: '当前各级企业本部机构数',
             type: 'bar',
             barWidth: 15,
             itemStyle: {
@@ -601,14 +609,10 @@ let app = new Vue({
             data: dataL1[1],
           },
         ],
-        // tooltip: {
-        //   trigger: 'item',
-        //   position: 'top'
-        // },
       }
 
       option.title.text = '本部机构数'
-      option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
+      option.legend.data = ['六定改革前各三级企业本部机构数', '当前各三级企业本部机构数', '各三级企业本部机构数核定上限']
       option.yAxis.push({
         splitLine: {
           show: false,
@@ -772,7 +776,6 @@ let app = new Vue({
       }
       option.yAxis.push({
         type: 'value',
-        max: 15,
         axisLine: {
           show: false,
         },

+ 14 - 0
manpowerPort/js/index4.js

@@ -433,6 +433,20 @@ let app = new Vue({
             }
           })
           this.generateEcharts()
+          if (this.companyList.length > 18) {
+            this.timeCommon = setInterval(() => {
+              if (that.touch) {
+                if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
+                  that.commonOption.dataZoom[0].endValue += 18
+                  that.commonOption.dataZoom[0].startValue += 18
+                } else {
+                  that.commonOption.dataZoom[0].endValue = 0
+                  that.commonOption.dataZoom[0].startValue = 18
+                }
+                that.generateEcharts()
+              }
+            }, 15000)
+          }
           resolve(1)
         })
       });

+ 18 - 11
manpowerPort/js/index4SY.js

@@ -240,8 +240,12 @@ let app = new Vue({
           tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
           //各二级企业本部机构数
           dataL1[0] = []
+          dataL1[1] = []
+          dataL1[2] = []
           res.orgData.area1.card1.forEach(item => {
             dataL1[0].push(item['ZBPZ0010'])
+            dataL1[1].push(item['ZBPZ0088'])
+            dataL1[2].push(item['ZBPZ0089'])
           })
           // 各二级企业所属架构数
           dataL2[0] = []
@@ -255,15 +259,19 @@ let app = new Vue({
           tipData.analysis[2] = res.orgData.area2.intAnalysis.map(item => item.analysis)
           //各二级企业本部中层管理人数
           dataL3[0] = []
+          dataL3[1] = []
           res.orgData.area2.card1.forEach(item => {
-            dataL3[0].push(item['ZBPZ0091'])
+            dataL3[0].push(item['ZBPZ0031'])
+            dataL3[1].push(item['ZBPZ0049'])
           })
           // 各二级企业管理人员数
-          dataL4[0] = []
           dataL4[1] = []
+          dataL4[0] = []
+          dataL4[2] = []
           res.orgData.area2.card2.forEach(item => {
-            dataL4[0].push(item['ZBPZ0031'])
-            dataL4[1].push(item['ZBPZ0049'])
+            dataL4[1].push(item['ZBPZ0091'])
+            dataL4[0].push(item['ZBPZ0093'])
+            dataL4[2].push(item['ZBPZ0092'])
           })
 
           // 定员额
@@ -355,7 +363,7 @@ let app = new Vue({
           // 各二级企业全员绩效考核
           dataR7[0] = []
           res.orgData.area6.card1.forEach(item => {
-            dataR7[0].push(item['ZBPZ0024'])
+            dataR7[0].push(item['ZBPZ0066'])
           })
           // 各二级企业任期制契约化完成率
           dataR8[0] = []
@@ -442,7 +450,7 @@ let app = new Vue({
                 }
                 that.generateEcharts()
               }
-            }, 5000)
+            }, 15000)
           }
           resolve(1)
         })
@@ -503,7 +511,7 @@ let app = new Vue({
         ],
         series: [
           {
-            name: '六个二级企业本部机构数核定上限',
+            name: '各四级企业本部机构数核定上限',
             type: 'line',
             // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
             smooth: true, //平滑曲线显示
@@ -526,7 +534,7 @@ let app = new Vue({
             data: dataL1[2],
           },
           {
-            name: '六定改革前各级企业本部机构数',
+            name: '六定改革前各级企业本部机构数',
             type: 'bar',
             barWidth: 15,
             itemStyle: {
@@ -546,7 +554,7 @@ let app = new Vue({
             data: dataL1[0],
           },
           {
-            name: '当前各级企业本部机构数',
+            name: '当前各级企业本部机构数',
             type: 'bar',
             barWidth: 15,
             itemStyle: {
@@ -579,7 +587,7 @@ let app = new Vue({
       }
 
       option.title.text = '本部机构数'
-      option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
+      option.legend.data = ['六定改革前各四级企业本部机构数', '当前各四级企业本部机构数', '各四级企业本部机构数核定上限']
       option.yAxis.push({
         splitLine: {
           show: false,
@@ -743,7 +751,6 @@ let app = new Vue({
       }
       option.yAxis.push({
         type: 'value',
-        max: 15,
         axisLine: {
           show: false,
         },