fuliqi
2024-09-23 22d285974b8c6552b4cb5901d613e7d715d18182
src/views/screen/components/lineChart.vue
@@ -3,7 +3,6 @@
</template>
<script>
import * as echarts from "echarts";
export default {
  name: 'lineChart',
@@ -28,7 +27,8 @@
      const that = this
      let option = {
        grid: {
          width: '100%'
          left: '12%',
          right: '5%'
        },
        tooltip: {
          trigger: 'item',
@@ -38,7 +38,7 @@
            return str
          },
          textStyle: {
            fontSize: 12
            fontSize: 16
          }
        },
@@ -48,7 +48,8 @@
              top: 20,
              data: ['已处理工单数', '未处理工单数'],
              textStyle: {
            color: '#A0AEC0'
            color: '#A0AEC0',
            fontSize: 14
          }
        },
@@ -67,7 +68,7 @@
          },
          axisLabel: {
            color: '#A0AEC0',
                fontSize: 12,
            fontSize: 14,
                margin: 20,
                rotate: 30
          },
@@ -88,8 +89,8 @@
          },
          axisLabel: {
            color: '#A0AEC0',
                fontSize: 12,
                margin: 15
            fontSize: 14,
            margin: 5
          }
        },
        // 系列列表(多个折线图)
@@ -138,6 +139,7 @@
          }
        ]
      }
      that.myDrawLine = this.$echarts.init(this.$refs.lineChart)
      that.myDrawLine.setOption(option)
      window.addEventListener('resize', function () {