<template>
  <div :class="$style.searchform">
    <sd-task-list
      ref="tasklist"
      :module-id="this.$route.query.moduleId"
      :form-list-id="this.$route.query.formListId"
      :custom-values="customValues"
      :filter="Expressions"
      :daochushow="true"
      @fnexport="fndc"
    >
  </sd-task-list>
  </div>
</template>

<script>
import sdTaskList from '../../../../src/application-manage/sd-task-list.vue'
import components from './_import-components/law-dispute-search-import'

export default {
  name: 'LawDisputeSearch',
  metaInfo: {
    title: '纠纷查询',
  },
  components: {
    ...components,
    sdTaskList,
  },
  props: {
    // 搜索条件
    customValues: {
      type: Object,
      default: () => {
        return {}
      },
    },
    Expressions: {
      type: Array,
      default: () => {
        return []
      },
    },
  },
  data() {
    return {}
  },
  methods: {
    fndc() {
      this.$refs.tasklist.$refs[0][0].exportExcel()
    },
  },
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
.searchform {
  :global .ant-btn-primary:nth-of-type(2) {
    display: none;
  }
  :global .sd-has-table.ant-tabs .header_sd-data-table_common {
    display: none;
  }
  :global .ant-space-align-center > div:first-child {
    display: none;
  }
}
</style>
