From 41d6da7f5f8f0ce37c3521f6c4d639ab77ed9aac Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 29 四月 2022 14:49:52 +0800 Subject: [PATCH] 其他业务 --- src/pages/components/juminYanglaoBaoxian/baoxianForm.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/pages/components/juminYanglaoBaoxian/baoxianForm.vue b/src/pages/components/juminYanglaoBaoxian/baoxianForm.vue index f021db4..bfafd68 100644 --- a/src/pages/components/juminYanglaoBaoxian/baoxianForm.vue +++ b/src/pages/components/juminYanglaoBaoxian/baoxianForm.vue @@ -1,6 +1,8 @@ <template> <div class="baoxianForm-wrap" :style="{paddingTop : paddingTop + 'rem'}"> <el-table + :cell-style="handleCellStyle" + :max-height="tableHeight" border style="width: 100%" :data="tableData"> @@ -76,6 +78,7 @@ <script> import {getInsuranceTable} from '@/api/shehuiBaozhang' + import nowSize from "../../../libs/nowSize"; export default { name: "baoxianForm", props: { @@ -92,7 +95,8 @@ }, data() { return { - tableData:[] + tableData:[], + tableHeight: window.innerHeight - nowSize(230) } }, mounted() { @@ -105,6 +109,11 @@ this.tableData = res.list } }) + }, + handleCellStyle({rowIndex, columnIndex}) { + if(columnIndex == 0) { + return { background:'#51D2FF' } + } } } } -- Gitblit v1.9.1