<template>
  <CommonPieStatisticsCharts
    charts-title="赔偿行李量分类"
    :query-settings="querySettings"
    :custom-form-items="customFormItems"
    :categories="categories"
    only-airline
  />
</template>

<script>
import CommonPieStatisticsCharts from '../../components/commonPieStatisticsCharts.vue'
import onlyAirline from '../../mixins/onlyAirline'

export default {
  name: 'CompensationClassificationStatisticsCharts',
  components: { CommonPieStatisticsCharts },
  mixins: [onlyAirline],

  data() {
    return {
      querySettings: {
        // byArea: SERVICE_ID.compensationClassificationByArea,
        // byOther: SERVICE_ID.compensationClassificationByOther,
        all: SERVICE_ID.compensationBaggageClassificationAll,
        byAirline: SERVICE_ID.compensationBaggageClassificationByAirline,
        categoryKey: 'costType',
        seriesKey: 'nums'
      },
      categories: ['F', 'D', 'A', 'X', 'G'],
    }
  }
}
</script>
