From 9e64b2df66a7ab69b9daf258999d88844cccecce Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 03 二月 2026 18:02:18 +0800
Subject: [PATCH] 抓拍和ai事件回显逻辑调整

---
 fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html |   28 +++++++++++-----------------
 1 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html b/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
index e21c52c..03fbda7 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
@@ -9,6 +9,12 @@
     <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui/css/layui.css}"/>
     <link rel="stylesheet" th:href="@{/security/snap/snapRecord-style.css}">
     <th:block th:include="include :: select2-css"/>
+    <style>
+        .select-list .select2-container--bootstrap {
+            width: 280px !important;
+            display: inline-block;
+        }
+    </style>
 </head>
 <body class="gray-bg">
 <div class="container-div">
@@ -28,8 +34,8 @@
                         </li>
                         <li>
                             鎵�閫夊簱鍖猴細<select class="form-control" name="deptId">
-                            <option value="">鎵�鏈�</option>
-                            <option th:each="dept : ${deptList}" th:value="${dept.id}" th:text="${dept.kqmc}">
+                            <option th:each="dept : ${deptList}" th:value="${dept.id}" th:text="${dept.kqmc}"
+                                    th:selected="${dept.id == defaultDeptId}">
                             </option>
                         </select>
                         </li>
@@ -38,10 +44,10 @@
                         </li>
                         <li class="select-time">
                             <label style="width: 100px">鎶撴媿鏃堕棿锛�</label>
-                            <input type="text" class="time-input" style="width: 120px;" id="start"
+                            <input type="text" class="time-input" style="width: 140px;" id="start"
                                    placeholder="寮�濮嬫椂闂�" name="start"/>
                             <span>-</span>
-                            <input type="text" class="time-input" style="width: 120px;" id="end" placeholder="缁撴潫鏃堕棿"
+                            <input type="text" class="time-input" style="width: 140px;" id="end" placeholder="缁撴潫鏃堕棿"
                                    name="end"/>
                         </li>
                         <li>
@@ -91,17 +97,7 @@
                             <div style="display: flex; align-items: center; gap: 15px;width: 100%">
                                 <div class="meta-item" style="width: 50%">
                                     <i class="layui-icon layui-icon-video"></i>
-                                    <!-- 浣跨敤鏍囧織鍙橀噺璁板綍鏄惁宸插尮閰� -->
-                                    <th:block th:with="matchedCameras=${cameraList.?[id == #root.snapRecord.cameraId]}">
-                                        <!-- 濡傛灉鏈夊尮閰嶉」锛屾樉绀虹涓�涓尮閰嶇殑鎽勫儚澶村悕绉� -->
-                                        <th:block th:if="${!#lists.isEmpty(matchedCameras)}">
-                                            <span th:text="${matchedCameras[0].name}"></span>
-                                        </th:block>
-                                        <!-- 濡傛灉娌℃湁鍖归厤椤癸紝鏄剧ず鍘熷ID -->
-                                        <th:block th:if="${#lists.isEmpty(matchedCameras)}">
-                                            <span th:text="${snapRecord.cameraId}"></span>
-                                        </th:block>
-                                    </th:block>
+                                    <span th:text="${snapRecord.cameraId}"></span>
                                 </div>
 
 
@@ -114,11 +110,9 @@
                                 <i class="layui-icon layui-icon-home"></i>
                                 <!--                                <span th:text="${snapRecord.deptId}"></span>-->
                                 <th:block th:with="matchedDept=${deptList.?[id == #root.snapRecord.deptId]}">
-                                    <!-- 濡傛灉鏈夊尮閰嶉」锛屾樉绀虹涓�涓尮閰嶇殑鎽勫儚澶村悕绉� -->
                                     <th:block th:if="${!#lists.isEmpty(matchedDept)}">
                                         <span th:text="${matchedDept[0].kqmc}"></span>
                                     </th:block>
-                                    <!-- 濡傛灉娌℃湁鍖归厤椤癸紝鏄剧ず鍘熷ID -->
                                     <th:block th:if="${#lists.isEmpty(matchedDept)}">
                                         <span th:text="${snapRecord.deptId}"></span>
                                     </th:block>

--
Gitblit v1.9.3