幸运礼物暂存

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