From 0a32f5094e5a2622ed148854f91b606910dec216 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123456 <zxx19900626> Date: 星期一, 11 四月 2022 18:49:16 +0800 Subject: [PATCH] 调整页面 --- src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue index d40c74a..a88dd41 100644 --- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue +++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue @@ -1,10 +1,14 @@ <template> <div class="zhiyePeixun-wrap"> <el-table + stripe + border :data="tableData" - max-height="650" + max-height="640" + :header-cell-style="handleheader" style="width: 100%"> <el-table-column + fixed="left" prop="year" label="骞翠唤" align="center" @@ -117,6 +121,14 @@ peixunrenci:'34223' }] } + }, + methods: { + handleheader(data) { + return { + lineHeight: '0', + + } + } } } </script> @@ -126,13 +138,13 @@ .zhiyePeixun-wrap{ width: 100%; height: 100%; - margin-top: 2rem; + margin-top: 0.078125rem /* 20/256 */; .el-table th.el-table__cell{ background-color:$color-blue; - height: 8rem; + height: 0.3125rem /* 80/256 */; } .el-table tr{ - height: 8rem; + height: 0.3125rem /* 80/256 */; } .el-table tr:nth-child(odd){ background-color: #CEF2FF; @@ -157,16 +169,16 @@ white-space:pre-line; } .el-table--border th.el-table__cell, .el-table__fixed-right-patch{ - border-bottom:1px solid $color-grey; /*no*/ + border-bottom:1Px solid $color-grey; /*no*/ } .el-table thead.is-group th.el-table__cell{ background-color: $color-blue; } .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf{ - border-bottom:1px solid $color-grey; /*no*/ + border-bottom:1Px solid $color-grey; /*no*/ } .el-table--border .el-table__cell, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{ - border-right:1px solid $color-grey; /*no*/ + border-right:1Px solid $color-grey; /*no*/ } } </style> @@ -174,7 +186,7 @@ <style lang="scss" scoped> .zhiyepeixun-echarts{ width: 100%; - height: calc(100% - 68rem); - margin-top: 2rem; + height: calc(100% - 2.65625rem /* 680/256 */); + margin-top: 0.078125rem /* 20/256 */; } </style> -- Gitblit v1.9.1