Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
zxn-adputin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lijin
zxn-adputin
Commits
2b9434c0
Commit
2b9434c0
authored
Mar 05, 2025
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加标签管理功能
parent
9bafed4e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
495 additions
and
77 deletions
+495
-77
materialTag.js
src/api/materialTag.js
+41
-0
index.js
src/router/index.js
+6
-0
Layout.vue
src/views/layout/Layout.vue
+1
-0
index.vue
src/views/materialTag/index.vue
+447
-77
No files found.
src/api/materialTag.js
0 → 100644
View file @
2b9434c0
import
axios
from
'axios'
// 获取所有标签
export
function
getAllMaterialTags
()
{
return
axios
.
get
(
process
.
env
.
PUTIN_API
+
'/material_tags'
)
.
then
(
response
=>
{
return
response
.
data
})
}
// 获取单个标签
export
function
getMaterialTagById
(
id
)
{
return
axios
.
get
(
`
${
process
.
env
.
PUTIN_API
}
/material_tags/
${
id
}
`
)
.
then
(
response
=>
{
return
response
.
data
})
}
// 创建标签
export
function
createMaterialTag
(
data
)
{
return
axios
.
post
(
`
${
process
.
env
.
PUTIN_API
}
/material_tags`
,
data
)
.
then
(
response
=>
{
return
response
.
data
})
}
// 更新标签
export
function
updateMaterialTag
(
data
)
{
return
axios
.
put
(
`
${
process
.
env
.
PUTIN_API
}
/material_tags`
,
data
)
.
then
(
response
=>
{
return
response
.
data
})
}
// 删除标签
export
function
deleteMaterialTag
(
id
)
{
return
axios
.
delete
(
`
${
process
.
env
.
PUTIN_API
}
/material_tags/
${
id
}
`
)
.
then
(
response
=>
{
return
response
.
data
})
}
src/router/index.js
View file @
2b9434c0
...
@@ -150,6 +150,12 @@ export const constantRouterMap = [
...
@@ -150,6 +150,12 @@ export const constantRouterMap = [
component
:
()
=>
import
(
'@/views/descriptionGroup/DescriptionGroupManage'
),
component
:
()
=>
import
(
'@/views/descriptionGroup/DescriptionGroupManage'
),
meta
:
{
title
:
'描述组管理'
}
meta
:
{
title
:
'描述组管理'
}
},
},
{
path
:
'/assetManagement/material-tag'
,
name
:
'assetManagement.material-tag'
,
component
:
()
=>
import
(
'@/views/materialTag'
),
meta
:
{
title
:
'标签管理'
}
},
]
]
},
},
...
...
src/views/layout/Layout.vue
View file @
2b9434c0
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
<el-menu-item
index=
"/assetManagement/createDelivery"
>
素材组
</el-menu-item>
<el-menu-item
index=
"/assetManagement/createDelivery"
>
素材组
</el-menu-item>
<el-menu-item
index=
"/assetManagement/title-group"
>
标题组管理
</el-menu-item>
<el-menu-item
index=
"/assetManagement/title-group"
>
标题组管理
</el-menu-item>
<el-menu-item
index=
"/assetManagement/description-group"
>
描述组管理
</el-menu-item>
<el-menu-item
index=
"/assetManagement/description-group"
>
描述组管理
</el-menu-item>
<el-menu-item
index=
"/assetManagement/material-tag"
>
标签管理
</el-menu-item>
</el-submenu>
</el-submenu>
<el-submenu
index=
"3"
>
<el-submenu
index=
"3"
>
...
...
src/views/materialTag/index.vue
View file @
2b9434c0
This diff is collapsed.
Click to expand it.
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