Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
24e40a36
Commit
24e40a36
authored
Apr 14, 2021
by
季圣华
Browse files
优化角色选菜单的功能
parent
93ed56a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/RoleList.vue
View file @
24e40a36
...
...
@@ -45,7 +45,7 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleSetFunction(record
.id
)"
>
分配功能
</a>
<a
@
click=
"handleSetFunction(record)"
>
分配功能
</a>
<a-divider
type=
"vertical"
/>
<!--
<a
@
click=
"handleSetPushBtn(record.id)"
>
分配按钮
</a>
-->
<!--
<a-divider
type=
"vertical"
/>
-->
...
...
@@ -131,8 +131,8 @@
}
},
methods
:
{
handleSetFunction
(
i
d
)
{
this
.
$refs
.
roleFunctionModal
.
edit
(
i
d
);
handleSetFunction
(
recor
d
)
{
this
.
$refs
.
roleFunctionModal
.
edit
(
recor
d
);
this
.
$refs
.
roleFunctionModal
.
title
=
"
分配功能
"
;
this
.
$refs
.
roleFunctionModal
.
disableSubmit
=
false
;
},
...
...
jshERP-web/src/views/system/modules/RoleFunctionModal.vue
View file @
24e40a36
...
...
@@ -76,16 +76,16 @@
created
()
{
},
methods
:
{
edit
(
i
d
)
{
edit
(
recor
d
)
{
this
.
form
.
resetFields
();
this
.
model
=
Object
.
assign
({},
{});
this
.
visible
=
true
;
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
name
'
,
'
type
'
,
'
description
'
))
});
this
.
roleId
=
id
this
.
roleId
=
record
.
id
this
.
checkedKeys
=
[]
this
.
loadTree
(
id
)
this
.
loadTree
(
record
.
id
)
},
close
()
{
this
.
$emit
(
'
close
'
);
...
...
@@ -99,7 +99,7 @@
that
.
confirmLoading
=
true
;
let
formData
=
Object
.
assign
(
this
.
model
,
values
);
formData
.
type
=
'
RoleFunctions
'
formData
.
keyId
=
this
.
model
.
i
d
formData
.
keyId
=
this
.
roleI
d
formData
.
value
=
this
.
checkedKeys
let
obj
;
checkUserBusiness
({
'
type
'
:
'
RoleFunctions
'
,
'
keyId
'
:
this
.
roleId
}).
then
((
res
)
=>
{
...
...
Write
Preview
Supports
Markdown
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