<template>
  <CommonPieStatisticsCharts
    charts-title="赔偿金额分类"
    :query-settings="querySettings"
    :custom-form-items="customFormItems"
    :categories="categories"
    pie-title="总金额"
    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.compensationClassificationAll,
        byAirline: SERVICE_ID.compensationClassificationByAirline,
        categoryKey: 'costType',
        seriesKey: 'amount'
      },
      categories: ['F', 'D', 'A', 'X', 'G'],
    }
  }
}
</script>
