Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
web
soss
Commits
47de9c68
Commit
47de9c68
authored
Jun 01, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改角色
parent
a296df13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
26 deletions
+19
-26
src/views/system/role/index.vue
+19
-26
No files found.
src/views/system/role/index.vue
View file @
47de9c68
...
...
@@ -214,13 +214,7 @@ export default {
rules
:
{
roleName
:
[
{
required
:
true
,
message
:
"角色名称不能为空"
,
trigger
:
"blur"
},
],
roleKey
:
[
{
required
:
true
,
message
:
"权限字符不能为空"
,
trigger
:
"blur"
},
],
roleSort
:
[
{
required
:
true
,
message
:
"角色顺序不能为空"
,
trigger
:
"blur"
},
],
]
},
};
},
...
...
@@ -332,7 +326,6 @@ export default {
roleId
:
undefined
,
roleName
:
undefined
,
roleKey
:
undefined
,
roleSort
:
0
,
status
:
"0"
,
menuIds
:
[],
deptIds
:
[],
...
...
@@ -373,19 +366,19 @@ export default {
// }
// },
// 树权限(展开/折叠)
handleCheckedTreeExpand
(
value
,
type
)
{
if
(
type
==
"menu"
)
{
let
treeList
=
this
.
menuOptions
;
for
(
let
i
=
0
;
i
<
treeList
.
length
;
i
++
)
{
this
.
$refs
.
menu
.
store
.
nodesMap
[
treeList
[
i
].
id
].
expanded
=
value
;
}
}
else
if
(
type
==
"dept"
)
{
let
treeList
=
this
.
deptOptions
;
for
(
let
i
=
0
;
i
<
treeList
.
length
;
i
++
)
{
this
.
$refs
.
dept
.
store
.
nodesMap
[
treeList
[
i
].
id
].
expanded
=
value
;
}
}
},
//
handleCheckedTreeExpand(value, type) {
//
if (type == "menu") {
//
let treeList = this.menuOptions;
//
for (let i = 0; i
<
treeList
.
length
;
i
++
)
{
//
this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value;
//
}
//
} else if (type == "dept") {
//
let treeList = this.deptOptions;
//
for (let i = 0; i
<
treeList
.
length
;
i
++
)
{
//
this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value;
//
}
//
}
//
},
// // 树权限(全选/全不选)
// handleCheckedTreeNodeAll(value, type) {
// if (type == "menu") {
...
...
@@ -431,11 +424,11 @@ export default {
});
},
/** 选择角色权限范围触发 */
dataScopeSelectChange
(
value
)
{
if
(
value
!==
"2"
)
{
this
.
$refs
.
dept
.
setCheckedKeys
([]);
}
},
//
dataScopeSelectChange(value) {
//
if (value !== "2") {
//
this.$refs.dept.setCheckedKeys([]);
//
}
//
},
// /** 分配数据权限操作 */
// handleDataScope(row) {
// this.reset();
...
...
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