From 991a63234bba49da5a22d0f64ae15837d3253829 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 04 七月 2022 15:04:17 +0800
Subject: [PATCH] 除生产管理外 其它页面能适应小屏
---
src/views/zzmx/gxdy.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/zzmx/gxdy.vue b/src/views/zzmx/gxdy.vue
index 632b3c9..08a2747 100644
--- a/src/views/zzmx/gxdy.vue
+++ b/src/views/zzmx/gxdy.vue
@@ -232,6 +232,7 @@
:visible.sync="workDialogVisible"
width="50%"
top="15vh"
+ :fullscreen="isFullscreen"
:close-on-click-modal="false"
class="workDialogVisible"
@closed="workHandleClose"
@@ -278,6 +279,7 @@
:data="workDialogForm.workTreeArr"
show-checkbox
node-key="code"
+ style="height: 300px;"
default-expand-all
:props="workTreeDefaultProps"
@check="checkBoxClick"
@@ -299,6 +301,7 @@
:visible.sync="defectDialogVisible"
width="50%"
top="15vh"
+ :fullscreen="isFullscreen"
:close-on-click-modal="false"
class="defectDialogVisible"
@closed="defectHandleClose"
@@ -319,7 +322,7 @@
:data="defectTree"
show-checkbox
node-key="code"
- style="height: 400px;"
+ style="height: 500px;"
default-expand-all
:props="workTreeDefaultProps"
/>
@@ -371,6 +374,7 @@
}
}
return {
+ isFullscreen: false,
mainHeight: 0,
tableHeight: 0,
form: {
@@ -564,6 +568,10 @@
this.$nextTick(() => {
this.mainHeight = window.innerHeight - 250
this.tableHeight = this.mainHeight - 100
+ this.isFullscreen = window.innerHeight < 800
+ if (window.innerHeight < 800) {
+ this.tableHeight = this.tableHeight - 50
+ }
})
},
/* 鍏宠仈宸ヤ綔绔欐ā鍧�*/
--
Gitblit v1.9.3