Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
884bb055
authored
Aug 21, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员:用户标签增加下拉框使用的 精简信息列表查询接口
parent
7bef2409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/api/member/tag/index.ts
+6
-1
src/views/member/tag/components/MemberTagSelect.vue
+1
-2
No files found.
src/api/member/tag/index.ts
View file @
884bb055
...
...
@@ -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
})
...
...
src/views/member/tag/components/MemberTagSelect.vue
View file @
884bb055
...
...
@@ -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
()
}
/** 添加用户标签表单弹框 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment