<template>
  <div class="app-container detail-container">
    <head-form
      title="高管信息"
      :form-data="formData"
      :query-params="queryParams"
      :total="tableDataTotal"
    />

    <tables
      :tableLoading="tableLoading"
      :tableData="tableData"
      :forData="forData"
      :queryParams="queryParams"
      :paging="false"
    />
  </div>
</template>

<script>
import mixin from '../mixins/mixin'
import {getList} from '@/api/detail/party-a/overview'
export default {
  name: 'Execuinfo',
  props: ['companyId'],
  mixins: [mixin],
  data() {
    return {
      queryParams: {
        companyId: this.companyId,
        pageNum: 1,
        pageSize: 10
      },
      forData: [
        {label: '姓名', prop: 'projectName'},
        {label: '职位', prop: 'type'}
      ],
      formData: [],
      //列表
      tableLoading:false,
      tableData:[],
      tableDataTotal:0,
    }
  },
  created() {
    this.handleQuery()
  },
  methods: {
    handleQuery() {
      this.tableLoading = true
      getList(this.queryParams).then((res) => {
        this.tableLoading = false
        this.tableData = [
          {
            projectId: '1',
            tag: '在业',
            projectName:'滨州医学院口腔医学大楼铝合金门窗供货及安装',
            use:'城镇住宅用地',
            type:'房地产业',
            way:'挂牌出让',
            state:'重庆',
            money:'11234万元',
            scale:'222平米',
            unit:'江苏省住房和城乡建设厅',
            date:'2015-08-06',
          }
        ]
        this.tableDataTotal = 100
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.detail-container{
  margin: 0;
  padding: 16px;
  background: #FFFFFF;
  border-radius: 4px;
}
</style>
