overview.html 3.85 KB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>技术方案总览 — $project</title>
<style>
$CSS
.overview-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.overview-table .row-confirmed { border-left: 3px solid var(--color-success); }
.overview-table .row-pending { border-left: 3px solid var(--color-pending); }
.overview-table .row-doubt { border-left: 3px solid var(--color-warning); }
.tech-id { font-family: var(--font-mono); font-weight: 700; color: var(--color-primary); }
.detail-link { color: var(--color-primary); text-decoration: none; font-weight: 500; font-size: 0.85rem; }
.detail-link:hover { text-decoration: underline; }
.interaction-id { font-family: var(--font-mono); font-weight: 600; }
.interaction-type { display: inline-block; padding: 2px 10px; background: var(--color-primary-light); color: var(--color-primary-dark); border-radius: 4px; font-size: 0.78rem; font-weight: 500; }
</style>
</head>
<body>
<nav class="top-nav">
  <div class="nav-left">
    <a href="../index.html" class="back-link" title="返回文档导航中心">🏠 导航</a>
    <h1 class="nav-title">📋 $project — 技术方案设计</h1>
  </div>
  <div class="nav-right">
    <span class="nav-version">v$version</span>
    <span class="badge badge-${status_badge}">$review_status</span>
    <div class="nav-links">
      <span class="nav-label">详细方案:</span>
      $scheme_nav_links
    </div>
  </div>
</nav>

<main class="container">
  <div class="tabs">
    <div class="tab-nav">
      <button class="tab-btn active" onclick="switchTab(event, 'tab-overview')">方案总览</button>
      <button class="tab-btn" onclick="switchTab(event, 'tab-interaction')">交互关系</button>
      <button class="tab-btn" onclick="switchTab(event, 'tab-structure')">文件夹结构</button>
    </div>

    <div class="tab-content active" id="tab-overview">
      <div class="card">
        <div class="card-header"><h3 class="card-title">文档信息</h3></div>
        <div class="card-body">
          <table class="data-table">
            <tr><td style="width:120px;font-weight:600">项目名称</td><td>$project</td></tr>
            <tr><td style="width:120px;font-weight:600">文档版本</td><td>v$version</td></tr>
            <tr><td style="width:120px;font-weight:600">创建日期</td><td>$date</td></tr>
            <tr><td style="width:120px;font-weight:600">评审状态</td><td><span class="badge badge-${status_badge}">$review_status</span></td></tr>
          </table>
        </div>
      </div>

      <h3 style="margin:20px 0 12px">技术方案总览</h3>
      <table class="data-table overview-table">
        <thead>
          <tr><th>编号</th><th>方案名称</th><th>实现目标</th><th>技术栈摘要</th><th>确认状态</th><th>详情</th></tr>
        </thead>
        <tbody>
          $scheme_rows
        </tbody>
      </table>
    </div>

    <div class="tab-content" id="tab-interaction">
      $interaction_svg
      <h3 style="margin:20px 0 12px">交互关系明细</h3>
      <table class="data-table">
        <thead><tr><th>编号</th><th>方案 A</th><th>方案 B</th><th>交互方式</th><th>说明</th></tr></thead>
        <tbody>
          $interaction_rows
        </tbody>
      </table>
    </div>

    <div class="tab-content" id="tab-structure">
      <div class="tree">
        $folder_tree
      </div>
    </div>
  </div>
</main>
<footer class="footer">Magic-Vision-Spec · 技术方案设计 · v$version</footer>

<script>
function switchTab(event, tabId) {
  document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
  document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active'));
  event.target.classList.add('active');
  document.getElementById(tabId).classList.add('active');
}
</script>
</body>
</html>