| | |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="renderer" content="webkit"> |
| | | <th:block th:include="include :: header('AI事件管理')"/> |
| | | <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/eventInfo/eventInfo-style.css}"> |
| | | <th:block th:include="include :: select2-css" /> |
| | | </head> |
| | | <body class="gray-bg"> |
| | | <div class="container-div"> |
| | |
| | | <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> |
| | | 所属仓库:<input type="text" name="depotId"/> |
| | | 所选库区:<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>事件时间: </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 |
| | |
| | | </div> |
| | | </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"> |
| | | <!-- 事件为空时显示 --> |
| | |
| | | <div class="gallery-header"> |
| | | <h3 class="gallery-title" th:text="${eventInfo.name}"></h3> |
| | | <div class="gallery-tags"> |
| | | <span class="tag-person"> |
| | | <span th:each="tag : ${#strings.arraySplit(eventInfo.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> |
| | |
| | | <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="${eventInfo.serId}"></span> |
| | | <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> |
| | | </div> |
| | | <div class="meta-item" style="width: 50%"> |
| | | <i class="layui-icon layui-icon-date"></i> |
| | | <span th:text="${#dates.format(eventInfo.time, 'yyyy-MM-dd HH:mm')}"></span> |
| | | <span th:text="${eventInfo.time != null ? #dates.format(eventInfo.time, 'yyyy-MM-dd HH:mm') : '无时间'}"></span> |
| | | </div> |
| | | </div> |
| | | <div class="meta-item"> |
| | | <i class="layui-icon layui-icon-home"></i> |
| | | <span th:text="${eventInfo.deptId}"></span> |
| | | <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> |
| | | </th:block> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </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/eventInfo/eventInfo.js}"></script> |
| | | <script th:inline="javascript"> |
| | | var cameraList = [[${cameraList}]]; |
| | | var deptList = [[${deptList}]]; |
| | | var bizTypeList = [[${bizTypeList}]]; |
| | | var companyList = [[${companyList}]]; |
| | | |
| | | var currentPage = [[${currentPage}]]; |
| | | var totalItems = [[${totalItems}]]; |
| | | var pageSize = [[${pageSize}]]; |