幸运礼物暂存

This commit is contained in:
dragon
2024-11-15 11:15:03 +08:00
parent 0dcf3594bd
commit 9b7d0132ef

View File

@@ -31,6 +31,11 @@
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
<el-button type="text">总进入{{ alwaysEnter }}</el-button>
<el-button type="text">总退出{{ totalWithdrawal }}</el-button>
<el-button type="text"
>总比例{{ totalWithdrawal / alwaysEnter }}</el-button
>
<!-- 按钮 --> <!-- 按钮 -->
<div class="but"> <div class="but">
<el-button class="primary" type="primary" @click="getData()" <el-button class="primary" type="primary" @click="getData()"
@@ -145,6 +150,8 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
alwaysEnter: "",
totalWithdrawal: "",
//查询所需条件对象 //查询所需条件对象
inquire: { inquire: {
userId: "", userId: "",
@@ -187,21 +194,25 @@ export default {
// 查询接口 // 查询接口
getData() { getData() {
console.log(dateFormat(this.inquire.time, "yyyy-MM-dd")); console.log(dateFormat(this.inquire.time, "yyyy-MM-dd"));
if (!this.inquire.time) { // if (!this.inquire.time) {
ElMessage({ // ElMessage({
showClose: true, // showClose: true,
message: "请选择时间", // message: "请选择时间",
type: "error", // type: "error",
}); // });
return; // return;
} // }
this.loading = true; this.loading = true;
personal({ personal({
erbanNo: this.inquire.userId, erbanNo: this.inquire.userId,
pageNo: this.currentPage, pageNo: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
startDate: dateFormat(this.inquire.time, "yyyy-MM-dd"), startDate: this.inquire.time
endDate: dateFormat(this.inquire.time, "yyyy-MM-dd"), ? dateFormat(this.inquire.time, "yyyy-MM-dd")
: null,
endDate: this.inquire.time
? dateFormat(this.inquire.time, "yyyy-MM-dd")
: null,
partitionId: this.inquire.value, partitionId: this.inquire.value,
}).then((res) => { }).then((res) => {
this.total = res.data.total; this.total = res.data.total;