From 48e1fbc279373f06b45789bbdc9a372923ba4325 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期二, 26 四月 2022 11:10:39 +0800 Subject: [PATCH] 首页数据 --- src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue b/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue index 59dc2dd..3c864a3 100644 --- a/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue +++ b/src/pages/components/shebaoZhengjiShouru/shebaoZhengjiShouruTotal.vue @@ -3,6 +3,7 @@ <div class="danwei-box">鍗曚綅锛氫汉</div> <div class="shebaoZhengjiShouruForm-table"> <el-table + :max-height="tableHeight" border style="width: 100%" :data="totalTableData"> @@ -38,6 +39,7 @@ </template> <script> + import nowSize from "../../../libs/nowSize"; export default { name: "shebaoZhengjiShouruTotal", props: { @@ -50,7 +52,19 @@ }, data() { return { + tableHeight: window.innerHeight - nowSize(380) } + }, + methods: { + getHeight() { + this.tableHeight = window.innerHeight - nowSize(350) + } + }, + created() { + window.addEventListener('resize', this.getHeight) + }, + destroy() { + window.addEventListener('resize', this.getHeight) } } </script> -- Gitblit v1.9.1