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

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

export default {
  name: 'SceneVerifyToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'name',
          label: '机构名称'
        },
        {
          type: 'AddressSelect',
          name: 'area',
          label: '所在地区',
          defaultValue: [],
          format: val => val[2] || null
        },
        {
          type: 'select',
          name: 'status',
          label: '状态',
          options: AUDITTYPE,
          format: val => val
        },
        {
          type: 'select',
          name: 'type',
          label: '机构类型',
          options: SCENETYPE
        },
        {
          type: 'text',
          name: 'personPhonenumber',
          label: '手机号码'
        }
      ]
    };
  }
};
</script>

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