Skip to content

[P2] dashboard: no period-over-period primitive — "this week vs last" needs custom flows #1320

@xuyushun441-sys

Description

@xuyushun441-sys

来源:docs/PLATFORM_GAPS_FROM_TEMPLATES.md 第 38 条(P2)。

现象

平台没有周期对比(period-over-period)原语:

  • 本周 vs 上周
  • 本月 vs 上月
  • YoY 同比

每个运营复盘看板都缺这一半信息——只有「当前是多少」、看不到「比上次涨/跌多少」。

建议范围

M1:metric widget 周期对比

  • compareTo: 'previousPeriod' | 'previousYear' | { offset: '7d' }
  • 显示主值 + 副值(百分比变化 + 箭头)

M2:chart widget 双轨

  • bar / line 上叠加上一个周期的对照线 / 灰柱

M3:自定义周期

  • 模板可声明「财年」「财月」等业务自定义周期

验收

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions