Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service-admin-view
Project
Project
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
external
on-site-service-admin-view
Commits
6f1f844c
Commit
6f1f844c
authored
Aug 08, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 角色管理bug
parent
ebbadd43
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
SysRoleDetail.vue
src/views/system/role/SysRoleDetail.vue
+5
-11
No files found.
src/views/system/role/SysRoleDetail.vue
View file @
6f1f844c
...
@@ -43,19 +43,15 @@
...
@@ -43,19 +43,15 @@
<a-select
<a-select
:disabled=
"this.id == 1"
:disabled=
"this.id == 1"
v-decorator=
"[
v-decorator=
"[
'sysRole.
available
',
'sysRole.
isEnabled
',
{
{
initialValue: sysRole.
available
,
initialValue: sysRole.
isEnabled
,
rules: [{ required: true, message: '请选择状态' }]
rules: [{ required: true, message: '请选择状态' }]
}
}
]"
]"
>
>
<a-select-option
<a-select-option
:key=
"1"
:value=
"1"
>
启用
</a-select-option>
v-for=
"item in typeList"
<a-select-option
:key=
"2"
:value=
"0"
>
禁用
</a-select-option>
:key=
"item.id"
:value=
"item.valueInt"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
...
@@ -187,15 +183,13 @@ export default {
...
@@ -187,15 +183,13 @@ export default {
getDetail
(
this
.
id
).
then
((
resp
)
=>
{
getDetail
(
this
.
id
).
then
((
resp
)
=>
{
if
(
resp
&&
resp
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
if
(
resp
&&
resp
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
this
.
sysRole
=
resp
.
data
.
sysRole
this
.
sysRole
=
resp
.
data
.
sysRole
this
.
sysRole
.
available
=
this
.
sysRole
.
available
?
1
:
0
this
.
sysRole
.
isEnabled
=
this
.
sysRole
.
isEnabled
?
1
:
0
this
.
itemList
=
[]
this
.
itemList
=
[]
if
(
resp
.
data
.
sysBusinessTreeList
)
{
if
(
resp
.
data
.
sysBusinessTreeList
)
{
this
.
itemList
=
resp
.
data
.
sysBusinessTreeList
[
0
].
children
this
.
itemList
=
resp
.
data
.
sysBusinessTreeList
[
0
].
children
}
}
this
.
checkChildren
(
this
.
itemList
)
this
.
checkChildren
(
this
.
itemList
)
this
.
checkSelectRow
(
this
.
itemList
)
this
.
checkSelectRow
(
this
.
itemList
)
this
.
typeList
=
resp
.
data
.
codeMap
[
SYS_CONST
.
CODE
.
SYS_AVAILABLE_STATUS
]
}
}
})
})
},
},
...
...
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