This commit is contained in:
yziiy
2025-10-14 11:46:36 +08:00
parent 883fde1fc6
commit ec9bd399da
5 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
<script setup lang="ts">
import lotteryView from '@/views/room/roomList/Turntable/lotteryResults.vue'
</script>
<template>
<div class="viewPage">
<lotteryView></lotteryView>
</div>
</template>

View File

@@ -9,6 +9,7 @@ import {
getBlindBoxRule,
settingBlindBoxRule
} from "@/api/modules/blindBox";
import TurntableView from './Turntable.vue';
import editForm from "./form.vue";
import settingRuleView from './settingRule.vue'
import { addDialog } from "@/components/ReDialog";
@@ -266,6 +267,16 @@ export function useData() {
}
});
}
// 开奖记录
const openLotteryRecord = () => {
addDialog({
title: `盲盒转盘开奖记录`,
fullscreen: true,
hideFooter: true,
closeOnClickModal: false,
contentRenderer: () => h(TurntableView, { ref: formRef, formInline: null })
});
}
return {
searchForm,
searchLabel,
@@ -286,6 +297,7 @@ export function useData() {
openDialog,
resetSetting,
handleDelete,
setting
setting,
openLotteryRecord
};
}

View File

@@ -26,6 +26,7 @@ const {
openDialog,
resetSetting,
handleDelete,
openLotteryRecord,
setting
} = useData();
onMounted(() => {
@@ -56,8 +57,10 @@ defineOptions({
<PureTableBar title="盲盒转盘列表" :class="[isShow && !deviceDetection() ? '!w-[60vw]' : 'w-full']"
:columns="tableLabel" @refresh="onSearch">
<template #buttons>
<el-button type="text" @click="openLotteryRecord">开奖记录</el-button>
<el-popconfirm :title="`是否重置当前盲盒转盘的规则数量`" @confirm="resetSetting(row)">
<template #reference>
<el-button type="primary">
重置数量
</el-button>

View File

@@ -73,6 +73,10 @@ export function useData() {
label: "每期数量",
prop: "quantity"
},
{
label: "未开数量",
prop: "remaining_number"
},
{
label: "多少次后可参与开奖",
prop: "weight"

View File

@@ -13,14 +13,14 @@ const changeIndex = (data) => {
</script>
<template>
<div class="viewPage">
<el-row>
<!-- <el-row>
<el-button @click="changeIndex(ele)" :type="activeIndex === ele.index ? 'primary' : ''" v-for="ele in activeList"
:key="ele.index">{{
ele.name }}</el-button>
</el-row>
</el-row> -->
<div>
<statisticsView v-if="activeIndex === 0" :roomId="props.roomDetail.room_id" />
<lotteryView v-else :roomId="props.roomDetail.room_id"></lotteryView>
<!-- <lotteryView v-else :roomId="props.roomDetail.room_id"></lotteryView> -->
</div>
</div>
</template>