From 3931c704761e5f51b9aed161560a3214058881c8 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 28 二月 2026 17:35:43 +0800
Subject: [PATCH] 抓拍页面,分页展示错误修复
---
fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html | 43 +++++++++++++++++--------------------------
1 files changed, 17 insertions(+), 26 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
index fcc1aec..0ec3a25 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
@@ -8,10 +8,10 @@
<th:block th:include="include :: header('AI浜嬩欢绠$悊')"/>
<link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui/css/layui.css}"/>
<link rel="stylesheet" th:href="@{/security/eventInfo/eventInfo-style.css}">
- <th:block th:include="include :: select2-css" />
+ <th:block th:include="include :: select2-css"/>
<style>
.select-list .select2-container--bootstrap {
- width: 280px!important;
+ width: 280px !important;
display: inline-block;
}
</style>
@@ -25,7 +25,7 @@
<div class="select-list">
<ul>
<li>
- 鏀跺偍鍏徃锛�<select class="form-control" name="key">
+ 鏀跺偍鍏徃锛�<select class="form-control" name="key">
<option th:each="company : ${companyList}" th:value="${company.id}"
th:text="${company.dwmc}"
th:selected="${company.id == defaultCompany}">
@@ -33,21 +33,23 @@
</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}">
+ 鎵�閫夊簱鍖猴細<select class="form-control" name="deptId" >
+ <option th:each="dept : ${deptList}" th:value="${dept.id}" th:text="${dept.kqmc}"
+ th:selected="${dept.id == defaultDeptId}">
</option>
</select>
</li>
<li th:if="${viewType == '1'}" style="display: flex">
- <label>浜嬩欢鍚嶇О锛�</label>
- <input class="form-control" type="text" name="name" placeholder="璇疯緭鍏ヤ簨浠跺悕绉�">
+ <label>浜嬩欢鏍囩锛�</label>
+ <input class="form-control" type="text" name="name" placeholder="璇疯緭鍏ヤ簨浠舵爣绛�">
</li>
<li class="select-time">
<label style="width: 100px">浜嬩欢鏃堕棿锛� </label>
- <input type="text" class="time-input" style="width: 140px;" id="start" placeholder="寮�濮嬫椂闂�" name="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: 140px;" id="end" placeholder="缁撴潫鏃堕棿" name="end"/>
+ <input type="text" class="time-input" style="width: 140px;" id="end" placeholder="缁撴潫鏃堕棿"
+ name="end"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="searchRecord()"><i
@@ -87,20 +89,11 @@
<div class="gallery-meta">
<div style="display: flex; align-items: center; gap: 15px;width: 100%">
- <div class="meta-item" style="width: 50%">
+ <div class="meta-item" style="min-width: 60%">
<i class="layui-icon layui-icon-video"></i>
- <th:block th:with="matchedCameras=${cameraList.?[id == #root.eventInfo.serId]}">
- <!-- 濡傛灉鏈夊尮閰嶉」锛屾樉绀虹涓�涓尮閰嶇殑鎽勫儚澶村悕绉� -->
- <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="${eventInfo.serId}"></span>
- </th:block>
- </th:block>
+ <span th:text="${eventInfo.serId}"></span>
</div>
- <div class="meta-item" style="width: 50%">
+ <div class="meta-item" style="min-width: 40%">
<i class="layui-icon layui-icon-date"></i>
<span th:text="${eventInfo.time != null ? #dates.format(eventInfo.time, 'yyyy-MM-dd HH:mm') : '鏃犳椂闂�'}"></span>
</div>
@@ -108,11 +101,9 @@
<div class="meta-item">
<i class="layui-icon layui-icon-component"></i>
<th:block th:with="matchedTypes=${bizTypeList.?[code == #root.eventInfo.bizType]}">
- <!-- 濡傛灉鏈夊尮閰嶉」锛屾樉绀虹涓�涓尮閰嶇殑鎽勫儚澶村悕绉� -->
<th:block th:if="${!#lists.isEmpty(matchedTypes)}">
<span th:text="${matchedTypes[0].msg}"></span>
</th:block>
- <!-- 濡傛灉娌℃湁鍖归厤椤癸紝鏄剧ず鍘熷ID -->
<th:block th:if="${#lists.isEmpty(matchedTypes)}">
<span th:text="${eventInfo.bizType}"></span>
</th:block>
@@ -124,7 +115,7 @@
</div>
<!-- 鍒嗛〉鎺т欢 -->
- <div class="pagination-container" th:if="${not #lists.isEmpty(eventInfoList)}">
+ <div class="pagination-container" id="paginationContainer">
<div id="pagination"></div>
</div>
</div>
@@ -141,7 +132,7 @@
</div>
<th:block th:include="include :: footer"/>
<script th:src="@{/ajax/libs/layui/layui.js}"></script>
-<th:block th:include="include :: select2-js" />
+<th:block th:include="include :: select2-js"/>
<script th:src="@{/security/eventInfo/eventInfo.js}"></script>
<script th:inline="javascript">
var cameraList = [[${cameraList}]];
--
Gitblit v1.9.3