From 675c3b5d83b928c2bfbb84cd99a7d3f222d4432c Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期四, 05 三月 2026 10:18:16 +0800
Subject: [PATCH] 1

---
 zy-acs-cv/src/main/webapp/views/pipeline.html |   69 ++++++++++++++++++++--------------
 1 files changed, 40 insertions(+), 29 deletions(-)

diff --git a/zy-acs-cv/src/main/webapp/views/pipeline.html b/zy-acs-cv/src/main/webapp/views/pipeline.html
index 03140c7..fcdf710 100644
--- a/zy-acs-cv/src/main/webapp/views/pipeline.html
+++ b/zy-acs-cv/src/main/webapp/views/pipeline.html
@@ -67,27 +67,60 @@
         /* 琛ㄦ牸瀹瑰櫒 */
         .table-container {
             flex: 1;
-            overflow: hidden;
+            overflow-x: hidden;
+            overflow-y: auto;
             background: rgba(17, 24, 39, 0.5);
             border-radius: 12px;
             border: 1px solid rgba(59, 130, 246, 0.3);
             backdrop-filter: blur(10px);
         }
+        
+        /* 琛ㄦ牸瀹瑰櫒婊氬姩鏉℃牱寮� */
+        .table-container::-webkit-scrollbar {
+            width: 8px;
+        }
+        
+        .table-container::-webkit-scrollbar-track {
+            background: rgba(30, 41, 59, 0.3);
+            border-radius: 4px;
+        }
+        
+        .table-container::-webkit-scrollbar-thumb {
+            background: #3b82f6;
+            border-radius: 4px;
+        }
+        
+        .table-container::-webkit-scrollbar-thumb:hover {
+            background: #60a5fa;
+        }
 
         /* 鐜颁唬鍖栬〃鏍兼牱寮� */
         .modern-table {
             width: 100%;
-            height: 100%;
+            table-layout: fixed;
             border-collapse: separate;
             border-spacing: 0;
             background: transparent;
             color: #e2e8f0;
+        }
+        
+        /* 璁剧疆琛ㄦ牸鍒楀锛岀‘淇濋�傚簲瀹瑰櫒 */
+        .modern-table th,
+        .modern-table td {
+            white-space: nowrap;
+            overflow: hidden;
+            text-overflow: ellipsis;
         }
 
         .modern-table thead {
             position: sticky;
             top: 0;
             z-index: 10;
+        }
+        
+        /* 纭繚琛ㄦ牸瀹瑰櫒鏈夋渶澶ч珮搴︼紝浠ヤ究婊氬姩 */
+        .table-container {
+            max-height: calc(100vh - 200px);
         }
 
         .modern-table th {
@@ -340,14 +373,14 @@
 
         .output-log {
             width: 100%;
-            height: 150px;
+            height: 100px;
             background: rgba(0, 0, 0, 0.3);
             border: 1px solid rgba(59, 130, 246, 0.3);
             border-radius: 8px;
             color: #4ade80;
             font-family: 'Courier New', monospace;
             font-size: 12px;
-            padding: 15px;
+            padding: 10px;
             resize: vertical;
         }
 
@@ -730,9 +763,9 @@
         <main>
             <!-- 绔欑偣鐘舵�佹暟鎹洃鎺х増 -->
             <section id="site-monitor" class="main-board">
-                <div class="dashboard-header">
-                    <h2 class="dashboard-title">绔欑偣瀹炴椂鐩戞帶</h2>
-                </div>
+<!--                <div class="dashboard-header">-->
+<!--                    <h3 class="dashboard-title">绔欑偣瀹炴椂鐩戞帶</h3>-->
+<!--                </div>-->
                 
                 <!-- 琛ㄦ牸瀹瑰櫒 -->
                 <div class="table-container">
@@ -828,7 +861,6 @@
         // DOM鍔犺浇瀹屾垚鍚庡垵濮嬪寲
         $(document).ready(function () {
             // 鍔犺浇鍒濆鏁版嵁
-            getPlcError();
             getSite();
 
             // 鍒濆鍖栧畾鏃跺櫒
@@ -839,7 +871,6 @@
         function initTimers() {
             // 姣忕鏇存柊PLC閿欒銆佺珯鐐逛俊鎭拰IO妯″紡
             timers.push(setInterval(() => {
-                getPlcError();
                 if (!isSiteUpdatePaused) {
                     getSite();
                 }
@@ -876,27 +907,7 @@
             }
         }
 
-        // 鑾峰彇PLC寮傚父淇℃伅琛�
-        function getPlcError() {
-            const tableEl = $('#plc-error-table');
-            tableEl.children("tr").children("td").html("");
 
-            ajaxRequest({
-                url: `${baseUrl}/site/table/plc/errors`,
-                method: 'POST',
-                success: (res) => {
-                    if (res.data) {
-                        const tableData = res.data;
-                        for (let i = 0; i < tableData.length; i++) {
-                            const tr = tableEl.find("tr").eq(i + 1);
-                            tr.children("td").eq(0).html(tableData[i].no);
-                            tr.children("td").eq(1).html(tableData[i].plcDesc);
-                            tr.children("td").eq(2).html(tableData[i].error);
-                        }
-                    }
-                }
-            });
-        }
 
         // 鑾峰彇绔欑偣淇℃伅琛�
         function getSite() {

--
Gitblit v1.9.1