周奖励后台暂存
This commit is contained in:
199
src/views/guildOperationManagement/weeklyRewards.vue
Normal file
199
src/views/guildOperationManagement/weeklyRewards.vue
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
<template>
|
||||||
|
<div class="box">
|
||||||
|
<!-- 查询 -->
|
||||||
|
<div class="inquire">
|
||||||
|
<span>周期</span>
|
||||||
|
<el-select v-model="inquire.gameArrVal" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in inquire.gamesArr"
|
||||||
|
:key="item.gameId"
|
||||||
|
:label="item.gameName"
|
||||||
|
:value="item.gameId"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<div class="inquire">
|
||||||
|
<span>ID</span>
|
||||||
|
<el-input
|
||||||
|
v-model="inquire.userId"
|
||||||
|
placeholder=""
|
||||||
|
class="input"
|
||||||
|
></el-input>
|
||||||
|
</div>
|
||||||
|
<!-- 查询按钮 -->
|
||||||
|
<el-button
|
||||||
|
class="primary"
|
||||||
|
type="primary"
|
||||||
|
@click="
|
||||||
|
tableData = [];
|
||||||
|
currentPage = 1;
|
||||||
|
isFinished = false;
|
||||||
|
getData();
|
||||||
|
"
|
||||||
|
>查询</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="confirmExport2Excel()"
|
||||||
|
>重置搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button class="primary" type="primary" @click="confirmExport2Excel()"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
|
||||||
|
<!-- 表格 -->
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
|
ref="multipleTable"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-top: 25px"
|
||||||
|
>
|
||||||
|
<el-table-column prop="x" align="center" label="日期" />
|
||||||
|
<el-table-column prop="x" align="center" label="公会ID" />
|
||||||
|
<el-table-column prop="x" align="center" label="公会昵称" />
|
||||||
|
<el-table-column prop="x" align="center" label="公会ID" />
|
||||||
|
<el-table-column prop="x" align="center" label="公会长昵称" />
|
||||||
|
<el-table-column prop="x" align="center" label="主播ID" />
|
||||||
|
<el-table-column prop="x" align="center" label="主播昵称" />
|
||||||
|
<el-table-column prop="x" align="center" label="主播等级" />
|
||||||
|
<el-table-column prop="x" align="center" label="钻石流水" />
|
||||||
|
<el-table-column prop="x" align="center" label="已获得金币" />
|
||||||
|
<el-table-column prop="x" align="center" label="已领取金币" />
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<!-- 分页 -->
|
||||||
|
<el-pagination
|
||||||
|
style="margin-top: 10px"
|
||||||
|
class="paginationClass"
|
||||||
|
v-model:current-page="currentPage"
|
||||||
|
v-model:page-size="pageSize"
|
||||||
|
:page-sizes="[1, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
|
||||||
|
layout="sizes, prev, pager, next"
|
||||||
|
:total="total"
|
||||||
|
@size-change="handleSizeChange"
|
||||||
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import {} from "@/api/relAgency/relAgency";
|
||||||
|
// @ts-ignore
|
||||||
|
import { dateFormat } from "@/utils/system-helper";
|
||||||
|
// @ts-ignore
|
||||||
|
import { ElMessage, ElTable } from "element-plus";
|
||||||
|
import { ref } from "vue";
|
||||||
|
import { ElMessageBox } from "element-plus"; // 正确引入 ElM
|
||||||
|
export default {
|
||||||
|
name: "weeklyRewards",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
//查询所需条件对象
|
||||||
|
inquire: {
|
||||||
|
userId:'',
|
||||||
|
gamesArr:'',
|
||||||
|
gameArrVal:[],
|
||||||
|
},
|
||||||
|
// 表格
|
||||||
|
tableData: [],
|
||||||
|
// 分页
|
||||||
|
total: 0, //总页数
|
||||||
|
currentPage: 1, //页码
|
||||||
|
pageSize: 10, //条数
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
methods: {
|
||||||
|
// 查询接口
|
||||||
|
getData() {
|
||||||
|
this.isLoading = true;
|
||||||
|
this.loading = true;
|
||||||
|
let time = this.inquire.time;
|
||||||
|
let startTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
if (time && time.length > 0) {
|
||||||
|
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
// statisPage({
|
||||||
|
// gameId: this.inquire.gameArrVal,
|
||||||
|
// startTime: startTime,
|
||||||
|
// endTime: endTime,
|
||||||
|
// pageNum: this.currentPage,
|
||||||
|
// pageSize: this.pageSize,
|
||||||
|
// }).then((res) => {
|
||||||
|
// if (res.code == 200) {
|
||||||
|
// // 判断返回的记录是否为空数组
|
||||||
|
// const records = res.data.records;
|
||||||
|
// if (records.length > 0) {
|
||||||
|
// // 如果有数据,追加到表格数据中
|
||||||
|
// this.tableData = [...this.tableData, ...records];
|
||||||
|
// this.currentPage++; // 更新当前页码
|
||||||
|
// } else {
|
||||||
|
// // 如果数据长度为 0,停止加载
|
||||||
|
// this.isFinished = true;
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// ElMessage({
|
||||||
|
// showClose: true,
|
||||||
|
// message: res.message,
|
||||||
|
// type: "error",
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// this.loading = false;
|
||||||
|
// this.isLoading = false;
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
// 分页导航
|
||||||
|
handleSizeChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
handleCurrentChange() {
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</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;
|
||||||
|
}
|
||||||
|
.selectBoxImg {
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
.pagination {
|
||||||
|
margin: 10px auto 10px;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
.pagination_in {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
Reference in New Issue
Block a user