From 6ebeddfe87542e4b3abfbe1adeb9187204f63ba8 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 07 七月 2026 13:47:24 +0800
Subject: [PATCH] 新增功能
---
admin/src/views/combo/record.vue | 32 +++++++++++++++++++++++++++-----
1 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/admin/src/views/combo/record.vue b/admin/src/views/combo/record.vue
index d87a233..4668e64 100644
--- a/admin/src/views/combo/record.vue
+++ b/admin/src/views/combo/record.vue
@@ -6,7 +6,7 @@
<div class="table_btns">
<el-button plain type="primary" @click="handleEx">瀵煎嚭</el-button>
<el-button plain type="danger" @click="openModal('zuofei')">浣滃簾</el-button>
- <el-button plain @click="openModal('tiaozheng')">濂楅璋冩暣</el-button>
+ <el-button plain type="primary" @click="openModal('tiaozheng')">濂楅璋冩暣</el-button>
</div>
<el-table v-loading="loading" :data="list" stripe border @selection-change="handleSelectionChange">
<el-table-column fixed="left" align="center" type="selection" :selectable="handleDisable" width="55" />
@@ -26,6 +26,12 @@
<el-table-column align="center" label="濂楅鍚嶇О" show-overflow-tooltip min-width="100" prop="name" />
<el-table-column align="center" label="鐢ㄦ埛淇℃伅" min-width="100" prop="openid" show-overflow-tooltip />
<el-table-column align="center" label="浣跨敤娆℃暟" min-width="80" prop="useTimes">
+ </el-table-column>
+ <el-table-column align="center" label="璁㈠崟鏉ユ簮" min-width="80" show-overflow-tooltip>
+ <template v-slot="{ row }">
+ <span v-if="row.channel == 0">灏忕▼搴忕</span>
+ <span v-if="row.channel == 1">鎶栭煶鍥㈣喘</span>
+ </template>
</el-table-column>
<el-table-column align="center" label="鏈夋晥鏃ユ湡" min-width="200" prop="remainCount">
<template v-slot="scope">
@@ -147,7 +153,17 @@
{ value: '0', label: '姝e父' },
{ value: '1', label: '浣滃簾' }
]
- },{
+ },
+ {
+ filed: 'channel',
+ type: 'select',
+ label: '璁㈠崟鏉ユ簮',
+ options: [
+ { label: '灏忕▼搴忕', value: 0 },
+ { label: '鎶栭煶鍥㈣喘', value: 1 },
+ ]
+ },
+ {
filed: 'createDate',
type: 'daterange',
label: '鍒涘缓鏃ユ湡',
@@ -209,13 +225,19 @@
},
handleEx() {
const { pagination, filters } = this
+ let form = JSON.parse(JSON.stringify(filters))
+ if (form.createDate && form.createDate.length > 0) {
+ form.startCreateDate = form.createDate[0] + ' 00:00:00'
+ form.endCreateDate = form.createDate[1] + ' 23:59:59'
+ delete form.createDate
+ }
this.$dialog.exportConfirm('纭瀵煎嚭鍚楋紵')
.then(() => {
this.loading = true
comboSaleEx({
page: 1,
capacity: 1000000,
- model: filters
+ model: form
})
.then(response => {
this.download(response)
@@ -244,8 +266,8 @@
if (page) { pagination.page = page }
let form = JSON.parse(JSON.stringify(filters))
if (form.createDate && form.createDate.length > 0) {
- form.startCreateDate = form.createDate[0]
- form.endCreateDate = form.createDate[1]
+ form.startCreateDate = form.createDate[0] + ' 00:00:00'
+ form.endCreateDate = form.createDate[1] + ' 23:59:59'
delete form.createDate
}
comboSalePage({
--
Gitblit v1.9.3