| | |
| | | <div> |
| | | <div class="block-title">油品类型分析</div> |
| | | <div style="display: flex"> |
| | | <div style="width: 70%; display: flex; align-items: center; justify-content: center; color: #999;"> |
| | | 油品类型销售占比 |
| | | </div> |
| | | <DataReLineChart |
| | | style="width: 70%" |
| | | domId="oilTypeLine" |
| | | ref="oilTypeLineRef" |
| | | :chartData="oilTypeLineData" |
| | | ></DataReLineChart> |
| | | <div style="width: 30%"> |
| | | <a-radio-group v-model="oilTypeSpecies" size="small" @change="oilTypeSpeciesChange"> |
| | | <a-radio-button :value="5"> 油品销量 </a-radio-button> |
| | |
| | | vehicleTypePieData: {}, //车型分析饼图数据 |
| | | fuelLevelLineData: {}, //加油位分析折线图数据 |
| | | fuelLevelPieData: {}, //加油位分析饼图数据 |
| | | oilTypeLineData: {}, //油品类型分析折线图数据 |
| | | oilTypePieData: {}, //油品类型分析饼图数据 |
| | | vehicleTypeLineData: {}, //车型分析折线图数据 |
| | | trendAnalysisType: 0, //趋势分析选择类型 |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | //获取油品类型柱状图数据 |
| | | getOilTypeLineData() { |
| | | const barType = this.oilTypeSpecies == 5 ? 3 : 4 |
| | | postAction('/jyz/dataTable/statBar', { |
| | | orgCode: this.selectTreeObj.orgCode, |
| | | startTime: this.startTime, |
| | | endTime: this.endTime, |
| | | type: barType, |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.oilTypeLineData = res.result |
| | | this.$nextTick(() => { |
| | | this.$refs.oilTypeLineRef.setChart() |
| | | }) |
| | | }) |
| | | }, |
| | | oilTypeSpeciesChange(e) { |
| | | this.oilTypeSpecies = e.target.value |
| | | this.getOilTypePieData() |
| | | this.getOilTypeLineData() |
| | | }, |
| | | //趋势分析类型切换 |
| | | trendAnalysisTypeChange(e) { |
| | |
| | | this.getVehicleStationPieData() |
| | | this.getFuelingStationPieData() |
| | | this.getOilTypePieData() |
| | | this.getOilTypeLineData() |
| | | this.getTrendAnalysis() |
| | | this.getOilFreqCompareData() |
| | | }, |
| | |
| | | this.getVehicleStationPieData() |
| | | this.getFuelingStationPieData() |
| | | this.getOilTypePieData() |
| | | this.getOilTypeLineData() |
| | | this.getTrendAnalysis() |
| | | }, |
| | | }, |