Cooperate.vue 1.0 KB

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. props: {
  12. listLoading: Boolean
  13. },
  14. inject: ['parentData'],
  15. data() {
  16. return {
  17. searchData: [
  18. { label: '楼盘名称', key: 'estate_id', type: 'selectRemote', changeHandle: this.ltValHandle,
  19. remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
  20. },
  21. { label: '备注', key: 'remark' },
  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>