89 lines
3.6 KiB
HTML
89 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>运营周报 v3 - 致远速联</title>
|
||
<link rel="stylesheet" href="/static/css/weekly_report.css">
|
||
<style>
|
||
.deepseek-toggle {
|
||
margin-left: 20px;
|
||
}
|
||
.deepseek-toggle label {
|
||
margin-right: 10px;
|
||
}
|
||
.image-export-btn {
|
||
background-color: #28a745;
|
||
color: white;
|
||
border: none;
|
||
padding: 8px 16px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
margin-left: 10px;
|
||
}
|
||
.image-export-btn:hover {
|
||
background-color: #218838;
|
||
}
|
||
.image-export-btn:disabled {
|
||
background-color: #6c757d;
|
||
cursor: not-allowed;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<div class="nav">
|
||
<a href="./weekly_report_v3" class="nav-btn active">周报生成 v3</a>
|
||
</div>
|
||
|
||
<div class="header">
|
||
<h1>运营周报生成器 v3</h1>
|
||
<p>基于需求文档样式的周报生成,支持DeepSeek AI增强</p>
|
||
<div class="api-version">
|
||
<strong>API版本:v3</strong> - 基于需求文档样式,包含群组互动分析、热点话题、客户问题分类等深度分析
|
||
</div>
|
||
</div>
|
||
|
||
<div class="controls">
|
||
<div class="control-group">
|
||
<label for="week">选择周次:</label>
|
||
<select id="week" style="width: 200px;">
|
||
<option value="">请选择周次...</option>
|
||
</select>
|
||
<div class="deepseek-toggle">
|
||
<label>
|
||
<input type="checkbox" id="use-deepseek" checked> 使用DeepSeek AI增强
|
||
</label>
|
||
</div>
|
||
<button class="btn" onclick="generateReport()">生成周报</button>
|
||
<button class="btn" onclick="generateCurrentWeekReport()">本周周报</button>
|
||
<button class="export-btn" onclick="exportReport()">导出报告</button>
|
||
<button class="image-export-btn" onclick="exportReportAsImage()" id="image-export-btn" disabled>导出图片</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="report-container" class="report-container" style="display: none;">
|
||
<div class="preview-controls">
|
||
<button id="preview-toggle" class="preview-btn active" onclick="togglePreview('preview')">预览模式</button>
|
||
<button id="source-toggle" class="preview-btn" onclick="togglePreview('source')">源代码模式</button>
|
||
</div>
|
||
<div id="report-content" class="report-content"></div>
|
||
<div id="markdown-source" class="markdown-source" style="display: none;">
|
||
<pre><code id="source-content"></code></pre>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="loading" class="loading" style="display: none;">
|
||
<p>正在生成周报,请稍候...</p>
|
||
<div id="loading-details" style="margin-top: 10px; font-size: 12px; color: #666;"></div>
|
||
</div>
|
||
|
||
<div id="error" class="error" style="display: none;"></div>
|
||
</div>
|
||
<script src="/static/js/html2canvas.min.js"></script>
|
||
<script src="/static/js/markdown-parser.js"></script>
|
||
<script src="/static/js/markdown-plugin-table.js"></script>
|
||
<script src="/static/js/h2p.js"></script>
|
||
<script src="/static/js/weekly_report_v3.js"></script>
|
||
</body>
|
||
</html> |