| | |
| | | homePersonmyChart.dispose() |
| | | this.initPersonEcharts() |
| | | homePersonmyChart.off('click') |
| | | this.$nextTick(() => { |
| | | this.clickPeopleChart() |
| | | }) |
| | | |
| | | this.clickPeopleChart() |
| | | } else { |
| | | homePersonmyChart.dispose() |
| | | this.initkeyPersonEcharts() |
| | | homePersonmyChart.off('click') |
| | | this.$nextTick(() => { |
| | | this.clickkeyPersonChart() |
| | | }) |
| | | this.clickkeyPersonChart() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | keyPersonmyChart = this.$echarts.init(chartDom) |
| | | let dataArr = this.getKeyPersonCount(this.keyPersonSelectArr) |
| | | keyPersonmyChart.setOption(this.initkeyPersonOption(dataArr)) |
| | | |
| | | window.addEventListener("resize", function () { |
| | | homePersonmyChart.resize() |
| | | }) |
| | | }, |
| | | |
| | | initkeyPersonOption (dataArr) { |