Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
788b8752
Commit
788b8752
authored
May 19, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
a56f3ab7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+9
-14
No files found.
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
788b8752
...
...
@@ -232,21 +232,16 @@ const MemberDetail: React.FC<{}> = () => {
},
[
getButtonAuth
,
nodeRecord
]);
const
handleSubmit
=
()
=>
{
menuActions
.
submit
().
then
(
async
({
values
})
=>
{
values
[
'imFlag'
]
=
values
[
'imFlag'
]
?
1
:
0
setErrors
(
false
)
menuActions
.
submit
()
.
then
(
async
({
values
})
=>
{
setErrors
(
false
);
// 如果未点击过操作权限tab, 则无法获取到actionRef实例, 需补充手动补充回显的ids, 新增的时候如果未设置按钮,则返回空数组
const
buttonCheckIds
=
actionRef
.
current
.
selected
||
(
formValue
&&
formValue
.
ids
)
||
[]
const
treeCheckIds
=
treeActions
.
getSelectKeys
()
const
menuIds
=
[...
buttonCheckIds
,
...
treeCheckIds
]
if
(
pageStatus
===
PageStatus
.
EDIT
)
{
await
PublicApi
.
postMemberRoleUpdate
({
...
values
,
memberRoleId
:
id
,
menuIds
})
}
else
{
await
PublicApi
.
postMemberRoleAdd
({
const
buttonCheckIds
=
actionRef
.
current
.
selected
||
(
formValue
&&
formValue
.
ids
)
||
[];
const
treeCheckIds
=
treeActions
.
getSelectKeys
();
const
publicParams
=
{
...
values
,
hasImAuth
:
values
.
hasImAuth
?
1
:
0
,
auth
:
treeCheckIds
.
map
(
v
=>
({
...
...
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