From c7f7a7047f64063a6e0526b7779ba45647bd52d1 Mon Sep 17 00:00:00 2001 From: zhx Date: Wed, 20 May 2026 14:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=BB=84ui=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../props/components/source-group-drawer.vue | 1479 ++++++++++++----- apps/src/views/props/shared.ts | 8 +- 2 files changed, 1043 insertions(+), 444 deletions(-) diff --git a/apps/src/views/props/components/source-group-drawer.vue b/apps/src/views/props/components/source-group-drawer.vue index 248e0f5..7654bc7 100644 --- a/apps/src/views/props/components/source-group-drawer.vue +++ b/apps/src/views/props/components/source-group-drawer.vue @@ -1,41 +1,43 @@ diff --git a/apps/src/views/props/shared.ts b/apps/src/views/props/shared.ts index a938dff..d32030c 100644 --- a/apps/src/views/props/shared.ts +++ b/apps/src/views/props/shared.ts @@ -248,6 +248,7 @@ export function getPropsTypeName(value?: null | string) { return ( PROPS_TYPES.find((item) => item.value === value)?.name || PROPS_STORE_TYPES.find((item) => item.value === value)?.name || + BADGE_TYPE_OPTIONS.find((item) => item.value === value)?.name || PROPS_SOURCE_GROUP_TYPE_MAP[value]?.name || value ); @@ -279,7 +280,12 @@ export function isPropsCouponType(type?: null | string) { } export function isBadgeRewardType(type?: null | string) { - return type === 'BADGE' || type === 'ROOM_BADGE' || type === 'HONOR_ACTIVITY'; + return ( + type === 'BADGE' || + type === 'ROOM_BADGE' || + type === 'HONOR_ACTIVITY' || + BADGE_TYPE_OPTIONS.some((item) => item.value === type) + ); } export function isPropsSourceType(type?: null | string) {