<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: 'select',
          name: 'status',
          label: '状态',
          options: AUDITTYPE,
          format: val => val,
          defaultValue: 0
        },
        {
          type: 'dateArray',
          name: 'date',
          label: '反馈日期',
          apiName: ['startTime', 'endTime']
        }
      ]
    };
  }
};
</script>

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