src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruForm.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%" @@ -56,8 +57,13 @@ methods: { getHeight() { this.tableHeight = window.innerHeight - nowSize(350) }, handleCellStyle({rowIndex, columnIndex}) { if(columnIndex == 0) { return { background:'#51D2FF' } } }, }, created() { window.addEventListener('resize', this.getHeight) },