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 @@
-
-
-
-
-
-
- 搜索
- 重置
-
- 新增
-
-
-
- 导出
-
-
-
+ 新增
+
-
-
+
-
+
+
+
+
+
+
+
-
-
@@ -85,9 +62,9 @@
diff --git a/src/views/member/signin/record/index.vue b/src/views/member/signin/record/index.vue
index 0dfd2aa6..4039e1e2 100644
--- a/src/views/member/signin/record/index.vue
+++ b/src/views/member/signin/record/index.vue
@@ -58,7 +58,7 @@
-
+
-
-
-
- 删除
-
-
-
{
handleQuery()
}
-/** 添加/修改操作 */
-// const formRef = ref()
-// const openForm = (type: string, id?: number) => {
-// formRef.value.open(type, id)
-// }
-
-/** 删除按钮操作 */
-const handleDelete = async (id: number) => {
- try {
- // 删除的二次确认
- await message.delConfirm()
- // 发起删除
- await SignInRecordApi.deleteSignInRecord(id)
- message.success(t('common.delSuccess'))
- // 刷新列表
- await getList()
- } catch {}
-}
-
/** 导出按钮操作 */
const handleExport = async () => {
try {