diff --git a/web/feeder/js/equipment.js b/web/feeder/js/equipment.js index 7f01372..7f1bfaa 100644 --- a/web/feeder/js/equipment.js +++ b/web/feeder/js/equipment.js @@ -159,35 +159,6 @@ export function renderEquipments() { actionRow.append(editBtn, deleteBtn); - if (equipment.kind === "coal_feeder" || equipment.kind === "distributor") { - const unitRuntime = equipment.unit_id ? state.runtimes.get(equipment.unit_id) : null; - const remLocal = unitRuntime?.rem_local ?? false; - - const startBtn = document.createElement("button"); - startBtn.className = "secondary"; - startBtn.textContent = "Start"; - startBtn.disabled = remLocal; - startBtn.title = remLocal ? "设备处于本地模式(REM关)" : ""; - startBtn.addEventListener("click", (e) => { - e.stopPropagation(); - apiFetch(`/api/control/equipment/${equipment.id}/start`, { method: "POST" }) - .catch(() => {}); - }); - - const stopBtn = document.createElement("button"); - stopBtn.className = "danger"; - stopBtn.textContent = "Stop"; - stopBtn.disabled = remLocal; - stopBtn.title = remLocal ? "设备处于本地模式(REM关)" : ""; - stopBtn.addEventListener("click", (e) => { - e.stopPropagation(); - apiFetch(`/api/control/equipment/${equipment.id}/stop`, { method: "POST" }) - .catch(() => {}); - }); - - actionRow.append(startBtn, stopBtn); - } - dom.equipmentList.appendChild(box); }); }