<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="4" @search="search"></seekPage>
</template>

<script>
export default {
  name: 'CameraSearch',
  components: {},
  data() {
    return {}
  },
  computed: {
    seekList() {
      return [
        {
          label: '摄像机名称：',
          value: 'name',
          type: 'input',
          placeholder: '请输入'
        },
        {
          label: '设备品牌：',
          value: 'brandCode',
          type: 'DictSelection',
          dictName: '摄像头品牌'
        },
        {
          label: '摄像机类型：',
          value: 'classifyCode',
          type: 'DictSelection',
          dictName: '摄像机类型'
        },
        {
          label: '摄像机状态：',
          value: 'activityStatus',
          type: 'DictSelection',
          dictName: '设备管理状态'
        }
      ]
    }
  },
  methods: {
    /* 搜索 */
    search(e) {
      this.$emit('search', { ...e })
    }
  }
}
</script>
