<template>
  <CommonPieStatisticsCharts
    charts-title="特殊行李分析"
    :query-settings="querySettings"
    :categories="categories"
    :form-data="formData"
    :form-items="formItems"
  />
</template>

<script>
import CommonPieStatisticsCharts from '../components/newPieStatisticsChartscpsy.vue'

export default {
  name: 'AbnormalBaggageClassificationStatisticsCharts',
  components: { CommonPieStatisticsCharts },

  data() {
    return {
      querySettings: {
        serviceId: SERVICE_ID.specialbaggageanalysis,
      },
      categories: ['小动物', '机组', '枪支', '其它', '超规'],
      formData: {
        dateTime: [],
        airport: '',
      },
      formItems: [
        {
          prop: 'airport',
          inputType: 'select',
          placeholder: '航站',
          width: '150px',
          filterable: true,
          // multiple: true,
          queryId: SERVICE_ID.AirportIds,
          setKey: 'code3',
          requiredWarning: '请先选择航站',
          options: [],
        },
        {
          prop: 'dateTime',
          inputType: 'datePicker',
          width: '240px',
          requiredWarning: '请先选择统计时间范围',
        },
      ],
    }
  },
}
</script>
