新增 - 运营幸运数据查询

This commit is contained in:
2025-07-21 18:55:57 +08:00
parent 7859716ba5
commit 0fd68950fb
2 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import request from "@/utils/request";
// 列表
export const getOperatorPersonalList = query => {
return request({
url: '/admin/lucky24/record/operatorPersonal',
method: 'get',
params: query
});
};

View File

@@ -0,0 +1,151 @@
<template>
<div class="box">
<div class="inquire">
<span>用户ID</span>
<el-input
v-model="formData.erbanNo"
placeholder="请输入用户ID"
class="input"
></el-input>
</div>
<div class="inquire">
<span class="demonstration">日期</span>
<el-date-picker
v-model="dataTime"
type="daterange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</div>
<el-button style="" type="primary" @click="getData()">查询</el-button>
<el-button class="primary" type="primary" @click="resetFormData()"
>重置</el-button
>
<!-- 表格数据 -->
<el-table
v-loading="tableData.loading"
:data="tableData.data"
ref="multipleTable"
@selection-change="handleSelectionChange"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="date" align="center" label="日期" />
<el-table-column prop="erbanNo" align="center" label="用户ID" />
<el-table-column
prop="userRechargeLevel"
align="center"
label="充值等级"
/>
<el-table-column prop="totalInput" align="center" label="进入" />
<el-table-column prop="totalOutput" align="center" label="退出" />
<el-table-column prop="receiverReward" align="center" label="送主播" />
<el-table-column prop="productionRatio" align="center" label="比例" />
<el-table-column prop="production" align="center" label="差额" />
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
:current-page="formData.pageNo"
:page-size="formData.pageSize"
:page-sizes="[10, 20, 50, 100, 200]"
layout="sizes, prev, pager, next"
:total="formData.total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
</div>
</template>
<script>
export default {
name: "OperationLuckyDataQuery",
};
</script>
<script setup>
import { ref, onMounted, reactive, computed } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";
import { dateFormat } from "@/utils/system-helper";
import { getOperatorPersonalList } from "@/api/OperationLuckyDataQuery/OperationLuckyDataQuery.js";
const dataTime = ref([]);
const formData = reactive({
startDate: "",
endDate: "",
erbanNo: "",
});
const tableData = reactive({
data: [],
total: 0,
loading: false,
});
// 查询
const getData = () => {
tableData.loading = true;
if (dataTime.value && dataTime.value.length > 0) {
formData.startDate = dateFormat(dataTime.value[0], "yyyy-MM-dd");
formData.endDate = dateFormat(dataTime.value[1], "yyyy-MM-dd");
} else {
formData.startDate = dataTime.value;
formData.endDate = dataTime.value;
}
getOperatorPersonalList(formData).then((res) => {
if (res.code == 200) {
tableData.data = res.data;
tableData.loading = false;
tableData.total = res.data.total;
} else {
tableData.loading = false;
ElMessage.error(res.message);
}
});
};
//重置
const resetFormData = () => {
Object.assign(formData, {
startDate: "",
endDate: "",
erbanNo: "",
});
dataTime.value = [];
tableData.data = [];
};
</script>
<style lang="less" scoped>
.box {
padding-top: 20px;
background: #ecf0f5;
.inquire {
display: inline-block;
margin-right: 20px;
span {
margin-right: 10px;
}
.input {
width: 180px;
margin-right: 10px;
}
}
.dialogTableVisibleBut {
display: block;
margin: 30px 0 0 830px;
}
.paginationClass {
margin: 15px 0 5px 0px;
}
}
.selectBox {
display: flex;
height: 35px;
line-height: 35px;
margin-bottom: 20px;
}
</style>