Lineup.vue 1004 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <base-form slot="content" ref="ruleForm" :data="searchData">
  3. <div slot="footer">
  4. <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
  5. <!-- <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出{{ this.$route.meta.title }}信息</el-button> -->
  6. </div>
  7. </base-form>
  8. </template>
  9. <script>
  10. export default {
  11. mixins: [],
  12. props: {
  13. listLoading: Boolean
  14. },
  15. inject: ['parentData'],
  16. data() {
  17. return {
  18. searchData: [
  19. { label: '置业经理名称', key: 'sale_name' },
  20. { label: '置业联系电话', key: 'sale_phone' },
  21. { label: '分类', key: 'sale_type', type: 'select', options: this.$dictData.sale_type},
  22. ]
  23. }
  24. },
  25. methods: {
  26. searchHandle() {
  27. const oldform = this.$refs.ruleForm.baseForm
  28. const newForm = { ...oldform }
  29. this.$emit('change', newForm)
  30. }
  31. }
  32. }
  33. </script>