diff --git a/apps/src/api/legacy/resident-activity.ts b/apps/src/api/legacy/resident-activity.ts index f08dcb9..f9a790f 100644 --- a/apps/src/api/legacy/resident-activity.ts +++ b/apps/src/api/legacy/resident-activity.ts @@ -91,6 +91,15 @@ export async function saveSpecifiedGiftWeeklyRankConfig(data: Record, +) { + return requestClient.get>( + `${SPECIFIED_GIFT_WEEKLY_RANK_BASE}/current-rank`, + { params }, + ); +} + export async function pageSpecifiedGiftWeeklyRankSnapshots(params: Record) { return requestClient.get>>( `${SPECIFIED_GIFT_WEEKLY_RANK_BASE}/snapshot/page`, diff --git a/apps/src/views/operate/baishun-config.vue b/apps/src/views/operate/baishun-config.vue index e8bf917..0021769 100644 --- a/apps/src/views/operate/baishun-config.vue +++ b/apps/src/views/operate/baishun-config.vue @@ -58,6 +58,10 @@ const profileOptions = [ { label: '正式环境', value: 'PROD' }, { label: '测试环境', value: 'TEST' }, ]; +const importShowcaseOptions = [ + { label: '默认上架', value: true as any }, + { label: '默认下架', value: false as any }, +]; const contextQuery = reactive({ profile: 'PROD', sysOrigin: '' }); const providerForm = reactive(createProviderForm()); @@ -77,6 +81,7 @@ const totalCatalog = ref(0); const catalogList = ref>>([]); const selectedCatalogKeys = ref>([]); const activeProfile = ref('PROD'); +const importDefaultShowcase = ref(true as any); const isCurrentProfileActive = computed( () => activeProfile.value === contextQuery.profile, @@ -308,6 +313,7 @@ async function handleImportSelected() { profile: contextQuery.profile, sysOrigin: contextQuery.sysOrigin, vendorGameIds: selectedCatalogKeys.value, + defaultShowcase: importDefaultShowcase.value, }); selectedCatalogKeys.value = []; message.success( @@ -452,6 +458,11 @@ async function handleImportSelected() { + + + + + + + +
+ +