diff --git a/src/api/point/config/index.ts b/src/api/point/config/index.ts index 1bf7b0947..00adc3f12 100644 --- a/src/api/point/config/index.ts +++ b/src/api/point/config/index.ts @@ -8,32 +8,12 @@ export interface ConfigVO { tradeGivePoint: number } -// 查询积分设置列表 -export const getConfigPage = async (params) => { - return await request.get({ url: `/point/config/page`, params }) -} - // 查询积分设置详情 -export const getConfig = async (id: number) => { - return await request.get({ url: `/point/config/get?id=` + id }) +export const getConfig = async () => { + return await request.get({ url: `/point/config/get` }) } -// 新增积分设置 -export const createConfig = async (data: ConfigVO) => { - return await request.post({ url: `/point/config/create`, data }) -} - -// 修改积分设置 -export const updateConfig = async (data: ConfigVO) => { - return await request.put({ url: `/point/config/update`, data }) -} - -// 删除积分设置 -export const deleteConfig = async (id: number) => { - return await request.delete({ url: `/point/config/delete?id=` + id }) -} - -// 导出积分设置 Excel -export const exportConfig = async (params) => { - return await request.download({ url: `/point/config/export-excel`, params }) +// 新增修改积分设置 +export const saveConfig = async (data: ConfigVO) => { + return await request.put({ url: `/point/config/save`, data }) } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index f7f43e063..d8405444a 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -148,8 +148,8 @@ export enum DICT_TYPE { // ========== MALL - 会员模块 ========== // 积分模块 TODO 芋艿:改成 member_ 前缀;包括枚举和值; - POINT_BIZ_TYPE = 'point_biz_type', - POINT_STATUS = 'point_status', + MEMBER_POINT_BIZ_TYPE = 'member_point_biz_type', + MEMBER_POINT_STATUS = 'member_point_status', // ========== MALL - 商品模块 ========== PRODUCT_UNIT = 'product_unit', // 商品单位 diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue new file mode 100644 index 000000000..c5f947ce5 --- /dev/null +++ b/src/views/member/point/config/index.vue @@ -0,0 +1,88 @@ + + diff --git a/src/views/point/record/RecordForm.vue b/src/views/member/point/record/RecordForm.vue similarity index 97% rename from src/views/point/record/RecordForm.vue rename to src/views/member/point/record/RecordForm.vue index 6da630eb2..b22c1e772 100644 --- a/src/views/point/record/RecordForm.vue +++ b/src/views/member/point/record/RecordForm.vue @@ -13,7 +13,7 @@ 搜索 重置 - - 新增 - - - 导出 - @@ -94,7 +82,7 @@ @@ -135,26 +123,6 @@ prop="createDate" :formatter="dateFormatter" /> - - - - diff --git a/src/views/point/config/index.vue b/src/views/point/config/index.vue deleted file mode 100644 index b82598319..000000000 --- a/src/views/point/config/index.vue +++ /dev/null @@ -1,199 +0,0 @@ - - -