From f62b5dccd3fbd23ff9353f4e7ea5e6d18aa54946 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Wed, 21 Jan 2026 17:46:37 +0800
Subject: [PATCH] feat:添加判断

---
 applications/task-work-order/src/styles/common/cockpit.scss |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/applications/task-work-order/src/styles/common/cockpit.scss b/applications/task-work-order/src/styles/common/cockpit.scss
index 765a052..4c671ac 100644
--- a/applications/task-work-order/src/styles/common/cockpit.scss
+++ b/applications/task-work-order/src/styles/common/cockpit.scss
@@ -461,6 +461,13 @@
   background: #FFFFFF;
   border: 1px solid #CCCCCC;
   border-radius: 6px 6px 6px 6px;
+  margin-top: auto !important;
+  max-height: 90vh;
+  min-height: 20vh;
+  position: absolute;
+  left: 50%;
+  top: 50%;
+  transform: translate(-50%, -50%);
 
 
   .el-dialog__header {
@@ -481,8 +488,7 @@
   }
 
   .el-dialog__body {
-    height: 0;
-    flex: 1;
+    overflow: auto;
 
     .detail-title {
       margin-bottom: 20px;

--
Gitblit v1.9.3