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

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

export default {
  name: 'WithdrawalRecordToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'nickname',
          label: '账号昵称'
        },
        {
          type: 'text',
          name: 'phonenumber',
          label: '账号手机号码',
          labelWidth: '100px'
        },
        {
          type: 'dateArray',
          name: 'date',
          label: '反馈时间',
          apiName: ['startTime', 'endTime']
        },
        {
          type: 'select',
          name: 'status',
          label: '状态',
          options: AUDITTYPE,
          format: val => val,
          defaultValue: 0
        }
      ]
    };
  }
};
</script>

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