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

<script>
import TYPE from '@/const/type';
import SCENETYPE from '@/const/sceneType';

export default {
  name: 'sceneListToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'name',
          label: '机构名称'
        },
        {
          type: 'text',
          name: 'area',
          label: '所在地区'
        },
        {
          type: 'select',
          name: 'status',
          label: '状态',
          options: TYPE,
          format: val => (val !== null && val !== '' ? !!val : null)
        },
        {
          type: 'select',
          name: 'type',
          label: '机构类型',
          options: SCENETYPE
        },
        {
          type: 'text',
          name: 'phonenumber',
          label: '办公号码'
        }
      ]
    };
  }
};
</script>

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