Improve speed

This commit is contained in:
Kevin
2026-05-22 11:15:22 +08:00
parent 87b6a7b804
commit 941c71e991
14 changed files with 132 additions and 49 deletions

View File

@@ -458,6 +458,13 @@
}
}
function pickDoctorBannerText(details, fallbackDisplay) {
const rowDoctor = (details[0]?.doctor_id || "").trim();
const apiDisplay = (fallbackDisplay || "").trim();
if (apiDisplay && (!rowDoctor || rowDoctor === "vision")) return apiDisplay;
return rowDoctor || apiDisplay;
}
function showVideoBatchDoctorInfo(displayText) {
const el = $("video-batch-doctor-info");
if (!el) return;
@@ -754,7 +761,7 @@
}
const { details = [], summary = [] } = body;
if (getRunMode() === "offline-batch") {
showVideoBatchDoctorInfo(details[0]?.doctor_id || lastVideoBatchDoctorDisplay);
showVideoBatchDoctorInfo(pickDoctorBannerText(details, lastVideoBatchDoctorDisplay));
}
const renderTable = (title, rows, cols) => {
const h = document.createElement("h3");