zhangxiaoxu123456
2022-04-27 b55d1c67769dcc8d90eed2bb4f8a7dfd51e7303a
src/pages/components/qiyezhigongShebao/zhigongShebao.vue
@@ -1,6 +1,7 @@
<template>
  <div class="zhigongShebao-wrap">
    <el-table
      :cell-style="handleCellStyle"
      :height="tableHeight"
      border
      :data="tableData"
@@ -94,7 +95,12 @@
            },
            getHeight() {
                this.tableHeight = window.innerHeight - nowSize(230)
            }
            },
            handleCellStyle({rowIndex, columnIndex}) {
                if(columnIndex == 0) {
                    return { background:'#51D2FF' }
                }
            },
        },
        created() {
            window.addEventListener('resize', this.getHeight)