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

  },
  data() {
    return {
      queryParams: {
        cid: 6034,
        pageNum: 1,
        pageSize: 10
      },
      forData: [
        {label: '项目名称', prop: 'punishReason', width: '508'},
        {label: '土地用途', prop: 'punishBegin', width: '120'},
        {label: '行业分类', prop: 'punishResult', width: '120'},
        {label: '供地方式', prop: 'fileNum', width: '120'},
        {label: '土地坐落', prop: 'cgrdm', width: '120'},
        {label: '成交金额（万元）', prop: 'office', width: '130'},
        {label: '总面积（㎡）', prop: 'dataId', width: '120'},
        {label: '批准单位', prop: 'dataId', width: '120'},
        {label: '签订日期', prop: 'dataId', width: '120'}
      ],
      formData: [
        { type: 4, fieldName: 'penalizeReasonType', value: [], placeholder: '土地用途',
          options: [
            { name: '处罚类别1', value: '1' },
            { name: '处罚类别2', value: '2' },
            { name: '处罚类别3', value: '3' },
            { name: '处罚类别4', value: '4' }
          ]
        },
        { 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() {

    },
    resetQuery() {

    },
    //分页
    handleCurrentChange(e){

    },
    handleSizeChange(e){

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