Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
a23277cf
Commit
a23277cf
authored
Aug 09, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签页新组件重构,新增、修改功能
parent
bad69fd1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
167 deletions
+176
-167
tag.vue
src/components/system/tag.vue
+152
-155
api.js
src/service/api.js
+22
-10
menuList.js
src/util/menuList.js
+2
-2
No files found.
src/components/system/tag.vue
View file @
a23277cf
This diff is collapsed.
Click to expand it.
src/service/api.js
View file @
a23277cf
...
@@ -1325,6 +1325,18 @@ export const putSourceStudentApi = function (type,json) {
...
@@ -1325,6 +1325,18 @@ export const putSourceStudentApi = function (type,json) {
return
Vue
.
prototype
.
$put
(
`
${
_baseUrl
}
api/admin/source/student/edit/
${
type
}
`
,
json
)
return
Vue
.
prototype
.
$put
(
`
${
_baseUrl
}
api/admin/source/student/edit/
${
type
}
`
,
json
)
};
};
// /api/admin/source/student/list
// /api/admin/source/student/list
// 获取标签
export
const
getTagApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/category/list/3`
,
json
)
};
// 新增标签
export
const
postTagApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/category/add/3`
,
json
)
};
// 编辑标签
export
const
putTagApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$put
(
`
${
_baseUrl
}
api/admin/category/
${
json
.
category_id
}
`
,
json
)
};
// 获取员工列表
// 获取员工列表
export
const
getStaffListApi
=
function
(
json
)
{
export
const
getStaffListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/staff/list`
,
json
)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/staff/list`
,
json
)
...
@@ -1345,13 +1357,13 @@ export const getStaffRecordApi = function (json) {
...
@@ -1345,13 +1357,13 @@ export const getStaffRecordApi = function (json) {
export
const
getTeacherTypeListApi
=
function
(
json
)
{
export
const
getTeacherTypeListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/teacher/type/list`
,
json
)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/teacher/type/list`
,
json
)
};
};
export
const
postTeacherTypeListApi
=
function
(
json
)
{
export
const
postTeacherTypeListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/teacher/type/add`
,
json
)
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/teacher/type/add`
,
json
)
};
};
export
const
putTeacherTypeListApi
=
function
(
json
)
{
export
const
putTeacherTypeListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$put
(
`
${
_baseUrl
}
api/admin/teacher/type/edit/
${
json
.
type
}
`
,
json
)
return
Vue
.
prototype
.
$put
(
`
${
_baseUrl
}
api/admin/teacher/type/edit/
${
json
.
type
}
`
,
json
)
};
};
export
const
postMediaConvertApi
=
function
(
json
)
{
export
const
postMediaConvertApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/public/media/convert`
,
json
)
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/public/media/convert`
,
json
)
};
};
///api/public/media/convert
///api/public/media/convert
\ No newline at end of file
src/util/menuList.js
View file @
a23277cf
...
@@ -630,7 +630,7 @@ export default [{
...
@@ -630,7 +630,7 @@ export default [{
component
:
e
=>
require
([
'@/components/system/staffRecord'
],
e
),
component
:
e
=>
require
([
'@/components/system/staffRecord'
],
e
),
}
}
},
},
/*
{
{
value
:
'标签管理'
,
value
:
'标签管理'
,
routerName
:
'tag'
,
routerName
:
'tag'
,
path
:
'/tag'
,
path
:
'/tag'
,
...
@@ -640,7 +640,7 @@ export default [{
...
@@ -640,7 +640,7 @@ export default [{
name
:
'tag'
,
name
:
'tag'
,
component
:
e
=>
require
([
'@/components/system/tag'
],
e
),
component
:
e
=>
require
([
'@/components/system/tag'
],
e
),
}
}
},
*/
},
{
{
value
:
'员工管理'
,
value
:
'员工管理'
,
routerName
:
'staff'
,
routerName
:
'staff'
,
...
...
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