【优化】满减送列表页面添加活动范围字段、修改状态为COMMON_STATUS
parent
fbed29100f
commit
4d25dda7fd
|
@ -47,12 +47,12 @@ export const getReward = async (id: number) => {
|
||||||
return await request.get({ url: '/promotion/reward-activity/get?id=' + id })
|
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) => {
|
export const deleteRewardActivity = async (id: number) => {
|
||||||
return await request.delete({ url: '/promotion/reward-activity/delete?id=' + id })
|
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 })
|
||||||
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
placeholder="请选择活动状态"
|
placeholder="请选择活动状态"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.PROMOTION_ACTIVITY_STATUS)"
|
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
|
@ -71,6 +71,11 @@
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<el-table v-loading="loading" :data="list" default-expand-all row-key="id">
|
<el-table v-loading="loading" :data="list" default-expand-all row-key="id">
|
||||||
<el-table-column label="活动名称" prop="name" />
|
<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
|
<el-table-column
|
||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
Loading…
Reference in New Issue