diff --git a/src/api/member/tag/index.ts b/src/api/member/tag/index.ts new file mode 100644 index 00000000..a844dbe3 --- /dev/null +++ b/src/api/member/tag/index.ts @@ -0,0 +1,36 @@ +import request from '@/config/axios' + +export interface TagVO { + id: number + name: string +} + +// 查询会员标签列表 +export const getMemberTagPage = async (params) => { + return await request.get({ url: `/member/tag/page`, params }) +} + +// 查询会员标签详情 +export const getMemberTag = async (id: number) => { + return await request.get({ url: `/member/tag/get?id=` + id }) +} + +// 新增会员标签 +export const createMemberTag = async (data: TagVO) => { + return await request.post({ url: `/member/tag/create`, data }) +} + +// 修改会员标签 +export const updateMemberTag = async (data: TagVO) => { + return await request.put({ url: `/member/tag/update`, data }) +} + +// 删除会员标签 +export const deleteMemberTag = async (id: number) => { + return await request.delete({ url: `/member/tag/delete?id=` + id }) +} + +// 导出会员标签 Excel +export const exportMemberTag = async (params) => { + return await request.download({ url: `/member/tag/export-excel`, params }) +} diff --git a/src/views/member/tag/TagForm.vue b/src/views/member/tag/TagForm.vue new file mode 100644 index 00000000..d45ea589 --- /dev/null +++ b/src/views/member/tag/TagForm.vue @@ -0,0 +1,91 @@ + + diff --git a/src/views/member/tag/index.vue b/src/views/member/tag/index.vue new file mode 100644 index 00000000..49633edf --- /dev/null +++ b/src/views/member/tag/index.vue @@ -0,0 +1,179 @@ + + +