From 569469b865c25e7d8a7ecb1b0d907423f0593fa3 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 24 Nov 2021 11:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E5=AE=8C=E6=88=90=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=E9=AB=98=E5=BA=A6=E7=9A=84=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/localTool/standardWarning.vue | 34 ++++++++++++++++--------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/pages/localTool/standardWarning.vue b/src/pages/localTool/standardWarning.vue index 563d59441..c291b649e 100644 --- a/src/pages/localTool/standardWarning.vue +++ b/src/pages/localTool/standardWarning.vue @@ -113,11 +113,12 @@ -
+
{ - this.height = $(".content").height() * 1.8; + this.warningTableHeight = $(window).height()*0.54; + }; + // alert(this.warningTableHeight) + this.height = $(".content").height(); + window.onresize = () => { + this.height = $(".content").height(); }; //从数据库中查询下拉框数据 this.$http.get("sys/dictype/getDicTypeListCode", {}, { @@ -1055,6 +1062,17 @@ export default { // } } + .content { + padding-bottom: 10px; + height: calc(~'100% - 40px'); + + /deep/ .el-button--mini { + padding: 5px 7px; + font-size: 8px; + } + + } + .dynamic-loop-container { position: relative; min-height: 160px; @@ -1134,15 +1152,7 @@ export default { } } - .content { - padding-bottom: 10px; - height: calc(~'100% - 40px'); - /deep/ .el-button--mini { - padding: 5px 7px; - font-size: 8px; - } - } } ::v-deep {