From de773a95cdca327eada3c7f33695a7a8ede74147 Mon Sep 17 00:00:00 2001 From: zhengchiliu <857493511@qq.com> Date: Wed, 16 Sep 2026 02:58:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E7=9B=98):=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=A9=BF=E6=90=AD=E7=BB=9F=E8=AE=A1=E7=BB=B4=E5=BA=A6?= =?UTF-8?q?=E4=B8=BA=E5=85=AC=E5=BC=80/=E7=A7=81=E5=AF=86/=E5=B0=81?= =?UTF-8?q?=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将穿搭审核状态统计改为公开、私密、已封禁三个维度,并更新待办事项与内容概况面板展示。 --- src/types/dashboard.ts | 10 ++++++---- src/views/dashboard/DashboardView.vue | 23 ++++++++++++++--------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/types/dashboard.ts b/src/types/dashboard.ts index 164a2bb..f542801 100644 --- a/src/types/dashboard.ts +++ b/src/types/dashboard.ts @@ -1,9 +1,10 @@ export interface DashboardContent { + // 业务侧公开穿搭即自动过审,不再输出审核状态分布; + // 公开/私密按 is_public 统计且均已剔除已封禁,三者互不重叠。 outfit: { total: number - pending: number - passed: number - rejected: number + public: number + private: number banned: number } clothes: { @@ -77,7 +78,8 @@ export interface DashboardSummary { } todo: { refund_pending: number - outfit_pending_audit: number + outfit_public_total: number + outfit_banned: number goods_on_shelf: number } content: DashboardContent diff --git a/src/views/dashboard/DashboardView.vue b/src/views/dashboard/DashboardView.vue index 43815a6..0946435 100644 --- a/src/views/dashboard/DashboardView.vue +++ b/src/views/dashboard/DashboardView.vue @@ -140,11 +140,11 @@ const outfitPieOption = computed(() => { const o = summary.value?.content.outfit return pieOption( [ - { name: '待审核', value: o?.pending ?? 0 }, - { name: '已通过', value: o?.passed ?? 0 }, - { name: '未通过', value: o?.rejected ?? 0 }, + { name: '公开', value: o?.public ?? 0 }, + { name: '私密', value: o?.private ?? 0 }, + { name: '已封禁', value: o?.banned ?? 0 }, ], - ['#f59e0b', '#22c55e', '#ef4444'], + ['#22c55e', '#9aa3c0', '#ef4444'], ) }) @@ -209,8 +209,13 @@ const goodsTypePieOption = computed(() => {
- {{ summary?.todo.outfit_pending_audit ?? 0 }} - 待审核穿搭 + {{ summary?.todo.outfit_public_total ?? 0 }} + 公开穿搭 +
+
+
+ {{ summary?.todo.outfit_banned ?? 0 }} + 已封禁穿搭
@@ -307,11 +312,11 @@ const goodsTypePieOption = computed(() => {
- 内容审核概况 - 待审穿搭 {{ summary?.content.outfit.pending ?? 0 }} + 内容概况 + 已封禁 {{ summary?.content.outfit.banned ?? 0 }}
-
穿搭审核
+
穿搭分布