Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
3882b5b0
Commit
3882b5b0
authored
Nov 26, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数修改
parent
7901195d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
role-form.vue
src/components/system/role-form.vue
+3
-17
No files found.
src/components/system/role-form.vue
View file @
3882b5b0
...
...
@@ -185,7 +185,6 @@
<i
class=
"iconfont icon-sanjiaoxing-you"
v-if=
"x.showChildren==false && x.SubList.length>0"
style=
"font-size: 5px;color: #DDDEE0"
></i>
<i
class=
"iconfont icon-sanjiaoxingx"
v-if=
"x.showChildren==true && x.SubList.length>0"
style=
"font-size: 5px;color: #DDDEE0"
></i>
</span>
<q-checkbox
v-model=
"x.IsChecked"
size=
"30px"
style=
"margin-bottom: 2px"
@
input=
"threecheck(subIndex,j)"
></q-checkbox>
<span
>
{{
x
.
MenuName
}}
</span>
<ul
v-if=
"x.SubList.length>0&& x.showChildren==true"
style=
"margin-left: 35px"
>
...
...
@@ -196,10 +195,6 @@
</ul>
</li>
</ul>
<!--
<q-tree
v-if=
"subItem.SubList.length>0"
:nodes=
"subItem.SubList"
node-key=
"MenuId"
label-key=
"MenuName"
--
>
<!-- children-key="SubList" tick-strategy="strict" :default-expand-all="true" no-connectors-->
<!-- :ticked.sync="chooseCategroyArray">-->
<!--
</q-tree>
-->
</div>
</div>
</div>
...
...
@@ -267,22 +262,18 @@
this
.
SubMenuList
=
item
.
SubList
;
}
},
//点击选中
getItem
(
item
,
index
)
{
if
(
this
.
checkedIndex
!=
index
)
{
this
.
checkedIndex
=
index
;
this
.
SubMenuList
=
[];
this
.
SubMenuList
=
item
.
SubList
;
}
else
{
// this.checkedIndex = -1;
// this.SubMenuList = [];
}
},
//获取权限
queryRolePermission
()
{
var
qMsg
=
{
Role
_Id
:
this
.
objOption
.
RoleId
Role
Id
:
this
.
saveObj
.
RoleId
};
GetRolePermission
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -347,17 +338,14 @@
}
},
onecheck
(
index
){
//第1级的操作
let
AuthMenuList
=
this
.
AuthMenuList
;
//全部数据
let
checkedIndex
=
index
;
//当前选择
if
(
AuthMenuList
[
checkedIndex
].
IsChecked
==
true
){
this
.
onecommon
(
AuthMenuList
,
checkedIndex
,
true
)
}
else
{
this
.
onecommon
(
AuthMenuList
,
checkedIndex
,
false
)
}
this
.
AuthMenuList
=
AuthMenuList
this
.
AuthMenuList
=
AuthMenuList
;
},
twocommon
(
AuthMenuList
,
twoiIsChecked
,
type
){
if
(
twoiIsChecked
.
SubList
.
length
>
0
){
...
...
@@ -390,7 +378,6 @@
if
(
type
==
false
){
AuthMenuList
[
checkedIndex
].
IsChecked
=
false
}
}
},
threecheck
(
twoindex
,
threeindex
){
//第3级的操作
...
...
@@ -430,7 +417,6 @@
if
(
type
==
false
){
AuthMenuList
[
checkedIndex
].
IsChecked
=
false
}
}
},
fourcheck
(
twoindex
,
threeindex
,
fourindex
){
//第4级的操作
...
...
@@ -479,7 +465,7 @@
},
//保存菜单
saveRole
()
{
//
this.saveLoading = true;
this
.
saveLoading
=
true
;
//角色菜单权限
var
rolePermissionList
=
[];
//角色功能权限
...
...
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