| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | public aqiChartOption = {}; |
| | | public aqiEchartsIntance; |
| | | public aqiChartLoading = false; |
| | |
| | | public meteChartOption = {}; |
| | | public meteEchartsIntance; |
| | | public meteChartLoading = false; |
| | | private onMeteChartInit(e): void { |
| | | public onMeteChartInit(e): void { |
| | | this.meteEchartsIntance = e; |
| | | } |
| | | private reloadAqiChart(): void { |
| | | // const timeList = this.grid.columns.map(item => item.text); |
| | | // const timeList = this.grid.columns.map(item => item.text); |
| | | if (!!this.aqiEchartsIntance) { |
| | | this.aqiChartOption = null; |
| | | this.aqiEchartsIntance.clear(); |
| | |
| | | // if ( this.chartSelectedIndex < this.grid.data.length ) { |
| | | // series = [{type: 'line', data: this.grid.data[this.chartSelectedIndex]}]; |
| | | // } |
| | | |
| | | |
| | | // this.initOpton(chartOption ,{ xAxis : [{data : []}]}); |
| | | // this.aqiChartOption = true; |
| | | this.initOpton(this.aqiChartOption ,{ xAxis : [{data : this.newArray(0, 24, null, '时')}]}); |
| | |
| | | salesTotal = 0; |
| | | changeSaleType() { |
| | | this.salesPieData = this.salesType === 'all' ? this.data.salesTypeData : ( |
| | | this.salesType === 'online' ? this.data.salesTypeDataOnline : this.data.salesTypeDataOffline |
| | | this.salesType === 'online' ? this.data.salesTypeDataOnline : ( |
| | | this.salesType === 'online2' ? this.data.salesTypeDataOnline2 : this.data.salesTypeDataOffline |
| | | ) |
| | | ); |
| | | if (this.salesPieData) this.salesTotal = this.salesPieData.reduce((pre, now) => now.y + pre, 0); |
| | | } |