Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
a6d108e1
Commit
a6d108e1
authored
May 16, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App用户管理
parent
291bc6d3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
495 additions
and
0 deletions
+495
-0
index.js
src/api/admin/appUser/index.js
+49
-0
index.js
src/api/admin/group/index.js
+7
-0
index.js
src/router/index.js
+6
-0
index.vue
src/views/admin/appUser/index.vue
+433
-0
No files found.
src/api/admin/appUser/index.js
0 → 100644
View file @
a6d108e1
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/admin/app/user/page'
,
method
:
'get'
,
params
:
query
});
}
export
function
addObj
(
obj
)
{
console
.
log
(
obj
);
return
fetch
({
url
:
'/api/admin/app/user'
,
method
:
'post'
,
data
:
obj
});
}
export
function
getObj
(
id
)
{
return
fetch
({
url
:
'/api/admin/app/user/'
+
id
,
method
:
'get'
})
}
export
function
delObj
(
id
)
{
return
fetch
({
url
:
'/api/admin/app/user/'
+
id
,
method
:
'delete'
})
}
export
function
putObj
(
id
,
obj
)
{
return
fetch
({
url
:
'/api/admin/app/user/'
+
id
,
method
:
'put'
,
data
:
obj
})
}
export
function
insertGroups
(
obj
)
{
console
.
log
(
obj
);
return
fetch
({
url
:
'/api/admin/app/user/groups'
,
method
:
'post'
,
data
:
obj
});
}
src/api/admin/group/index.js
View file @
a6d108e1
...
@@ -123,4 +123,11 @@ export function getUserGroups(id) {
...
@@ -123,4 +123,11 @@ export function getUserGroups(id) {
});
});
}
}
export
function
getAppUserGroups
(
id
)
{
return
fetch
({
url
:
'/api/admin/app/user/groups/'
+
id
,
method
:
'get'
});
}
src/router/index.js
View file @
a6d108e1
...
@@ -122,6 +122,12 @@ export const asyncRouterMap = [{
...
@@ -122,6 +122,12 @@ export const asyncRouterMap = [{
component
:
_import
(
'admin/user/index'
),
component
:
_import
(
'admin/user/index'
),
name
:
'用户管理'
,
name
:
'用户管理'
,
authority
:
'userManager'
authority
:
'userManager'
},
{
path
:
'appUserManager'
,
icon
:
'fa-user'
,
component
:
_import
(
'admin/appUser/index'
),
name
:
'App用户管理'
,
authority
:
'appUserManager'
},
{
},
{
path
:
'menuManager'
,
path
:
'menuManager'
,
icon
:
'category'
,
icon
:
'category'
,
...
...
src/views/admin/appUser/index.vue
0 → 100644
View file @
a6d108e1
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