44e77dcb0e
**重构前**(旧编号 02-11): - docs/02-产品需求/ → 00 产品规划/PRD - docs/03-技术架构/ → 01-05 子目录散落 - docs/04-原型设计/ → 01-02 产品设计(HTML 原型) - docs/05-原型设计/ → screens/ - docs/06-测试素材/ → 02-E2E / 03-功能 / 04-版本测试 - docs/07-项目管理/ → 任务说明书/日报/计划 - docs/08-安全审计/ → 审计报告 - docs/09-堡垒运维/ → toolbox / deploy - docs/10-项目管理/ → 任务说明书(重复) - docs/11-历史归档/ → deploy-nas-archived **重构后**(新编号 00-07,语义化): - docs/00-产品开发流程与文档管理规范.md - docs/00-版本迭代总览.md - docs/01-产品文档/ (PRD/原型/认证/会话/AI 服务/坐席/集成) - docs/02-技术文档/ (技术方案/架构图/重构记录/前端改造/实现配置) - docs/03-测试文档/ (E2E/功能用例/版本报告/缺陷单) - docs/04-运维文档/ (部署运维/运维指南) - docs/05-运营文档/ (品牌推广/用户手册) - docs/06-安全审计/ (审计报告) - docs/07-项目管理/ (任务说明书/日报/计划/看板) **净收益**: - 目录编号与产品文档管理规范对齐(按文档阶段 01-07 编号) - 消除 02-产品需求 与 10-项目管理 的编号重叠 - 子目录按文档类型分组(如 01-产品文档/00-产品规划、01-产品文档/01-认证与登录) - 把运维/安全/项目管理从 0X 散落改为 04/06/07 合计 494 文件 + 78495 行 / - 14076 行
240 lines
12 KiB
HTML
240 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>坐席端 · 版本链可视化</title>
|
|
<style>
|
|
:root {
|
|
--accent: #3b82f6;
|
|
--primary: #07C160;
|
|
--bg-primary: #f5f6fa;
|
|
--bg-secondary: #ffffff;
|
|
--bg-tertiary: #eef0f5;
|
|
--text-primary: #1a1a2e;
|
|
--text-secondary: #555770;
|
|
--text-tertiary: #9ca3af;
|
|
--border-color: #e5e7eb;
|
|
--shadow: 0 1px 4px rgba(0,0,0,0.06);
|
|
--radius: 12px;
|
|
--color-employee-bg: #3b82f6;
|
|
--color-agent-bg: #ffffff;
|
|
--color-agent-border: #e5e7eb;
|
|
--color-ai-bg: #e8f5e9;
|
|
--color-ai-text: #1b5e20;
|
|
--color-system-text: #9ca3af;
|
|
--color-system-bg: #eef0f5;
|
|
--color-warning: #ff9800;
|
|
--color-danger: #ef4444;
|
|
--color-success: #22c55e;
|
|
}
|
|
[data-theme="dark"] {
|
|
--bg-primary: #0f172a;
|
|
--bg-secondary: #1e293b;
|
|
--bg-tertiary: #162032;
|
|
--text-primary: #e2e8f0;
|
|
--text-secondary: #94a3b8;
|
|
--border-color: #334155;
|
|
--shadow: 0 1px 4px rgba(0,0,0,0.3);
|
|
--color-ai-bg: #0d3320;
|
|
--color-ai-text: #86efac;
|
|
}
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html, body { height: 100%; font-family: -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); }
|
|
|
|
/* 布局 */
|
|
.container { display: flex; height: 100vh; }
|
|
|
|
/* 左侧边栏 */
|
|
.sidebar { width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
|
|
.sidebar-header { padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 14px; }
|
|
.session-list { flex: 1; overflow-y: auto; }
|
|
.session-item { padding: 12px 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
|
|
.session-item:hover { background: var(--bg-tertiary); }
|
|
.session-item.active { background: var(--color-ai-bg); border-left: 3px solid var(--primary); }
|
|
.session-item .title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
|
|
.session-item .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); }
|
|
.session-item .status { padding: 2px 6px; border-radius: 8px; font-size: 10px; }
|
|
.status.paused { background: #fff7e6; color: #d46b08; }
|
|
.status.corrected { background: #e6f7ff; color: #1890ff; }
|
|
|
|
/* 主内容区 */
|
|
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
|
|
.header { padding: 14px 20px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
|
|
.header h1 { font-size: 16px; font-weight: 600; }
|
|
.header .btn { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-secondary); font-size: 12px; cursor: pointer; }
|
|
|
|
/* 标签页 */
|
|
.tabs { display: flex; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
|
|
.tab { padding: 12px 20px; font-size: 13px; color: var(--text-secondary); cursor: pointer; position: relative; }
|
|
.tab.active { color: var(--primary); font-weight: 500; }
|
|
.tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--primary); }
|
|
|
|
/* 内容区 */
|
|
.content { flex: 1; display: flex; overflow: hidden; }
|
|
|
|
/* 聊天面板 */
|
|
.chat-panel { flex: 1; border-right: 1px solid var(--border-color); overflow-y: auto; padding: 16px; }
|
|
.message { display: flex; gap: 10px; margin-bottom: 14px; max-width: 80%; }
|
|
.message.employee { margin-left: auto; flex-direction: row-reverse; }
|
|
.message .avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
|
|
.message.employee .avatar { background: var(--color-employee-bg); color: white; }
|
|
.message.ai .avatar { background: var(--accent); color: white; }
|
|
.message .bubble { padding: 8px 12px; border-radius: 12px; font-size: 13px; }
|
|
.message.employee .bubble { background: var(--color-employee-bg); color: white; }
|
|
.message.ai .bubble { background: var(--bg-secondary); border: 1px solid var(--border-color); }
|
|
|
|
/* 右侧面板 */
|
|
.info-panel { width: 340px; background: var(--bg-secondary); overflow-y: auto; }
|
|
.panel-section { padding: 14px; border-bottom: 1px solid var(--border-color); }
|
|
.panel-section h3 { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
|
|
|
|
/* 版本时间线 */
|
|
.version-timeline { position: relative; padding-left: 16px; }
|
|
.version-timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
|
|
.version-item { position: relative; padding: 8px 0 12px; }
|
|
.version-item::before { content: ''; position: absolute; left: -14px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: white; border: 2px solid var(--primary); }
|
|
.version-item.current::before { background: var(--primary); }
|
|
.version-item .v-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
|
|
.version-item .v-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 500; }
|
|
.version-item .v-tag.v3 { background: var(--color-ai-bg); color: var(--color-ai-text); }
|
|
.version-item .v-tag.v2 { background: #fff7e6; color: #d46b08; }
|
|
.version-item .v-tag.v1 { background: var(--bg-tertiary); color: #999; }
|
|
.version-item .v-time { font-size: 11px; color: var(--text-secondary); }
|
|
.version-item .v-content { font-size: 13px; }
|
|
.version-item .v-change { font-size: 11px; color: var(--color-danger); margin-top: 2px; }
|
|
|
|
/* Diff代码块 */
|
|
.diff-block { background: #1e1e1e; border-radius: 8px; padding: 12px; font-family: 'Consolas', monospace; font-size: 11px; overflow-x: auto; }
|
|
.diff-line { display: flex; line-height: 1.6; }
|
|
.diff-line .num { width: 24px; color: #666; text-align: right; padding-right: 8px; }
|
|
.diff-line .content { color: #d4d4d4; }
|
|
.diff-line.added { background: rgba(34,197,94,0.15); }
|
|
.diff-line.added .content { color: #4ec9b0; }
|
|
.diff-line.removed { background: rgba(239,68,68,0.15); }
|
|
.diff-line.removed .content { color: #f14c4c; }
|
|
|
|
/* 排查步骤 */
|
|
.diagnosis-steps { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.step-chip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg-tertiary); border-radius: 16px; font-size: 12px; cursor: pointer; }
|
|
.step-chip.active { background: var(--color-ai-bg); color: var(--color-ai-text); }
|
|
.step-chip .num { width: 18px; height: 18px; border-radius: 50%; background: #ddd; display: flex; align-items: center; justify-content: center; font-size: 10px; }
|
|
.step-chip.active .num { background: var(--primary); color: white; }
|
|
.step-chip.completed .num { background: var(--primary); color: white; }
|
|
|
|
/* 按钮组 */
|
|
.btn-group { display: flex; gap: 8px; margin-top: 12px; }
|
|
.btn-group button { flex: 1; padding: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary); border-radius: 6px; font-size: 12px; cursor: pointer; }
|
|
.btn-group button:hover { background: var(--bg-tertiary); }
|
|
.btn-group .undo { color: var(--color-warning); }
|
|
|
|
/* 统计 */
|
|
.stats-row { display: flex; gap: 10px; }
|
|
.stat-card { flex: 1; background: var(--bg-tertiary); border-radius: 8px; padding: 10px; text-align: center; }
|
|
.stat-card .val { font-size: 20px; font-weight: 600; color: var(--primary); }
|
|
.stat-card .label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- 左侧会话列表 -->
|
|
<div class="sidebar">
|
|
<div class="sidebar-header">📋 活跃会话</div>
|
|
<div class="session-list">
|
|
<div class="session-item">
|
|
<div class="title">打印机故障排查</div>
|
|
<div class="meta"><span>14:30</span><span class="status paused">已暂停</span></div>
|
|
</div>
|
|
<div class="session-item active">
|
|
<div class="title">VPN连接问题</div>
|
|
<div class="meta"><span>14:35</span><span class="status corrected">已更正</span></div>
|
|
</div>
|
|
<div class="session-item">
|
|
<div class="title">账号权限申请</div>
|
|
<div class="meta"><span>14:20</span><span class="status">进行中</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主内容区 -->
|
|
<div class="main">
|
|
<div class="header">
|
|
<h1>VPN连接问题 - 会话详情</h1>
|
|
<div style="display:flex;gap:8px;">
|
|
<button class="btn">📤 转接</button>
|
|
<button class="btn">🔒 关闭</button>
|
|
</div>
|
|
</div>
|
|
<div class="tabs">
|
|
<div class="tab">对话记录</div>
|
|
<div class="tab active">版本链</div>
|
|
<div class="tab">排查步骤</div>
|
|
<div class="tab">用户信息</div>
|
|
</div>
|
|
<div class="content">
|
|
<!-- 聊天面板 -->
|
|
<div class="chat-panel">
|
|
<div class="message employee"><div class="avatar">👤</div><div class="bubble">VPN连不上了</div></div>
|
|
<div class="message ai"><div class="avatar">🤖</div><div class="bubble">好的,我来帮您排查。请问您是电脑端还是手机端?</div></div>
|
|
<div class="message employee"><div class="avatar">👤</div><div class="bubble">电脑端</div></div>
|
|
<div class="message employee"><div class="avatar">👤</div><div class="bubble">抱歉,部门写错了,我是财务部的</div></div>
|
|
<div class="message ai"><div class="avatar">🤖</div><div class="bubble">好的,已更新为财务部。排查步骤已重新计算。</div></div>
|
|
</div>
|
|
|
|
<!-- 右侧面板 -->
|
|
<div class="info-panel">
|
|
<div class="panel-section">
|
|
<h3>📜 版本链</h3>
|
|
<div class="version-timeline">
|
|
<div class="version-item current">
|
|
<div class="v-header"><span class="v-tag v3">V3</span><span class="v-time">14:35</span></div>
|
|
<div class="v-content">部门:财务部</div>
|
|
<div class="v-change">← 刚刚更正</div>
|
|
</div>
|
|
<div class="version-item">
|
|
<div class="v-header"><span class="v-tag v2">V2</span><span class="v-time">14:32</span></div>
|
|
<div class="v-content">部门:技术部</div>
|
|
</div>
|
|
<div class="version-item">
|
|
<div class="v-header"><span class="v-tag v1">V1</span><span class="v-time">14:30</span></div>
|
|
<div class="v-content">初始收集</div>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group">
|
|
<button class="undo">↩️ 撤销更改</button>
|
|
<button>🔄 恢复此版本</button>
|
|
</div>
|
|
</div>
|
|
<div class="panel-section">
|
|
<h3>📊 V2 → V3 Diff</h3>
|
|
<div class="diff-block">
|
|
<div class="diff-line"><span class="num">1</span><span class="content"> "department": "技术部",</span></div>
|
|
<div class="diff-line removed"><span class="num">2</span><span class="content">- "department": "技术部",</span></div>
|
|
<div class="diff-line added"><span class="num">2</span><span class="content">+ "department": "财务部",</span></div>
|
|
<div class="diff-line"><span class="num">3</span><span class="content"> "device": "电脑端",</span></div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-section">
|
|
<h3>🔧 排查步骤</h3>
|
|
<div class="diagnosis-steps">
|
|
<div class="step-chip completed"><span class="num">✓</span>确认端类型</div>
|
|
<div class="step-chip active"><span class="num">2</span>确认部门</div>
|
|
<div class="step-chip"><span class="num">3</span>检测网络权限</div>
|
|
<div class="step-chip"><span class="num">4</span>检查客户端</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-section">
|
|
<h3>📈 统计</h3>
|
|
<div class="stats-row">
|
|
<div class="stat-card"><div class="val">3</div><div class="label">版本数</div></div>
|
|
<div class="stat-card"><div class="val">1</div><div class="label">更正次数</div></div>
|
|
<div class="stat-card"><div class="val">2</div><div class="label">触发重算</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|