diff --git a/app.py b/app.py index 0db805a..5445bf1 100644 --- a/app.py +++ b/app.py @@ -95,8 +95,8 @@ except Exception as e: sys_log.error(f"無法檢測磁碟空間: {e}") # 🚩 系統版本定義 (備份與顯示用) -# 🚩 2026-05-01 V10.69: Speed up dashboard competitor overview with real cached product data -SYSTEM_VERSION = "V10.69" +# 🚩 2026-05-01 V10.70: Restore campaign operations table signals +SYSTEM_VERSION = "V10.70" # ========================================== # 🔒 SQL Injection 防護函數 diff --git a/config.py b/config.py index ba1c8e9..e0ebc43 100644 --- a/config.py +++ b/config.py @@ -254,7 +254,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.69" +SYSTEM_VERSION = "V10.70" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/templates/edm_dashboard_v2.html b/templates/edm_dashboard_v2.html index f8bfdff..655994e 100644 --- a/templates/edm_dashboard_v2.html +++ b/templates/edm_dashboard_v2.html @@ -417,7 +417,7 @@ .campaign-table { width: 100%; - min-width: 920px; + min-width: 1080px; border-collapse: collapse; font-size: var(--momo-font-size-sm); } @@ -483,9 +483,29 @@ } .campaign-product-id { + display: inline-flex; + align-items: center; + gap: 6px; margin-top: 4px; color: var(--momo-text-tertiary); + background: transparent; + border: 0; font-size: 11px; + font-family: var(--momo-font-family-mono); + font-weight: 800; + line-height: 1.4; + } + + .campaign-product-id:hover { + color: var(--momo-accent-strong); + } + + .campaign-product-meta { + display: flex; + align-items: center; + gap: 6px; + margin-top: 6px; + flex-wrap: wrap; } .campaign-category { @@ -547,6 +567,43 @@ font-weight: 800; } + .campaign-change-pct { + margin-left: 4px; + color: currentColor; + opacity: 0.72; + font-size: 11px; + } + + .campaign-sales-stack, + .campaign-track-stack { + display: grid; + gap: 6px; + } + + .campaign-sales-main { + color: var(--momo-text-primary); + font-size: 14px; + font-weight: 900; + } + + .campaign-sales-sub, + .campaign-track-line { + color: var(--momo-text-tertiary); + font-size: 11px; + font-weight: 800; + } + + .campaign-tooltip-trigger { + width: max-content; + color: var(--momo-accent-strong); + background: transparent; + border: 0; + font-size: 11px; + font-weight: 900; + text-decoration: underline; + text-underline-offset: 3px; + } + .campaign-empty { padding: 48px 16px; color: var(--momo-text-secondary); @@ -801,7 +858,7 @@
| 分類 | +分類 / 狀態 | {% set next_order_name = 'asc' if current_sort == 'name' and current_order == 'desc' else 'desc' %} 商品資訊 @@ -813,11 +870,12 @@ | {% if current_promo_page == 'edm' %} {% set next_order_qty = 'asc' if current_sort == 'remain_qty' and current_order == 'desc' else 'desc' %} - 倒數組數 + 銷售 / 庫存 {% else %} 狀態 {% endif %} | +追蹤資訊 |
|---|