chore(observability): clarify quick review completion copy
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
<!-- cspell:ignore MOMO datatables Treemap -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-TW">
|
||||
{% extends 'ewoooc_base.html' %}
|
||||
{% block title %}業績分析 - WOOO TECH{% endblock %}
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% block extra_css %}
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title>業績分析 - WOOO TECH</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<!-- DataTables CSS -->
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/dataTables.bootstrap5.min.css">
|
||||
<!-- V-New: Flatpickr 日期選擇器 CSS -->
|
||||
@@ -18,6 +12,7 @@
|
||||
<!-- V-Fix: 使用 Chart.js v3.9.1 以確保與 Treemap v2.0.2 相容 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.9.1/dist/chart.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-chart-treemap@2.0.2/dist/chartjs-chart-treemap.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='js/analysis-chart-theme.js') }}?v={{ system_version|default('v2') }}"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
@@ -563,10 +558,10 @@
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/analysis-workbench.css') }}?v={{ system_version|default('v2') }}">
|
||||
{% endblock %}
|
||||
|
||||
<body class="bg-body-tertiary">
|
||||
{% include 'components/_navbar.html' %}
|
||||
{% block ewooo_content %}
|
||||
|
||||
<!-- Loading Overlay -->
|
||||
<div id="loadingOverlay">
|
||||
@@ -607,17 +602,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid px-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4 mt-4">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<h4 class="mb-0 fw-bold text-dark"><i class="fas fa-chart-pie me-2 text-primary"></i>業績分析儀表板</h4>
|
||||
<div class="analysis-workbench sales-analysis-page">
|
||||
<section class="analysis-page-hero">
|
||||
<div>
|
||||
<h1 class="analysis-page-title"><i class="fas fa-chart-pie"></i>業績分析儀表板</h1>
|
||||
<p class="text-muted mb-0 mt-2">檢視即時業績、分類、品牌、廠商與行銷活動貢獻。</p>
|
||||
{% if db_data_range %}
|
||||
<span class="badge bg-secondary" style="font-size: 0.85rem; font-weight: normal;">
|
||||
<span class="badge bg-secondary mt-2" style="font-size: 0.85rem; font-weight: normal;">
|
||||
<i class="fas fa-calendar-alt me-1"></i>資料期間: {{ db_data_range }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<div class="analysis-page-meta">
|
||||
{% if not no_filter %}
|
||||
<span class="badge bg-success">
|
||||
<i class="fas fa-database me-1"></i>
|
||||
@@ -636,7 +632,9 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% include 'components/_analysis_report_tabs.html' %}
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-warning">
|
||||
@@ -1180,8 +1178,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="card kpi-card bg-success text-white h-100 shadow-sm"
|
||||
style="background-color: #20c997 !important;">
|
||||
<div class="card kpi-card bg-success text-white h-100 shadow-sm">
|
||||
<div class="card-body p-3">
|
||||
<div class="kpi-label text-white-50">毛利率 (%)</div>
|
||||
<div class="kpi-value">{{ "{:.1f}%".format(kpi.gross_margin_rate) }}</div>
|
||||
@@ -1960,6 +1957,7 @@
|
||||
const cols = salesData.cols;
|
||||
const selectedMetric = salesData.selectedMetric;
|
||||
|
||||
if (document.getElementById('barChart')) {
|
||||
// 1. 橫向長條圖 (Horizontal Bar Chart) - 更易讀
|
||||
const ctxBar = document.getElementById('barChart').getContext('2d');
|
||||
new Chart(ctxBar, {
|
||||
@@ -2620,6 +2618,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 3. 初始化 DataTables (分頁、搜尋、排序)
|
||||
$(document).ready(function () {
|
||||
@@ -3160,7 +3159,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user