<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
  import { reviewStatusSelect,StateType } from '@/enum/dict';
  export default {
    data() {
      return {};
    },
    computed: {
      // 表格列配置
      seekList() {
        return [
          {
            label: '关键字：',
            value: 'searchName',
            type: 'input',
            placeholder: '编码/名称/部门/姓名'
          },
          {
            label: '编码：',
            value: 'code',
            type: 'input',
            placeholder: '请输入',
          },
          {
            label: '名称：',
            value: 'name',
            type: 'input',
            placeholder: '请输入'
          },

          {
            label: '部门：',
            value: 'assessmentObject',
            width: 380,
            type: 'input',
            placeholder: '请输入',
          },
          {
            label: '姓名：',
            value: 'userName',
            width: 380,
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '创建时间：',
            value: 'createTime',
            type: 'date',
            dateType: 'datetimerange',
            placeholder: '',
            width: 380,
            valueAr: ['createTimeStart', 'createTimeEnd']
          },

          {
            label: '审核状态：',
            value: 'reviewStatus',
            width: 380,
            type: 'select',
            planList: reviewStatusSelect,
            placeholder: '请选择审核状态'
          },
        ];
      }
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', {
          ...e
        });
      }
    }
  };
</script>
