Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-operation-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
达摩4.0重构
haoban-operation-4
Commits
a2d2e77a
Commit
a2d2e77a
authored
Aug 04, 2020
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
00ddc80f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
permission-list.vue
src/views/permission/permission-list.vue
+14
-3
No files found.
src/views/permission/permission-list.vue
View file @
a2d2e77a
...
...
@@ -89,9 +89,19 @@ export default {
initData
()
{
// 获取权限项列表
this
.
getAuthItemList
();
// 获取当前节点下的操作项
getOperationItemList
({
menuId
:
this
.
menuId
}).
then
(
res
=>
{
this
.
operationList
=
res
.
result
||
[];
this
.
getOperationItemList
(
1
);
},
// 获取当前节点下的操作项
getOperationItemList
(
pageNum
)
{
if
(
pageNum
==
1
)
{
this
.
operationList
=
[];
}
getOperationItemList
({
menuId
:
this
.
menuId
,
pageSize
:
20
,
pageNum
}).
then
(
res
=>
{
const
{
totalPage
,
result
}
=
res
.
result
||
{};
this
.
operationList
=
this
.
operationList
.
concat
(
result
||
[]);
if
(
pageNum
+
1
<=
totalPage
)
{
this
.
getOperationItemList
(
pageNum
+
1
);
}
})
},
// 获取权限项列表
...
...
@@ -133,6 +143,7 @@ export default {
params
.
authItemId
=
authItemId
;
editAuthItem
(
params
).
then
(
succ
.
bind
(
this
,
'保存成功!'
)).
finally
(()
=>
this
.
editAuth
.
loading
=
false
);
}
else
{
params
.
menuId
=
this
.
menuId
;
addAuthItem
(
params
).
then
(
succ
.
bind
(
this
,
'新建成功!'
)).
finally
(()
=>
this
.
editAuth
.
loading
=
false
);
}
function
succ
(
msg
)
{
...
...
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