新增 - 运营游戏数据查询
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
// 列表
|
// 运营幸运数据查询-列表
|
||||||
export const getOperatorPersonalList = query => {
|
export const getOperatorPersonalList = query => {
|
||||||
return request({
|
return request({
|
||||||
url: '/admin/lucky24/record/operatorPersonal',
|
url: '/admin/lucky24/record/operatorPersonal',
|
||||||
@@ -7,3 +7,19 @@ export const getOperatorPersonalList = query => {
|
|||||||
params: query
|
params: query
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 运营游戏数据查询-列表
|
||||||
|
export const getGameDataUserTotalALL = query => {
|
||||||
|
return request({
|
||||||
|
url: '/admin/gamedata/userTotalALL',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 游戏列表
|
||||||
|
export const getGameAllList = query => {
|
||||||
|
return request({
|
||||||
|
url: '/admin/game/allList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
});
|
||||||
|
};
|
187
src/views/system/OperationGameDataQuery.vue
Normal file
187
src/views/system/OperationGameDataQuery.vue
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
<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>
|
||||||
|
<div class="inquire">
|
||||||
|
<span>游戏</span>
|
||||||
|
<el-select
|
||||||
|
v-model="gameData"
|
||||||
|
placeholder="请选择"
|
||||||
|
@change="changeGame()"
|
||||||
|
value-key="gameName"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in gameOptions"
|
||||||
|
:key="item.gameName"
|
||||||
|
:label="item.gameName"
|
||||||
|
:value="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</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="erbanNo" align="center" label="用户ID" />
|
||||||
|
<el-table-column prop="chargeLevel" align="center" label="充值等级" />
|
||||||
|
<el-table-column prop="payGold" align="center" label="进入" />
|
||||||
|
<el-table-column prop="winGold" align="center" label="退出" />
|
||||||
|
<el-table-column prop="playNum" align="center" label="次数" />
|
||||||
|
<el-table-column prop="betRate" align="center" label="比例" />
|
||||||
|
<el-table-column prop="totalRemain" 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: "OperationGameDataQuery",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted, reactive, computed } from "vue";
|
||||||
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
|
import { dateFormat } from "@/utils/system-helper";
|
||||||
|
import {
|
||||||
|
getGameDataUserTotalALL,
|
||||||
|
getGameAllList,
|
||||||
|
} from "@/api/OperationLuckyDataQuery/OperationLuckyDataQuery.js";
|
||||||
|
const dataTime = ref([]);
|
||||||
|
const gameOptions = ref([]);
|
||||||
|
const gameData = ref({});
|
||||||
|
const formData = reactive({
|
||||||
|
startDate: "",
|
||||||
|
endDate: "",
|
||||||
|
erbanNo: "",
|
||||||
|
gameId: "",
|
||||||
|
channel: "",
|
||||||
|
});
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
getGameDataUserTotalALL(formData).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
let arr = [];
|
||||||
|
arr.push(res.data);
|
||||||
|
tableData.data = arr;
|
||||||
|
tableData.loading = false;
|
||||||
|
tableData.total = res.data.total;
|
||||||
|
} else {
|
||||||
|
tableData.loading = false;
|
||||||
|
ElMessage.error(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const changeGame = () => {
|
||||||
|
formData.gameId = gameData.value.gameId;
|
||||||
|
formData.channel = gameData.value.gameChannel;
|
||||||
|
};
|
||||||
|
//重置
|
||||||
|
const resetFormData = () => {
|
||||||
|
Object.assign(formData, {
|
||||||
|
startDate: "",
|
||||||
|
endDate: "",
|
||||||
|
erbanNo: "",
|
||||||
|
gameId: "",
|
||||||
|
channel: "",
|
||||||
|
});
|
||||||
|
dataTime.value = [];
|
||||||
|
tableData.data = [];
|
||||||
|
gameData.value = {};
|
||||||
|
};
|
||||||
|
onMounted(() => {
|
||||||
|
getGameAllList().then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
gameOptions.value = res.data;
|
||||||
|
} else {
|
||||||
|
ElMessage.error(res.message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</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>
|
Reference in New Issue
Block a user