feat: 添加系统日志功能,记录运行时错误和AI调用失败,提供日志查看页面

This commit is contained in:
2026-03-14 00:32:20 +08:00
parent d2d63d5e61
commit dc7efb8ff8
10 changed files with 208 additions and 2 deletions

View File

@@ -91,7 +91,10 @@
<section class="panel ai-panel" id="ai-panel">
<div class="ai-panel-head">
<h2>AI补货建议</h2>
<a class="btn btn-light" href="{{ url_for('ai_settings_page') }}">参数</a>
<div class="hero-actions">
<a class="btn btn-light" href="{{ url_for('system_logs_page') }}">日志</a>
<a class="btn btn-light" href="{{ url_for('ai_settings_page') }}">参数</a>
</div>
</div>
<p class="hint">根据低库存与近30天出库数据生成可执行补货建议。</p>
<button class="btn" id="ai-restock-btn" type="button">生成建议</button>