From dfd2060bdcc0de929b4770a6a4a580c17bd72104 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 17 十二月 2025 16:31:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html |   74 +++++++++++++++++++++++++++---------
 1 files changed, 55 insertions(+), 19 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html b/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
index 28689e1..318cc3d 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
-<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="renderer" content="webkit">
     <th:block th:include="include :: header('鏅鸿兘鎶撴媿')"/>
-    <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui-ruoyi/css/layui.css}"/>
+    <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" />
 </head>
 <body class="gray-bg">
 <div class="container-div">
@@ -18,7 +19,24 @@
                 <div class="select-list">
                     <ul>
                         <li>
-                            鎵�灞炲簱鍖猴細<input type="text" name="deptId"/>
+                            鏀跺偍鍏徃锛�<select  class="form-control" name="key">
+                            <option value="">鎵�鏈�</option>
+                            <option th:each="company : ${companyList}" th:value="${company.id}" th:text="${company.dwmc}">
+                            </option>
+                        </select>
+                        </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>
+                        </select>
+                        </li>
+                        <li class="select-time">
+                            <label style="width: 100px">鎶撴媿鏃堕棿锛�</label>
+                            <input type="text" class="time-input" style="width: 120px;" id="start" placeholder="寮�濮嬫椂闂�" name="start"/>
+                            <span>-</span>
+                            <input type="text" class="time-input" style="width: 120px;" id="end" placeholder="缁撴潫鏃堕棿" name="end"/>
                         </li>
                         <li>
                             <a class="btn btn-primary btn-rounded btn-sm" onclick="searchRecord()"><i
@@ -37,7 +55,7 @@
         </div>
 
 
-        <div class="col-sm-12 " style="padding-top: 10px;">
+        <div class="col-sm-12 " style="padding-top: 10px;background: #FFFFFF;margin-top: 10px;">
             <!-- 鍥剧墖缃戞牸 -->
             <div class="gallery-grid" id="gallery-container">
                 <!-- 鍥剧墖涓虹┖鏃舵樉绀� -->
@@ -56,17 +74,9 @@
                             <!--                            <h3 class="gallery-title" th:text="${snapRecord.id}"></h3>-->
                             <!-- 鏍囩鍒楄〃 -->
                             <div class="gallery-tags">
-                                <span class="tag-person">
+                                <span th:each="tag : ${#strings.arraySplit(snapRecord.tags, ',')}" class="tag-person">
                                     <i class="layui-icon layui-icon-note"></i>
-                                    <span>姹借溅</span>
-                                </span>
-                                <span class="tag-person">
-                                    <i class="layui-icon layui-icon-note"></i>
-                                    <span>鍗¤溅</span>
-                                </span>
-                                <span class="tag-person">
-                                    <i class="layui-icon layui-icon-note"></i>
-                                    <span>缈绘枟杞�</span>
+                                    <span th:text="${tag}"></span>
                                 </span>
                             </div>
                         </div>
@@ -75,16 +85,37 @@
                             <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>
-                                    <span th:text="${snapRecord.cameraId}"></span>
+                                    <!-- 浣跨敤鏍囧織鍙橀噺璁板綍鏄惁宸插尮閰� -->
+                                    <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>
                                 </div>
+
+
                                 <div class="meta-item" style="width: 50%">
                                     <i class="layui-icon layui-icon-date"></i>
-                                    <span th:text="${#dates.format(snapRecord.snapTime, 'yyyy-MM-dd HH:mm')}"></span>
-                                </div>
+                                    <span th:text="${snapRecord.snapTime != null ? #dates.format(snapRecord.snapTime, 'yyyy-MM-dd HH:mm') : '鏃犳椂闂�'}"></span>                                </div>
                             </div>
                             <div class="meta-item">
                                 <i class="layui-icon layui-icon-home"></i>
-                                <span th:text="${snapRecord.deptId}"></span>
+<!--                                <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>
+                                </th:block>
                             </div>
                         </div>
                     </div>
@@ -109,12 +140,17 @@
     </div>
 </div>
 <th:block th:include="include :: footer"/>
-<script th:src="@{/ajax/libs/layui-ruoyi/layui.js}"></script>
+<script th:src="@{/ajax/libs/layui/layui.js}"></script>
+<th:block th:include="include :: select2-js" />
 <script th:src="@{/security/snap/snapRecord.js}"></script>
 <script th:inline="javascript">
+    var cameraList = [[${cameraList}]];
+    var deptList = [[${deptList}]];
+    var companyList = [[${companyList}]];
     var currentPage = [[${currentPage}]];
     var totalItems = [[${totalItems}]];
     var pageSize = [[${pageSize}]];
+
 </script>
 
 </body>

--
Gitblit v1.9.3