Browse Source

调整车间进度看板

callm 7 months ago
parent
commit
8e3edd0571

+ 8 - 1
src/components/comparechart/leftdown1Chart/chart.vue

@@ -115,7 +115,14 @@ export default {
             },
             emphasis: {
               focus: 'series'
-            }
+            },
+            label: {
+              show: true,
+              position: 'top',
+              fontSize:14,
+              fontWeight: "bold",
+              color:'#fff'
+            },
           }
         ]
       },

+ 11 - 16
src/components/comparechart/leftup1Chart/chart.vue

@@ -138,11 +138,6 @@ export default {
               normal: {
                 barBorderRadius: 6,
                 color:  "rgba(156,107,211,0.8)"
-                /* color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
-                   { offset: 0, color: "rgba(156,107,211,0.8)" },
-                   { offset: 0.2, color: "rgba(156,107,211,0.5)" },
-                   { offset: 1, color: "rgba(156,107,211,0.2)" }
-                 ])*/
               }
             },
             emphasis: {
@@ -159,11 +154,13 @@ export default {
           {
             name: '良率%',
             type: 'line',
-            symbolSize: 8,
-            barWidth: 15,
             data:[],
-            emphasis: {
-              focus: 'series'
+            yAxisIndex: 1,
+            symbolSize: 8,
+            tooltip: {
+              valueFormatter: function (value) {
+                return value + '%';
+              }
             },
             lineStyle: {
               width: 4
@@ -172,21 +169,19 @@ export default {
               normal: {
                 barBorderRadius: 6,
                 color:  "rgb(174,228,187)"
-                /* color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
-                   { offset: 0, color: "rgba(156,107,211,0.8)" },
-                   { offset: 0.2, color: "rgba(156,107,211,0.5)" },
-                   { offset: 1, color: "rgba(156,107,211,0.2)" }
-                 ])*/
               }
             },
+            emphasis: {
+              focus: 'series'
+            },
             label: {
               show: true,
               position: 'top',
               fontSize:14,
               fontWeight: "bold",
               color:'#fff'
-            }
-          }
+            },
+          },
         ]
       },
     };