diff --git a/PACS_DICOM处理/数据处理网页端/static/app.js b/PACS_DICOM处理/数据处理网页端/static/app.js index 56a1835..ceb53d8 100644 --- a/PACS_DICOM处理/数据处理网页端/static/app.js +++ b/PACS_DICOM处理/数据处理网页端/static/app.js @@ -446,10 +446,22 @@ function renderStudies() { card.classList.toggle("active", app.study?.ct_number === study.ct_number); card.classList.toggle("complete", status === "complete"); const name = study.source_patient_name || study.patient_name_dicom || "无姓名"; - const partTags = asList(study.body_parts) + const bodyPartLabels = asList(study.body_parts) .filter((part) => BODY_PARTS.includes(part)) - .map((part) => `${escapeHtml(partLabel(part))}`) + .map((part) => partLabel(part)); + const partTags = bodyPartLabels + .map((label) => `${escapeHtml(label)}`) .join(""); + const studyDateTime = `${fmtDate(study.study_date)} ${fmtTime(study.study_time)}`.trim() || "未记录时间"; + const annotationSummary = `${Number(study.annotated_series || 0)} 个序列已标注,${Number(study.unannotated_series || 0)} 个序列未标注`; + const cardTitle = [ + `检查号:${study.ct_number}`, + `患者:${name} · ${study.patient_id || "无ID"}`, + `时间:${studyDateTime}`, + `DICOM:${Number(study.dicom_file_count || 0)} 张`, + annotationSummary, + `部位:${bodyPartLabels.join("、") || "无"}`, + ].join("\n"); const exportControls = isAdmin() ? ` @@ -459,16 +471,18 @@ function renderStudies() { ` : ""; + card.title = cardTitle; + card.setAttribute("aria-label", cardTitle); card.innerHTML = `
${studyStatusLabel(status)}
${partTags}
- ${escapeHtml(study.ct_number)} - ${escapeHtml(name)} · ${escapeHtml(study.patient_id || "无ID")} + ${escapeHtml(study.ct_number)} + ${escapeHtml(name)} · ${escapeHtml(study.patient_id || "无ID")}
- ${escapeHtml(fmtDate(study.study_date))} ${escapeHtml(fmtTime(study.study_time))} - ${Number(study.dicom_file_count || 0)} 张 · ${Number(study.annotated_series || 0)} 个序列已标注,${Number(study.unannotated_series || 0)} 个序列未标注 + ${escapeHtml(studyDateTime)} + ${escapeHtml(annotationSummary)}
${exportControls} `; diff --git a/PACS_DICOM处理/数据处理网页端/static/styles.css b/PACS_DICOM处理/数据处理网页端/static/styles.css index 20aa132..472c751 100644 --- a/PACS_DICOM处理/数据处理网页端/static/styles.css +++ b/PACS_DICOM处理/数据处理网页端/static/styles.css @@ -1001,13 +1001,18 @@ button:disabled { } .phase-options { - display: grid; - grid-template-columns: repeat(4, minmax(100px, 1fr)); + display: flex; gap: 8px; + overflow-x: auto; + padding-bottom: 2px; } -.chest-window-options { - grid-template-columns: repeat(3, minmax(110px, 1fr)); +.phase-options label { + flex: 0 0 126px; +} + +.chest-window-options label { + flex-basis: 132px; } .annotation-actions {