| | |
| | | }, |
| | | |
| | | 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 = { |
| | | grid: { |
| | | left: '12%', |
| | | left: '15%', |
| | | right: '5%' |
| | | }, |
| | | tooltip: { |
| | |
| | | return str |
| | | }, |
| | | textStyle: { |
| | | fontSize: 16 |
| | | fontSize: this.setFontSize(16) |
| | | } |
| | | }, |
| | | |
| | |
| | | data: ['已处理工单数', '未处理工单数'], |
| | | textStyle: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14 |
| | | fontSize: this.setFontSize(14) |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14, |
| | | fontSize: this.setFontSize(14), |
| | | margin: 20, |
| | | rotate: 30 |
| | | }, |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14, |
| | | fontSize: this.setFontSize(14), |
| | | margin: 5 |
| | | } |
| | | }, |