search.vue 648 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {
  9. // 表格列配置
  10. seekList: [
  11. {
  12. label: '名称:',
  13. value: 'pointName',
  14. type: 'input',
  15. placeholder: '请输入'
  16. },
  17. {
  18. label: '编码:',
  19. value: 'pointCode',
  20. type: 'input',
  21. placeholder: '请输入'
  22. }
  23. ]
  24. };
  25. },
  26. computed: {
  27. },
  28. methods: {
  29. /* 搜索 */
  30. search(e) {
  31. this.$emit('search', { ...e });
  32. },
  33. }
  34. };
  35. </script>