付延余
2022-05-19 7f3bd68b67a4f8ae0565b19433299c5e6336f951
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%"
@@ -52,13 +53,18 @@
        },
        data() {
            return {
                tableHeight: window.innerHeight - nowSize(350)
                tableHeight: window.innerHeight - nowSize(380)
            }
        },
        methods: {
            getHeight() {
                this.tableHeight = window.innerHeight - nowSize(350)
            }
            },
            handleCellStyle({rowIndex, columnIndex}) {
                if(columnIndex == 0) {
                    return { background:'#51D2FF' }
                }
            },
        },
        created() {
            window.addEventListener('resize', this.getHeight)