<template>
  <CommonBarStatisticsCharts
    charts-title="航班量"
    :query-settings="querySettings"
    :custom-form-items="customFormItems"
  />
</template>

<script>
import CommonBarStatisticsCharts from '../../components/commonBarStatisticsCharts.vue'
export default {
  name: 'FlightStatisticsCharts',
  components: { CommonBarStatisticsCharts },
  data() {
    return {
      querySettings: {
        byArea: SERVICE_ID.byArea,
        byOther: SERVICE_ID.byOther,
        withBaggageByArea: SERVICE_ID.withBaggageByArea,
        withBaggageByOther: SERVICE_ID.withBaggageByOther
      },
      customFormItems: [
        {
          prop: 'flightType',
          inputType: 'select',
          placeholder: '航班属性',
          requiredWarning: '请先选择航班属性',
          clearable: true,
          options: [
            {
              value: '全部',
              label: '全部'
            },
            {
              value: '有行李',
              label: '有行李'
            }
          ]
        }
      ]
    }
  }
}
</script>
