All.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. props: {
  12. listLoading: Boolean
  13. },
  14. inject: ['parentData'],
  15. mixins,
  16. data() {
  17. return {
  18. searchData: []
  19. }
  20. },
  21. mounted () {
  22. this.getDef()
  23. },
  24. methods: {
  25. getDef (str) {
  26. this.searchData = [
  27. { label: '所属区域', key: 'area_type', type: 'select', options: this.$dictData.area_type},
  28. { label: '楼盘名称', key: 'estate_name' },
  29. ]
  30. },
  31. searchHandle() {
  32. const oldform = this.$refs.ruleForm.baseForm
  33. const newForm = { ...oldform }
  34. this.$emit('change', newForm)
  35. }
  36. }
  37. }
  38. </script>