Parcourir la source

Merge branch 'master' of git.xiaojukeji.com:jacklijiajia/thoth-frontend

reedliuqing_i il y a 5 ans
Parent
commit
348c603880
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/views/quality/qualityMeasurement.vue

+ 4 - 2
src/views/quality/qualityMeasurement.vue

@@ -684,6 +684,7 @@ export default {
               this.totalOneEchartsRate = echarts.init(document.getElementById('comparatorRateBetween'))
               // const totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
               this.totalOneEcharts.setOption({
+                color: ['#8dcaea'],
                 legend: {},
                 tooltip: {},
                 grid: { containLabel: true },
@@ -696,7 +697,7 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               this.totalOneEchartsMount.setOption({
@@ -761,6 +762,7 @@ export default {
             this.$nextTick(() => {
               this.totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
               this.totalOneEchartsOnline.setOption({
+                color: ['#8dcaea'],
                 legend: {},
                 tooltip: {},
                 grid: { containLabel: true },
@@ -773,7 +775,7 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               window.addEventListener('resize', () => {