无人机资产管理系统功能更新:状态历史编辑、飞行透视表备注与总架次、批量操作、筛选、表格列顺序调整,静态文件禁用缓存,忽略运行时数据

This commit is contained in:
2026-08-15 21:00:37 +08:00
parent c31f3af816
commit c040423066
9 changed files with 18 additions and 45 deletions
+8 -9
View File
@@ -158,9 +158,8 @@ function renderDrones() {
table.innerHTML = `
<thead><tr>
<th style="width:34px"><input type="checkbox" id="check-all" title="全选/取消全选"></th>
<th>机型</th><th>编号</th><th>链路ID</th><th>飞控ID</th>
<th>飞控版本</th><th>导航版本</th>
<th>当前状态</th><th>备注</th><th>操作</th>
<th>机型</th><th>编号</th><th>当前状态</th><th>操作</th>
<th>飞控ID</th><th>链路ID</th><th>飞控版本</th><th>导航版本</th><th>备注</th>
</tr></thead><tbody></tbody>`;
const tbodyEl = table.querySelector("tbody");
for (const d of dronesCache) {
@@ -171,19 +170,19 @@ function renderDrones() {
<td><input type="checkbox" class="drone-check" value="${d.id}"></td>
<td>${esc(d.model)}</td>
<td><strong>${esc(d.serial_no)}</strong></td>
<td>${esc(d.link_id)}</td>
<td>${esc(d.fc_id)}</td>
<td>${esc(d.fc_version)}</td>
<td>${esc(d.nav_version)}</td>
<td>${badge(st)}${lastRemark ? `<div style="font-size:12px;color:#7a8699;margin-top:2px">${esc(lastRemark)}</div>` : ""}</td>
<td class="remark-cell">${esc(d.remark)}</td>
<td><div class="actions">
<button class="small" onclick="showHistory(${d.id})">历史</button>
<button class="small" onclick="openFlightModal(${d.id})">飞行</button>
<button class="small primary" onclick="openStatusModal(${d.id})">修改状态</button>
<button class="small" onclick="openEditModal(${d.id})">编辑</button>
<button class="small danger" onclick="confirmDelete(${d.id})">删除</button>
</div></td>`;
</div></td>
<td>${esc(d.fc_id)}</td>
<td>${esc(d.link_id)}</td>
<td>${esc(d.fc_version)}</td>
<td>${esc(d.nav_version)}</td>
<td class="remark-cell">${esc(d.remark)}</td>`;
tbodyEl.appendChild(tr);
}
wrap.innerHTML = "";