parent
9b15c04efc
commit
788cba3bc5
|
@ -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 })
|
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 })
|
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) => {
|
export const createMemberTag = async (data: TagVO) => {
|
||||||
return await request.post({ url: `/member/tag/create`, data })
|
return await request.post({ url: `/member/tag/create`, data })
|
||||||
|
|
|
@ -52,8 +52,7 @@ const tagIds = computed({
|
||||||
const tags = ref<TagApi.TagVO[]>([])
|
const tags = ref<TagApi.TagVO[]>([])
|
||||||
|
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
const data = await TagApi.getMemberTagPage({})
|
tags.value = await TagApi.getSimpleTagList()
|
||||||
tags.value = data.list
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 添加用户标签表单弹框 */
|
/** 添加用户标签表单弹框 */
|
||||||
|
|
Loading…
Reference in New Issue