From f310f65842ce05a391d463610e7f7ac7a86dbe2b Mon Sep 17 00:00:00 2001 From: xiaqing Date: Wed, 9 Aug 2023 16:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E7=AD=BE=E5=88=B0=E9=92=88?= =?UTF-8?q?=E5=AF=B9=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E3=80=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96=20=201.=E4=BC=98=E5=8C=96todo?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=20=202.=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/point/signInConfig/index.ts | 14 +- src/api/point/signInRecord/index.ts | 20 --- src/views/member/point/record/index.vue | 12 +- src/views/member/signin/config/index.vue | 125 ++++++------------ .../member/signin/record/SignInRecordForm.vue | 99 -------------- src/views/member/signin/record/index.vue | 35 +---- 6 files changed, 54 insertions(+), 251 deletions(-) delete mode 100644 src/views/member/signin/record/SignInRecordForm.vue diff --git a/src/api/point/signInConfig/index.ts b/src/api/point/signInConfig/index.ts index 3786c06e..52ad7047 100644 --- a/src/api/point/signInConfig/index.ts +++ b/src/api/point/signInConfig/index.ts @@ -2,13 +2,14 @@ import request from '@/config/axios' export interface SignInConfigVO { id: number - day: number - point: number + day: number | null + point: number | null + isEnable: boolean | null } // 查询积分签到规则列表 -export const getSignInConfigPage = async (params) => { - return await request.get({ url: `/point/sign-in-config/page`, params }) +export const getSignInConfigPage = async () => { + return await request.get({ url: `/point/sign-in-config/list` }) } // 查询积分签到规则详情 @@ -30,8 +31,3 @@ export const updateSignInConfig = async (data: SignInConfigVO) => { export const deleteSignInConfig = async (id: number) => { return await request.delete({ url: `/point/sign-in-config/delete?id=` + id }) } - -// 导出积分签到规则 Excel -export const exportSignInConfig = async (params) => { - return await request.download({ url: `/point/sign-in-config/export-excel`, params }) -} diff --git a/src/api/point/signInRecord/index.ts b/src/api/point/signInRecord/index.ts index 0f9b9f64..2ca8ca86 100644 --- a/src/api/point/signInRecord/index.ts +++ b/src/api/point/signInRecord/index.ts @@ -12,26 +12,6 @@ export const getSignInRecordPage = async (params) => { return await request.get({ url: `/point/sign-in-record/page`, params }) } -// 查询用户签到积分详情 -export const getSignInRecord = async (id: number) => { - return await request.get({ url: `/point/sign-in-record/get?id=` + id }) -} - -// 新增用户签到积分 -export const createSignInRecord = async (data: SignInRecordVO) => { - return await request.post({ url: `/point/sign-in-record/create`, data }) -} - -// 修改用户签到积分 -export const updateSignInRecord = async (data: SignInRecordVO) => { - return await request.put({ url: `/point/sign-in-record/update`, data }) -} - -// 删除用户签到积分 -export const deleteSignInRecord = async (id: number) => { - return await request.delete({ url: `/point/sign-in-record/delete?id=` + id }) -} - // 导出用户签到积分 Excel export const exportSignInRecord = async (params) => { return await request.download({ url: `/point/sign-in-record/export-excel`, params }) diff --git a/src/views/member/point/record/index.vue b/src/views/member/point/record/index.vue index 517410f7..1d002dee 100644 --- a/src/views/member/point/record/index.vue +++ b/src/views/member/point/record/index.vue @@ -69,8 +69,14 @@ /> - 搜索 - 重置 + + + 搜索 + + + + 重置 + @@ -95,7 +101,7 @@ align="center" prop="type" :formatter=" - (a, b, c) => { + (_, __, c) => { return c === '1' ? '增加' : '扣减' } " diff --git a/src/views/member/signin/config/index.vue b/src/views/member/signin/config/index.vue index ca4db158..50ea26be 100644 --- a/src/views/member/signin/config/index.vue +++ b/src/views/member/signin/config/index.vue @@ -1,55 +1,39 @@