<template>
  <div class="corePersonnel">
    <head-form
      title="失信被执行人"
      :form-data="formData"
      :query-params="queryParams"
      :total="tableDataTotal"
      :isExcel="false"
      @handle-search="handleSearch"
    />

    <tables
      :index-fixed="true"
      :tableLoading="tableLoading"
      :tableData="tableData"
      :forData="forData"
      :tableDataTotal="tableDataTotal"
      :queryParams="queryParams"
      @handle-current-change="handleCurrentChange"
    />

  </div>
</template>

<script>
import {
  executedPage
} from '@/api/detail/party-a/riskInformation'
import mixin from '../mixins/mixin'
export default {
  name: 'Dishonesty',
  mixins: [mixin],
  components: {

  },
  props: ['companyId'],
  data() {
    return {
      queryParams: {
        cid: this.companyId,//5504335
        pageNum: 1,
        pageSize: 20
      },
      forData: [
        {label: '失信被执行人行为具体情形', prop: 'executionDesc', width: '508', fixed: true},
        {label: '立案日期', prop: 'date', width: '95'},
        {label: '履行情况', prop: 'executionStatus', width: '120'},
        {label: '立案文号', prop: 'caseNumber', width: '210'},
        {label: '执行依据文号', prop: 'docNumber', width: '360'},
        {label: '执行法院', prop: 'court', width: '280'}
      ],
      formData: [
        { type: 2, fieldName: 'time', value: '', placeholder: '执行时间',startTime: 'dateFrom',endTime: 'dateTo', options: []}
      ],
      //列表
      tableLoading:false,
      tableData:[],
      tableDataTotal:0,
    }
  },
  created() {
    this.handleQuery()
  },
  computed: {

  },
  methods: {
    handleQuery(params) {
      let data = params ? params : this.queryParams
      this.tableLoading = true
      executedPage(data).then(res => {
        this.tableData = res.rows
        this.tableDataTotal = res.total
        this.tableLoading = false
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.corePersonnel{
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  .query-box{
    margin: 10px 0 20px;
  }
}
</style>
