From 6e41ce0ab4300758ebd77ea257c3d9532e3df7e0 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123456 <zxx19900626> Date: 星期二, 10 五月 2022 11:58:22 +0800 Subject: [PATCH] 接口对接 --- src/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue index 5c5e67c..0f21727 100644 --- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue +++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue @@ -253,6 +253,7 @@ </tbody> </table>--> <el-table + :max-height="tableHeight" :data="tableData" :span-method="objectSpanMethod" :cell-style="cellClass" @@ -302,6 +303,7 @@ </template> <script> + import nowSize from "../../../../libs/nowSize"; import {getGraduateTable} from '@/api/jiuyeAndChuangye' export default { name: "biyeshengStatistics", @@ -309,7 +311,8 @@ return { tableData: [], heardArry: [], - rowIndexArr: []//瀛樺偍鍚堝苟鍗曞厓鏍肩殑寮�濮嬩綅缃� + rowIndexArr: [],//瀛樺偍鍚堝苟鍗曞厓鏍肩殑寮�濮嬩綅缃� + tableHeight: window.innerHeight - nowSize(230) } }, mounted() { @@ -339,6 +342,9 @@ textAlign: 'left' } } + } + if(columnIndex == 0) { + return { background:'#51D2FF' } } }, getData() { @@ -403,8 +409,15 @@ document.querySelector('.getTextWidth').remove() return width }, + getHeight() { + this.tableHeight = window.innerHeight - nowSize(230) + } }, - watch: { + created() { + window.addEventListener('resize', this.getHeight) + }, + destroyed() { + window.addEventListener('resize', this.getHeight) } } </script> @@ -474,7 +487,6 @@ .biyeshengStatistics-wrap{ width: 100%; height: 100%; - overflow-y: auto; .biyeshengStatistics-table{ width: 100%; border: 1Px solid $color-grey; /*no*/ -- Gitblit v1.9.1