Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4d25dda7
authored
Sep 15, 2024
by
痴货
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】满减送列表页面添加活动范围字段、修改状态为COMMON_STATUS
parent
fbed2910
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/api/mall/promotion/reward/rewardActivity.ts
+6
-6
src/views/mall/promotion/rewardActivity/index.vue
+6
-1
No files found.
src/api/mall/promotion/reward/rewardActivity.ts
View file @
4d25dda7
...
...
@@ -47,12 +47,12 @@ export const getReward = async (id: number) => {
return
await
request
.
get
({
url
:
'/promotion/reward-activity/get?id='
+
id
})
}
// 关闭拼团活动
export
const
closeRewardActivity
=
async
(
id
:
number
)
=>
{
return
await
request
.
put
({
url
:
'/promotion/reward-activity/close?id='
+
id
})
}
// 删除限时折扣活动
// 删除满减送活动
export
const
deleteRewardActivity
=
async
(
id
:
number
)
=>
{
return
await
request
.
delete
({
url
:
'/promotion/reward-activity/delete?id='
+
id
})
}
// 关闭满减送活动
export
const
closeRewardActivity
=
async
(
id
:
number
)
=>
{
return
await
request
.
put
({
url
:
'/promotion/reward-activity/close?id='
+
id
})
}
src/views/mall/promotion/rewardActivity/index.vue
View file @
4d25dda7
...
...
@@ -27,7 +27,7 @@
placeholder=
"请选择活动状态"
>
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.
PROMOTION_ACTIVITY
_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.
COMMON
_STATUS)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
...
...
@@ -71,6 +71,11 @@
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
default-expand-all
row-key=
"id"
>
<el-table-column
label=
"活动名称"
prop=
"name"
/>
<el-table-column
label=
"活动范围"
prop=
"productScope"
>
<template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.PROMOTION_PRODUCT_SCOPE"
:value=
"scope.row.productScope"
/>
</
template
>
</el-table-column>
<el-table-column
:formatter=
"dateFormatter"
align=
"center"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment