Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
b603c16d
Commit
b603c16d
authored
Aug 06, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
858c630b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
store-admin-list.vue
src/views/enterprise/store-admin-list.vue
+8
-1
No files found.
src/views/enterprise/store-admin-list.vue
View file @
b603c16d
...
...
@@ -66,6 +66,7 @@ export default {
// 角色列表
roleList
:
[],
activeRoleId
:
''
,
enterpriseId
:
''
,
adminList
:
[],
search
:
''
,
pager
:
{
...
...
@@ -103,6 +104,7 @@ export default {
this
.
roleList
.
some
(
el
=>
{
if
(
el
.
roleList
.
length
>
0
)
{
this
.
activeRoleId
=
el
.
roleList
[
0
].
roleId
;
this
.
enterpriseId
=
el
.
roleList
[
0
].
enterpriseId
;
}
return
el
.
roleList
.
length
>
0
;
})
...
...
@@ -116,6 +118,7 @@ export default {
getAdminList
()
{
const
params
=
{
roleId
:
this
.
activeRoleId
,
enterpriseId
:
this
.
enterpriseId
,
search
:
this
.
search
,
pageNum
:
this
.
pager
.
currentPage
,
pageSize
:
this
.
pager
.
pageSize
...
...
@@ -128,8 +131,12 @@ export default {
},
// 切换角色菜单
onChangeRole
(
roleData
)
{
const
{
roleId
}
=
roleData
;
const
{
roleId
,
enterpriseId
}
=
roleData
;
this
.
activeRoleId
=
roleId
;
this
.
enterpriseId
=
enterpriseId
;
this
.
search
=
''
;
this
.
pager
.
currentPage
=
1
;
this
.
getAdminList
();
},
// 编辑角色菜单
onEditRole
(
roleData
)
{
...
...
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