From 7f3bd68b67a4f8ae0565b19433299c5e6336f951 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期四, 19 五月 2022 14:46:07 +0800 Subject: [PATCH] 其他业务 --- src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruForm.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruForm.vue b/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruForm.vue index 4d71132..5279232 100644 --- a/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruForm.vue +++ b/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%" @@ -50,13 +51,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) -- Gitblit v1.9.1