src/views/screen/components/lineChart.vue
@@ -23,6 +23,12 @@
  },
  methods: {
    setFontSize(res){
      const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
      if (!clientWidth) return;
      let fontSize = clientWidth / 1920;
      return res*fontSize;
    },
    initDrawLine() {
      const that = this
      let option = {
@@ -38,7 +44,7 @@
            return str
          },
          textStyle: {
            fontSize: 16
            fontSize: this.setFontSize(16)
          }
        },
@@ -49,7 +55,7 @@
          data: ['已处理工单数', '未处理工单数'],
          textStyle: {
            color: '#A0AEC0',
            fontSize: 14
            fontSize: this.setFontSize(14)
          }
        },
@@ -68,7 +74,7 @@
          },
          axisLabel: {
            color: '#A0AEC0',
            fontSize: 14,
            fontSize: this.setFontSize(14),
            margin: 20,
            rotate: 30
          },
@@ -89,7 +95,7 @@
          },
          axisLabel: {
            color: '#A0AEC0',
            fontSize: 14,
            fontSize: this.setFontSize(14),
            margin: 5
          }
        },