<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: 'BusinessAnomaly',
  mixins: [mixin],
  components: {

  },
  data() {
    return {
      queryParams: {
        cid: 6034,
        pageNum: 1,
        pageSize: 10
      },
      forData: [
        {label: '列入原因', prop: 'inReason', width: '508'},
        {label: '列入日期', prop: 'inDate', width: '95'},
        {label: '做出决定机关（移入）', prop: 'department', width: '264'},
        {label: '移出经营异常名录原因', prop: 'outReason', width: '320'},
        {label: '移除日期', prop: 'outDate', width: '95'},
        {label: '做出决定机关（移除）', prop: 'outDepartment', width: '264'}
      ],
      formData: [
        { type: 1, fieldName: 'years', value: '', placeholder: '列入时间',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        }
      ],
      //列表
      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>
