| | |
| | | </div> |
| | | <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> |
| | | <span>${getCameraName(record.serId) || record.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>${formatDate(record.time)}</span> |
| | | </div> |
| | | </div> |
| | | <div class="meta-item"> |
| | | <i class="layui-icon layui-icon-component"></i> |
| | | <span>${getTypeName(record.bizType) || record.bizType || ''}</span> |
| | | <span>${(record.weight || 0).toFixed(2)}KG</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 根据业务类型编码获取业务类型名称 |
| | | * @param {string} bizType - 业务类型编码 |
| | | * @returns {string|null} 业务类型名称或null |
| | | */ |
| | | function getTypeName(bizType) { |
| | | if (typeof bizTypeList !== 'undefined' && Array.isArray(bizTypeList) && bizType) { |
| | | // 查找匹配的业务类型对象 |
| | | var type = bizTypeList.find(function(item) { |
| | | return item.code === bizType; |
| | | }); |
| | | // 返回业务类型名称,如果找不到则返回null |
| | | return type ? type.msg : null; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 格式化日期 |