<template>
  <div class="corePersonnel">
    <head-form
      title="法院公告"
      :form-data="formData"
      :query-params="queryParams"
      :total="tableDataTotal"
      :isExcel="true"
      @handle-search="handleSearch"
    />

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

  </div>
</template>

<script>
import mixin from '../mixins/mixin'
export default {
  name: 'CourtNotice',
  mixins: [mixin],
  components: {

  },
  data() {
    return {
      queryParams: {
        cid: 6034,
        pageNum: 1,
        pageSize: 10
      },
      forData: [
        {label: '案由', prop: 'enterpriseName'},
        {label: '公告时间', prop: 'level', width: '95'},
        {label: '当事人', prop: 'capital', width: '240'},
        {label: '案号', prop: 'cgrdm', width: '210'},
        {label: '公告类型', prop: 'cgrssqy', width: '210'},
        {label: '公告法院', prop: 'dataId', width: '280'}
      ],
      formData: [
        { type: 1, fieldName: 'penalizeReasonType', value: '', placeholder: '公告类型',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        },
        { type: 1, fieldName: 'penalizeReasonType', value: '', placeholder: '案由',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        },
        { type: 1, fieldName: 'penalizeReasonType', value: '', placeholder: '身份',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        },
        { type: 2, fieldName: 'time', value: '', placeholder: '',startTime: 'dateFrom',endTime: 'dateTo', options: []},
        { type: 3, fieldName: 'keys', value: '', placeholder: '请输入关键词', options: []},
      ],
      //列表
      tableLoading:false,
      tableData:[],
      pageIndex:1,
      pageSize:10,
      tableDataTotal:0,
    }
  },
  created() {
    this.dataRegion()
  },
  computed: {

  },
  methods: {
    async dataRegion() {
      // await axios.post("https://files.jiansheku.com/file/json/common/dataRegion.json", {}, {
      //   headers: {
      //     'Content-Type': 'application/json'
      //   }
      // }).then(res => {
      //   if (res.data.code == 200) {
      //     console.log(res.data.data)
      //   }
      // })
    },
    handleQuery(params) {
      console.log(params)
    }

  }
}
</script>
<style lang="scss" scoped>
.corePersonnel{
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  .query-box{
    margin: 10px 0 20px;
  }
}
</style>
