parent
edb88f8548
commit
6556feed21
@ -5,7 +5,7 @@ export interface LevelVO {
|
|||||||
name: string
|
name: string
|
||||||
experience: number
|
experience: number
|
||||||
value: number
|
value: number
|
||||||
discount: number
|
discountPercent: number
|
||||||
icon: string
|
icon: string
|
||||||
bgUrl: string
|
bgUrl: string
|
||||||
status: number
|
status: number
|
||||||
|
@ -9,25 +9,25 @@ export interface SignInConfigVO {
|
|||||||
|
|
||||||
// 查询积分签到规则列表
|
// 查询积分签到规则列表
|
||||||
export const getSignInConfigList = async () => {
|
export const getSignInConfigList = async () => {
|
||||||
return await request.get({ url: `/member/point/sign-in-config/list` })
|
return await request.get({ url: `/member/sign-in/config/list` })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询积分签到规则详情
|
// 查询积分签到规则详情
|
||||||
export const getSignInConfig = async (id: number) => {
|
export const getSignInConfig = async (id: number) => {
|
||||||
return await request.get({ url: `/member/point/sign-in-config/get?id=` + id })
|
return await request.get({ url: `/member/sign-in/config/get?id=` + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增积分签到规则
|
// 新增积分签到规则
|
||||||
export const createSignInConfig = async (data: SignInConfigVO) => {
|
export const createSignInConfig = async (data: SignInConfigVO) => {
|
||||||
return await request.post({ url: `/member/point/sign-in-config/create`, data })
|
return await request.post({ url: `/member/sign-in/config/create`, data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改积分签到规则
|
// 修改积分签到规则
|
||||||
export const updateSignInConfig = async (data: SignInConfigVO) => {
|
export const updateSignInConfig = async (data: SignInConfigVO) => {
|
||||||
return await request.put({ url: `/member/point/sign-in-config/update`, data })
|
return await request.put({ url: `/member/sign-in/config/update`, data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除积分签到规则
|
// 删除积分签到规则
|
||||||
export const deleteSignInConfig = async (id: number) => {
|
export const deleteSignInConfig = async (id: number) => {
|
||||||
return await request.delete({ url: `/member/point/sign-in-config/delete?id=` + id })
|
return await request.delete({ url: `/member/sign-in/config/delete?id=` + id })
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ export interface SignInRecordQueryVO {
|
|||||||
|
|
||||||
// 查询用户签到积分列表
|
// 查询用户签到积分列表
|
||||||
export const getSignInRecordPage = async (params) => {
|
export const getSignInRecordPage = async (params) => {
|
||||||
return await request.get({ url: `/member/point/sign-in-record/page`, params })
|
return await request.get({ url: `/member/sign-in/record/page`, params })
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,6 @@
|
|||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
<el-input v-model="formData.name" placeholder="请输入名称" />
|
<el-input v-model="formData.name" placeholder="请输入名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remark">
|
|
||||||
<el-input v-model="formData.remark" type="textarea" placeholder="请输入备注" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="状态" prop="status">
|
<el-form-item label="状态" prop="status">
|
||||||
<el-radio-group v-model="formData.status">
|
<el-radio-group v-model="formData.status">
|
||||||
<el-radio
|
<el-radio
|
||||||
@ -24,6 +21,9 @@
|
|||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="formData.remark" type="textarea" placeholder="请输入备注" />
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import * as GroupApi from '@/api/member/group'
|
import * as GroupApi from '@/api/member/group'
|
||||||
|
|
||||||
|
@ -38,9 +38,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="享受折扣(%)" prop="discount">
|
<el-form-item label="享受折扣(%)" prop="discountPercent">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="formData.discount"
|
v-model="formData.discountPercent"
|
||||||
:min="0"
|
:min="0"
|
||||||
:max="100"
|
:max="100"
|
||||||
:precision="0"
|
:precision="0"
|
||||||
@ -100,7 +100,7 @@ const formData = ref({
|
|||||||
name: undefined,
|
name: undefined,
|
||||||
experience: undefined,
|
experience: undefined,
|
||||||
level: undefined,
|
level: undefined,
|
||||||
discount: undefined,
|
discountPercent: undefined,
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
backgroundUrl: undefined,
|
backgroundUrl: undefined,
|
||||||
status: CommonStatusEnum.ENABLE
|
status: CommonStatusEnum.ENABLE
|
||||||
@ -109,7 +109,7 @@ const formRules = reactive({
|
|||||||
name: [{ required: true, message: '等级名称不能为空', trigger: 'blur' }],
|
name: [{ required: true, message: '等级名称不能为空', trigger: 'blur' }],
|
||||||
experience: [{ required: true, message: '升级经验不能为空', trigger: 'blur' }],
|
experience: [{ required: true, message: '升级经验不能为空', trigger: 'blur' }],
|
||||||
level: [{ required: true, message: '等级不能为空', trigger: 'blur' }],
|
level: [{ required: true, message: '等级不能为空', trigger: 'blur' }],
|
||||||
discount: [{ required: true, message: '享受折扣不能为空', trigger: 'blur' }],
|
discountPercent: [{ required: true, message: '享受折扣不能为空', trigger: 'blur' }],
|
||||||
status: [{ required: true, message: '状态不能为空', trigger: 'change' }]
|
status: [{ required: true, message: '状态不能为空', trigger: 'change' }]
|
||||||
})
|
})
|
||||||
const formRef = ref() // 表单 Ref
|
const formRef = ref() // 表单 Ref
|
||||||
@ -165,7 +165,7 @@ const resetForm = () => {
|
|||||||
name: undefined,
|
name: undefined,
|
||||||
experience: undefined,
|
experience: undefined,
|
||||||
level: undefined,
|
level: undefined,
|
||||||
discount: undefined,
|
discountPercent: undefined,
|
||||||
icon: undefined,
|
icon: undefined,
|
||||||
backgroundUrl: undefined,
|
backgroundUrl: undefined,
|
||||||
status: CommonStatusEnum.ENABLE
|
status: CommonStatusEnum.ENABLE
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import * as LevelApi from '@/api/member/level'
|
import * as LevelApi from '@/api/member/level'
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
<el-table-column label="等级名称" align="center" prop="name" min-width="100" />
|
<el-table-column label="等级名称" align="center" prop="name" min-width="100" />
|
||||||
<el-table-column label="等级" align="center" prop="level" min-width="60" />
|
<el-table-column label="等级" align="center" prop="level" min-width="60" />
|
||||||
<el-table-column label="升级经验" align="center" prop="experience" min-width="80" />
|
<el-table-column label="升级经验" align="center" prop="experience" min-width="80" />
|
||||||
<el-table-column label="享受折扣(%)" align="center" prop="discount" min-width="110" />
|
<el-table-column label="享受折扣(%)" align="center" prop="discountPercent" min-width="110" />
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="70">
|
<el-table-column label="状态" align="center" prop="status" min-width="70">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
||||||
|
@ -84,10 +84,12 @@
|
|||||||
:show-overflow-tooltip="false"
|
:show-overflow-tooltip="false"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-for="(tagName, index) in scope.row.tagNames" :key="index">{{ tagName }}</el-tag>
|
<el-tag v-for="(tagName, index) in scope.row.tagNames" :key="index" class="mr-5px">
|
||||||
|
{{ tagName }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="积分" align="center" width="100px" />
|
<el-table-column label="积分" align="center" prop="point" width="100px" />
|
||||||
<el-table-column label="状态" align="center" prop="status" width="100px">
|
<el-table-column label="状态" align="center" prop="status" width="100px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
||||||
|
Loading…
Reference in New Issue
Block a user