<template>
  <toolbar-container :fields="fields" v-on="$listeners" />
</template>

<script>
import AUDITTYPE from '@/const/auditType';

export default {
  name: 'UploadManagementToolbar',

  data() {
    return {
      fields: [
        // TODO 上传者
        {
          type: 'ActivitySelect',
          name: 'title',
          label: '活动'
        },
        {
          type: 'dateArray',
          name: 'date',
          label: '上传时间',
          apiName: ['startTime', 'endTime']
        },
        {
          type: 'select',
          name: 'auditStatus',
          label: '状态',
          options: AUDITTYPE,
          format: val => val,
          defaultValue: 0
        }
      ]
    };
  }
};
</script>

<style type="scss" scoped></style>
