<template>
  <div class="corePersonnel">
    <head-form
      title="开庭公告"
      :form-data="formData"
      :query-params="queryParams"
      :total="tableDataTotal"
      :isExcel="false"
      @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: 'OpenacourtsessionNotice',
  mixins: [mixin],
  components: {

  },
  data() {
    return {
      queryParams: {
        cid: 6034,
        pageNum: 1,
        pageSize: 10
      },
      forData: [
        {label: '案由', prop: 'causeAction', width: '240'},
        {label: '开庭日期', prop: 'hearingDate', width: '95'},
        {label: '当事人', prop: 'relatedCompanies', width: '428'},
        {label: '身份', prop: 'pureRole', width: '120'},
        {label: '公告内容', prop: 'cgrssqy', width: '508'},
        {label: '案号', prop: 'caseNo', width: '210'},
        {label: '法院', prop: 'dataId', width: '280'},
        {label: '法庭', prop: 'dataId', width: '180'},
        {label: '承办部门', prop: 'dataId', width: '280'},
        {label: '审判长/主判人', prop: 'dataId', width: '106'}
      ],
      formData: [
        { type: 1, fieldName: 'causeAction', value: '', placeholder: '案由',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        },
        { type: 1, fieldName: 'pureRole', 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: {
    toDetail(){
      let Id = '111'
      this.$router.push({ path: '/project/projectList/detail', query: Id });
    },
    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>
