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 b71b0d52
authored
May 11, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
创建/编辑活动选择优惠券数据接口替换
1 parent
eb4596e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
aus-front/admin/src/api/DiscountController.ts
aus-front/admin/src/views/discount/activity/components/DiscountActivityAddForm.vue
aus-front/admin/src/api/DiscountController.ts
View file @
b71b0d5
...
@@ -36,6 +36,10 @@ export class DiscountController {
...
@@ -36,6 +36,10 @@ export class DiscountController {
static
couponActivityDetail
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
couponActivityDetail
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'coupon/activity/detail'
,
params
);
return
axios
.
post
(
'coupon/activity/detail'
,
params
);
}
}
// 获取可用优惠券模板数据
static
getAvailableCouponTemplate
(
axios
:
AxiosStatic
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'coupon/template/available'
);
}
// 创建优惠券活动
// 创建优惠券活动
static
createCouponActivity
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
static
createCouponActivity
(
axios
:
AxiosStatic
,
params
:
any
):
Promise
<
AxiosResponse
>
{
return
axios
.
post
(
'coupon/activity/add'
,
params
);
return
axios
.
post
(
'coupon/activity/add'
,
params
);
...
...
aus-front/admin/src/views/discount/activity/components/DiscountActivityAddForm.vue
View file @
b71b0d5
...
@@ -466,8 +466,8 @@ export default class DiscountActivityAddForm extends EnhanceFormComponent<any> {
...
@@ -466,8 +466,8 @@ export default class DiscountActivityAddForm extends EnhanceFormComponent<any> {
this
.
relationAgreementOptions
=
Array
.
isArray
(
res
.
data
?.
content
)
?
res
.
data
?.
content
:
[];
this
.
relationAgreementOptions
=
Array
.
isArray
(
res
.
data
?.
content
)
?
res
.
data
?.
content
:
[];
})
})
// 获取优惠券模板数据
// 获取优惠券模板数据
DiscountController
.
couponTemplatePage
(
this
.
axios
,
{
limit
:
9999
}
).
then
(
res
=>
{
DiscountController
.
getAvailableCouponTemplate
(
this
.
axios
).
then
(
res
=>
{
const
templates
=
Array
.
isArray
(
res
.
data
?.
content
)
?
res
.
data
?.
content
:
[];
const
templates
=
Array
.
isArray
(
res
.
data
?.
data
)
?
res
.
data
?.
data
:
[];
this
.
couponTemplateOptions
=
templates
.
map
(
t
=>
({
this
.
couponTemplateOptions
=
templates
.
map
(
t
=>
({
label
:
t
.
templateName
,
label
:
t
.
templateName
,
value
:
t
.
id
value
:
t
.
id
...
...
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