camera-search.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="4" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. export default {
  7. name: 'CameraSearch',
  8. components: {},
  9. data() {
  10. return {}
  11. },
  12. computed: {
  13. seekList() {
  14. return [
  15. {
  16. label: '摄像机名称:',
  17. value: 'name',
  18. type: 'input',
  19. placeholder: '请输入'
  20. },
  21. {
  22. label: '设备品牌:',
  23. value: 'brandCode',
  24. type: 'DictSelection',
  25. dictName: '摄像头品牌'
  26. },
  27. {
  28. label: '摄像机类型:',
  29. value: 'classifyCode',
  30. type: 'DictSelection',
  31. dictName: '摄像机类型'
  32. },
  33. {
  34. label: '摄像机状态:',
  35. value: 'activityStatus',
  36. type: 'DictSelection',
  37. dictName: '设备管理状态'
  38. }
  39. ]
  40. }
  41. },
  42. methods: {
  43. /* 搜索 */
  44. search(e) {
  45. this.$emit('search', { ...e })
  46. }
  47. }
  48. }
  49. </script>