Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3b39c7dc
authored
May 11, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券发放记录列表导出参数修改
1 parent
5fc8ca53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
aus-front/admin/src/views/discount/record/DiscountRecordPage.vue
aus-front/admin/src/views/discount/record/DiscountRecordPage.vue
View file @
3b39c7d
...
...
@@ -184,6 +184,7 @@ import ManualIssuanceModal from "@/views/discount/coupon/components/ManualIssuan
}
)
export
default
class
DiscountActivityPage
extends
PaginationComponent
<
Vehicle
>
{
selectIds
:
number
[]
=
[];
selectedItems
=
[];
statSegments
=
[{
label
:
'今日'
,
value
:
'today'
}
,
{
label
:
'昨日'
,
value
:
'yesterday'
}
,
{
label
:
'近7天'
,
value
:
'last7'
}
,
{
label
:
'近30天'
,
value
:
'last30'
}
,
{
label
:
'自定义'
,
value
:
'custom'
}
];
statSegment
=
'last30'
;
...
...
@@ -265,18 +266,21 @@ export default class DiscountActivityPage extends PaginationComponent<Vehicle> {
}
//查询
handlePageReload
()
{
handlePageReload
()
{
this
.
selectIds
=
[]
this
.
selectedItems
=
[];
this
.
pageReload
();
}
//重置查询条件
handleReset
()
{
handleReset
()
{
this
.
selectIds
=
[]
this
.
selectedItems
=
[];
this
.
pageReset
();
}
onSelectChange
(
selectedRowKeys
:
number
[],
selectedRows
:
[]):
void
{
onSelectChange
(
selectedRowKeys
:
number
[],
selectedRows
:
[]):
void
{
this
.
selectIds
=
selectedRowKeys
;
this
.
selectedItems
=
selectedRows
;
}
...
...
@@ -357,9 +361,13 @@ export default class DiscountActivityPage extends PaginationComponent<Vehicle> {
downloadExcel
():
void
{
this
.
exporting
=
true
;
let
paramsData
=
{
...
this
.
pagination
.
requestParams
,
id
:
this
.
selectedItems
.
map
(
item
=>
item
.
id
),
...
this
.
pagination
.
requestParams
}
if
(
this
.
selectedItems
?.
length
)
{
if
(
!
paramsData
?.
filters
)
paramsData
.
filters
=
[]
paramsData
?.
filters
.
push
({
field
:
'id'
,
operator
:
'in'
,
value
:
this
.
selectedItems
.
map
(
item
=>
item
.
id
),
logic
:
'and'
}
)
}
console
.
log
(
paramsData
)
DiscountController
.
couponRecordExport
(
this
.
axios
,
paramsData
,
{
responseType
:
'blob'
}
).
then
(
response
=>
{
message
.
success
(
'导出任务已创建,请在下载中心查看'
);
ExportUtil
.
downloadExcelFile
(
response
.
data
,
this
.
getNewTime
()
+
'-优惠券发放记录'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment