152 lines
6.0 KiB
HTML
152 lines
6.0 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>DICOM / UPP 配准工作台</title>
|
|
<link rel="stylesheet" href="/static/styles.css" />
|
|
<script type="importmap">
|
|
{
|
|
"imports": {
|
|
"three": "/static/vendor/three.module.min.js"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="loginOverlay" class="login-overlay">
|
|
<form id="loginForm" class="login-panel">
|
|
<span class="brand-mark"></span>
|
|
<h1>DICOM / UPP 配准工作台</h1>
|
|
<p>登录后从完整关联 CT 中选择 DICOM 与 STL 配准关系</p>
|
|
<input id="username" autocomplete="username" placeholder="账号" />
|
|
<input id="password" type="password" autocomplete="current-password" placeholder="密码" />
|
|
<button type="submit">登录</button>
|
|
<span id="loginError"></span>
|
|
</form>
|
|
</div>
|
|
|
|
<header class="topbar">
|
|
<div class="brand">
|
|
<span class="brand-mark"></span>
|
|
<div>
|
|
<h1>DICOM / UPP 配准工作台</h1>
|
|
<p id="subtitle">完整关联 CT · STL 搭配 · 位姿参数</p>
|
|
</div>
|
|
</div>
|
|
<div class="top-actions">
|
|
<button id="relationBtn" class="ghost-btn accent" type="button">数据库关联可视化</button>
|
|
<button id="viewerBtn" class="ghost-btn" type="button">DICOM 阅片系统</button>
|
|
<span id="dbStatus" class="status-pill">数据库</span>
|
|
<button id="refreshBtn" class="ghost-btn" type="button">刷新</button>
|
|
<span id="userBadge" class="user-badge">未登录</span>
|
|
<button id="logoutBtn" class="ghost-btn" type="button">退出</button>
|
|
</div>
|
|
</header>
|
|
<div id="topLoading" class="top-loading hidden"><span></span></div>
|
|
|
|
<main class="workspace">
|
|
<aside class="case-panel panel">
|
|
<div class="panel-head">
|
|
<div>
|
|
<h2>完整关联 CT</h2>
|
|
<p>DICOM + STL</p>
|
|
</div>
|
|
<span id="caseCount">0</span>
|
|
</div>
|
|
<input id="caseSearch" class="search-input" placeholder="搜索 CT号 / 姓名 / 模型" />
|
|
<div class="filter-row">
|
|
<button class="filter active" data-status="">全部</button>
|
|
<button class="filter" data-status="unregistered">未配准</button>
|
|
<button class="filter" data-status="registered">已配准</button>
|
|
</div>
|
|
<div class="part-filter">
|
|
<button class="filter active" data-part="">全部部位</button>
|
|
<button class="filter" data-part="head_neck">头颈部</button>
|
|
<button class="filter" data-part="chest">胸部</button>
|
|
<button class="filter" data-part="upper_abdomen">上腹部</button>
|
|
<button class="filter" data-part="lower_abdomen">下腹部</button>
|
|
<button class="filter" data-part="pelvis">盆腔</button>
|
|
</div>
|
|
<div id="caseList" class="case-list"></div>
|
|
</aside>
|
|
|
|
<section class="main-panel">
|
|
<section class="case-strip panel">
|
|
<div>
|
|
<h2 id="activeTitle">未选择 CT</h2>
|
|
<p id="activeMeta">从左侧选择一个完整关联检查</p>
|
|
</div>
|
|
<div id="activeTags" class="tag-line"></div>
|
|
</section>
|
|
|
|
<section class="work-grid">
|
|
<aside class="series-panel panel">
|
|
<div class="panel-head compact">
|
|
<h2>DICOM 序列</h2>
|
|
<span id="seriesCount">0</span>
|
|
</div>
|
|
<div id="seriesList" class="series-list"></div>
|
|
</aside>
|
|
|
|
<section class="viewer-panel panel">
|
|
<div class="viewer-head">
|
|
<div class="segmented">
|
|
<button data-window="default" class="active">默认</button>
|
|
<button data-window="bone">骨窗</button>
|
|
<button data-window="soft">软组织</button>
|
|
<button data-window="contrast">高对比</button>
|
|
</div>
|
|
<div class="viewer-tools">
|
|
<button id="fitBtn" class="ghost-btn">视角复位</button>
|
|
<button id="saveBtn" class="primary-btn">保存配准</button>
|
|
<button id="statusBtn" class="state-btn">标为已配准</button>
|
|
</div>
|
|
</div>
|
|
<div class="fusion-stage">
|
|
<div id="fusionViewport"></div>
|
|
<div class="fusion-hud left" id="fusionStatus">等待选择 DICOM 与 STL</div>
|
|
<div class="fusion-hud right" id="fusionMeta">DICOM - · STL -</div>
|
|
<div id="fusionLoading" class="fusion-loading hidden">
|
|
<span>正在构建融合视图</span>
|
|
<div><i></i></div>
|
|
</div>
|
|
</div>
|
|
<div class="slice-row">
|
|
<span id="sliceLabel">切片 0 / 0</span>
|
|
<input id="sliceSlider" type="range" min="0" max="0" value="0" />
|
|
</div>
|
|
</section>
|
|
|
|
<aside class="right-panel">
|
|
<section class="panel stl-panel">
|
|
<div class="panel-head compact">
|
|
<h2>STL 模型</h2>
|
|
<span id="stlCount">0</span>
|
|
</div>
|
|
<div id="modelRail" class="chip-rail"></div>
|
|
<div id="stlList" class="stl-list"></div>
|
|
</section>
|
|
|
|
<section class="panel pose-panel">
|
|
<div class="panel-head compact">
|
|
<h2>位姿参数</h2>
|
|
<span id="saveState">未保存</span>
|
|
</div>
|
|
<div id="poseGrid" class="pose-grid"></div>
|
|
<div class="flip-row">
|
|
<button data-flip="flipX">镜像 X</button>
|
|
<button data-flip="flipY">镜像 Y</button>
|
|
<button data-flip="flipZ">镜像 Z</button>
|
|
</div>
|
|
<textarea id="notes" class="notes" rows="2" placeholder="配准备注"></textarea>
|
|
</section>
|
|
</aside>
|
|
</section>
|
|
</section>
|
|
</main>
|
|
|
|
<script type="module" src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|