This commit is contained in:
faiz 2024-07-10 09:26:10 +08:00
parent 3bf971dca1
commit 2acce82e3f
2 changed files with 26 additions and 8 deletions

View File

@ -30,6 +30,7 @@
align="center" align="center"
> >
<el-table-column label="id" min-width="130" prop="id"></el-table-column> <el-table-column label="id" min-width="130" prop="id"></el-table-column>
<el-table-column label="时间" min-width="130" prop="date"></el-table-column>
<el-table-column label="新增用户(人)" min-width="130" prop="reg_count"></el-table-column> <el-table-column label="新增用户(人)" min-width="130" prop="reg_count"></el-table-column>
<el-table-column label="累计用户(人)" min-width="130" prop="user_count"></el-table-column> <el-table-column label="累计用户(人)" min-width="130" prop="user_count"></el-table-column>
<el-table-column label="支付人数(人)" min-width="130" prop="pay_count"></el-table-column> <el-table-column label="支付人数(人)" min-width="130" prop="pay_count"></el-table-column>

View File

@ -42,6 +42,20 @@
@change="onchangeTime" @change="onchangeTime"
/> />
</el-form-item> </el-form-item>
<el-form-item label="完成时间:">
<el-date-picker
v-model="finishTime"
value-format="yyyy/MM/dd HH:mm:ss"
format="yyyy/MM/dd HH:mm:ss"
size="small"
type="datetimerange"
placement="bottom-end"
placeholder="自定义时间"
style="width: 280px;"
:picker-options="pickerOptions"
@change="onchangeFinishTime"
/>
</el-form-item>
<el-form-item label="活动类型:" prop="activity_type"> <el-form-item label="活动类型:" prop="activity_type">
<el-select <el-select
v-model="tableFrom.activity_type" v-model="tableFrom.activity_type"
@ -434,6 +448,7 @@ export default {
], // ], //
orderChartType: {}, orderChartType: {},
timeVal: [], timeVal: [],
finishTime: [],
fromList: fromList, fromList: fromList,
selectionList: [], selectionList: [],
ids: "", ids: "",
@ -483,7 +498,9 @@ export default {
/**重置 */ /**重置 */
searchReset(){ searchReset(){
this.timeVal = [] this.timeVal = []
this.finishTime = []
this.tableFrom.date = "" this.tableFrom.date = ""
this.tableFrom.finish_time = ""
this.$refs.searchForm.resetFields() this.$refs.searchForm.resetFields()
this.getList(1) this.getList(1)
}, },
@ -699,14 +716,6 @@ export default {
this.tableFromLog.limit = val; this.tableFromLog.limit = val;
this.getList(''); this.getList('');
}, },
//
selectChange(tab) {
this.tableFrom.date = tab;
this.tableFrom.page = 1;
this.timeVal = [];
this.getCardList()
this.getList(1);
},
// //
onchangeTime(e) { onchangeTime(e) {
this.timeVal = e; this.timeVal = e;
@ -716,6 +725,14 @@ export default {
this.getCardList() this.getCardList()
this.getList(1); this.getList(1);
}, },
//
onchangeFinishTime(e) {
this.finishTime = e;
this.tableFrom.finish_time = e ? this.finishTime.join("-") : "";
this.tableFrom.page = 1;
this.getCardList()
this.getList(1);
},
// //
getList(num) { getList(num) {
this.listLoading = true; this.listLoading = true;