Răsfoiți Sursa

质量指标调整

tianxinyu 4 zile în urmă
părinte
comite
634ba03e6d

+ 8 - 1
src/views/business/qualityTarget/components/muBiaoChart.vue

@@ -102,8 +102,15 @@ export default {
                   
                   
                   option.title.textStyle.fontSize = this.fontSize
                   option.title.textStyle.fontSize = this.fontSize
                   option.xAxis.data = xData
                   option.xAxis.data = xData
-                  option.series[0].data = yData
+                  let type = item.series[0]['type']
+                  option.series[0].data = yData.map((item, index) => ({
+                    value: item,
+                    label: {
+                      position: (index % 2 == 0 || type == 'bar') ? 'top' : 'bottom'
+                    }
+                  }))
                   option.series[0].label.show = true
                   option.series[0].label.show = true
+                  // option.series[0].label.rotate = '45'
                   option.series[0].type = item.series[0]['type']
                   option.series[0].type = item.series[0]['type']
                   option.series[0].name = item.title
                   option.series[0].name = item.title
                   option.series[0].markLine = item.series[0].markLine
                   option.series[0].markLine = item.series[0].markLine

+ 3 - 3
src/views/business/qualityTarget/index.vue

@@ -419,8 +419,8 @@ export default {
             .label{
             .label{
               font-size: 16px;
               font-size: 16px;
               position: absolute;
               position: absolute;
-              right: 88%;
-              margin-top: 2.6%;
+              right: 88.5%;
+              margin-top: 2.9%;
             }
             }
             .year, .back, .parse {
             .year, .back, .parse {
                 width: 8%;
                 width: 8%;
@@ -429,7 +429,7 @@ export default {
                 height: 2.825rem;
                 height: 2.825rem;
                 line-height: 2.825rem;
                 line-height: 2.825rem;
                 text-align: center;
                 text-align: center;
-                margin-top: 2%;
+                margin-top: 2.2%;
                 flex: 1;
                 flex: 1;
                 position: absolute;
                 position: absolute;
                 color: #ffffff;
                 color: #ffffff;