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)