callm 3 miesięcy temu
rodzic
commit
1ed719c477

+ 20 - 1
src/components/assemblyechart/bottom/bottomLeft2Chart/chart.vue

@@ -103,6 +103,7 @@ export default {
               fontWeight: "bold"
             },
           },
+
           {
             name: '不良',
             type: 'bar',
@@ -164,7 +165,22 @@ export default {
               fontSize:14,
               fontWeight: "bold"
             }
-          }
+          },
+          {
+            name: 'UPPH',
+            type: 'bar',
+            barWidth: 15,
+            emphasis: {
+              focus: 'series'
+            },
+            data:[],
+            label: {
+              show: true,
+              position: 'inside',
+              fontSize:14,
+              fontWeight: "bold"
+            },
+          },
         ]
       },
     };
@@ -210,6 +226,7 @@ export default {
             let series2 = new Array();
             let series3 = new Array();
             let series4 = new Array();
+            let series5 = new Array();
         var maxnumber=0;
         for (let index = 0; index < dataList.length; index++) {
           const element = dataList[index];
@@ -233,6 +250,7 @@ export default {
           if(element.uph>maxnumber){
             maxnumber= element.uph;
           }
+          series5.push(element.v_upph);
         }
         this.options.xAxis[0].data = xAxis0;
         this.options.series[0].data = series0;
@@ -240,6 +258,7 @@ export default {
         this.options.series[2].data = series2;
         this.options.series[3].data = series3;
         this.options.series[4].data = series4;
+        this.options.series[5].data = series5;
         this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
             /*let myChart = this.$children[0].chart;
             myChart.setOption({