Index.vue 923 B

12345678910111213141516171819202122232425262728293031
  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: 'remark' },
  19. { label: '分类', key: 'activity_type', type: 'select', options: this.$dictData.activity_type},
  20. ]
  21. }
  22. },
  23. methods: {
  24. searchHandle() {
  25. const oldform = this.$refs.ruleForm.baseForm
  26. const newForm = { ...oldform }
  27. this.$emit('change', newForm)
  28. }
  29. }
  30. }
  31. </script>