src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue
@@ -3,6 +3,7 @@ <div class="danwei-box">单位:人</div> <div class="shebaoZhengjiShouruForm-table"> <el-table :cell-style="handleCellStyle" :max-height="tableHeight" border style="width: 100%" @@ -58,8 +59,13 @@ methods: { getHeight() { this.tableHeight = window.innerHeight - nowSize(350) }, handleCellStyle({rowIndex, columnIndex}) { if(columnIndex == 0) { return { background:'#51D2FF' } } }, }, created() { window.addEventListener('resize', this.getHeight) },