| | |
| | | this.myChart = this.$echarts.init(document.getElementById('myChart')) |
| | | let fileList1 = []; |
| | | this.fileList = fileList1; |
| | | this.initChart(); |
| | | //this.initChart(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | me.options = []; |
| | | var datas = data_.data.data; |
| | | datas.forEach(function(one) { |
| | | if (!me.value) { |
| | | me.value = one.id; |
| | | } |
| | | |
| | | var item = { |
| | | value: one.id, |
| | | label: one.name |
| | |
| | | me.options.push(item); |
| | | }); |
| | | } |
| | | me.selectChange_(); |
| | | }).catch(error => { |
| | | }) |
| | | }, |
| | |
| | | |
| | | }).then(data_ => { |
| | | if (data_.data.success) { |
| | | window.console.log(data_); |
| | | let result = data_.data.data; |
| | | me.initChart(result.option); |
| | | me.userList = result.users; |
| | |
| | | |
| | | }, |
| | | initChart(datas) { |
| | | |
| | | this.myChart.setOption({ |
| | | backgroundColor: '#FFF', |
| | | grid: { |