资源组ui修改

This commit is contained in:
zhx 2026-05-20 14:31:45 +08:00
parent 35d9c1a9d1
commit c7f7a7047f
2 changed files with 1043 additions and 444 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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) {