<template>
  <div class="construction-performance-container">
    <head-form-new title="施工业绩" :query-params="queryParams" :total="tableDataTotal" :isExcel="false" @handle-search="handleSearch"
      ref="searchFormNew" />
    <skeleton v-if="isSkeleton" style="padding: 16px"></skeleton>
    <tables v-if="!isSkeleton" :indexFixed="true" :tableData="tableData" :forData="forData" :tableDataTotal="tableDataTotal"
      :queryParams="queryParams" @handle-current-change="handleCurrentChange">
    </tables>
  </div>
</template>
<script>
import skeleton from '../component/skeleton';
import mixin from '@/views/detail/party-a/mixins/mixin';
import { } from "@/api/internalCooperation";
import { } from "@/api/common";
export default {
  name: "constructionPerformance",
  mixins: [mixin],
  components: {
    skeleton
  },
  props: ['companyId'],
  data() {
    return {
      queryParams: {
        advisoryBodyCid: this.companyId,
        pageNum: 1,
        pageSize: 10,
      },
      forData: [
        { label: '标志性工程', prop: 'bzxgc', width: '245', showOverflowTooltip: true },
        { label: '年度', prop: 'nd', width: '122' },
        { label: '所在区域', prop: 'szqy', width: '101' },
        { label: '所属省份', prop: 'sssf', width: '101' },
        { label: '施工面积（㎡）', prop: 'sgmj', width: '109' },
        { label: '年施工产值（亿）', prop: 'nsgcz', width: '121' },
        { label: '所获荣誉', prop: 'shry', width: '73' },
        { label: '备注说明', prop: 'bzsm', minWidth: '121' },
        { label: '考察项目', prop: 'kcxm', minWidth: '245', showOverflowTooltip: true },
        { label: '考察公司', prop: 'kcgs', minWidth: '192', showOverflowTooltip: true },
      ],
      //列表
      tableLoading: false,
      tableData: [
        {
          bzxgc: "黄阁水厂二期扩建工程设计咨询服务项目",
          nd: "2023年",
          szqy: "华北地区",
          sssf: "河北省",
          sgmj: "231.25",
          nsgcz: "12",
          shry: "优质工程",
          bzsm: "",
          kcxm : "黄阁水厂二期扩建工程设计咨询服务项目",
          kcgs : "中国建筑一局第二建筑有限公司"
        },
        {
          bzxgc: "黄阁水厂二期扩建工程设计咨询服务项目",
          nd: "2023年",
          szqy: "华北地区",
          sssf: "河北省",
          sgmj: "231.25",
          nsgcz: "23",
          shry: "优质工程",
          bzsm: "",
          kcxm : "黄阁水厂二期扩建工程设计咨询服务项目",
          kcgs : "中国建筑一局第二建筑有限公司"
        },
      ],
      tableDataTotal: 2,
      isSkeleton: true,
    };
  },
  //可访问data属性
  created() {
    this.initDetail();
  },
  //计算集
  computed: {

  },
  //方法集
  methods: {
    async initDetail() {
      try {
        await this.handleQuery();
      } catch (error) {

      }
    },
    async handleQuery(params) {
      try {
        // let data = params ? params : this.queryParams;
        // this.isSkeleton = true;
        // const res = await getConsultingAgencyCooperationListApi(data);
        // this.tableData = res.rows ? res.rows : [];
        // this.tableDataTotal = res.total ? res.total : 0;
      } catch (error) {
        console.log(error);
      } finally {
        this.isSkeleton = false;
      }
    },
    async handleSearch() {
      try {
        
      } catch (error) {

      }
    }
  },
}
</script>
<style lang="scss" scoped>
.construction-performance-container {
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  input {
    border: 1px solid #efefef;
  }
  ::v-deep .el-form-item {
    margin-right: 8px !important;
  }

  .query-box {
    margin: 10px 0 20px;
  }
  .cell-span {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    cursor: pointer;

    > span {
      display: inline-block;
      width: 37px;
      position: absolute;
      right: 0;
      bottom: 0;
      background-color: #fff;
      z-index: 1;
    }
  }
  @import "@/assets/styles/search-common.scss";
}
</style>
