会员:用户标签增加下拉框使用的 精简信息列表查询接口

This commit is contained in:
owen 2023-08-21 21:44:04 +08:00
parent 7bef240926
commit 884bb055b0
2 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@ export interface TagVO {
}
// 查询会员标签列表
export const getMemberTagPage = async (params) => {
export const getMemberTagPage = async (params: any) => {
return await request.get({ url: `/member/tag/page`, params })
}
@ -15,6 +15,11 @@ export const getMemberTag = async (id: number) => {
return await request.get({ url: `/member/tag/get?id=` + id })
}
// 查询会员标签 - 精简信息列表
export const getSimpleTagList = async () => {
return await request.get({ url: `/member/tag/list-all-simple` })
}
// 新增会员标签
export const createMemberTag = async (data: TagVO) => {
return await request.post({ url: `/member/tag/create`, data })

View File

@ -52,8 +52,7 @@ const tagIds = computed({
const tags = ref<TagApi.TagVO[]>([])
const getList = async () => {
const data = await TagApi.getMemberTagPage({})
tags.value = data.list
tags.value = await TagApi.getSimpleTagList()
}
/** 添加用户标签表单弹框 */