zhangxiaoxu123456
2022-04-29 7e694768f428b83ed462eb384c43b2ebff61f75c
src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
@@ -4,6 +4,8 @@
         <h1>创业担保贷款统计表</h1>
         <div class="chuangye-table">
           <el-table
             :max-height="tableHeight"
             :cell-style="handleCellStyle"
             border
             :data="danbaoTableData"
             style="width: 100%">
@@ -78,6 +80,8 @@
        <h1>人力资源服务产业园当月情况统计表</h1>
        <div class="danbaotongjibiao-table">
          <el-table
            :cell-style="handleCellStyle"
            :max-height="tableHeight"
            border
            :data="renliziyuanTableData"
            :span-method="arraySpanMethod"
@@ -170,12 +174,14 @@
<script>
  import {getLoanTable, getParkTable} from '@/api/jiuyeAndChuangye'
  import nowSize from "../../../../libs/nowSize";
    export default {
        name: "chuangyeDanbaoDaikuan",
        data() {
            return {
                danbaoTableData:[],
                renliziyuanTableData:[]
                renliziyuanTableData:[],
                tableHeight: (window.innerHeight - nowSize(400)) / 2
            }
        },
        mounted() {
@@ -211,7 +217,21 @@
                        }
                    }
                }
            },
            getHeight() {
                this.tableHeight = (window.innerHeight - nowSize(400)) / 2
            },
            handleCellStyle({rowIndex, columnIndex}) {
                if(columnIndex == 0) {
                    return {background:'#51D2FF'}
                }
            }
        },
        created() {
            window.addEventListener('resize', this.getHeight)
        },
        destroy() {
            window.addEventListener('resize', this.getHeight)
        }
    }
</script>