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
shenshaokai
jinfa-platform
Commits
f06638fd
Commit
f06638fd
authored
Aug 11, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 组件优化
parent
51ea4387
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
index.tsx
src/pages/authConfig/memberSystem/index.tsx
+4
-9
No files found.
src/pages/authConfig/memberSystem/index.tsx
View file @
f06638fd
...
...
@@ -16,6 +16,7 @@ import StatusSwitch from '@/components/StatusSwitch';
import
EyePreview
from
'@/components/EyePreview'
;
import
{
STATUS_ENUM
}
from
'@/constants'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
PopConfirmControl
from
'@/components/PopConfirmControl'
;
const
fetchData
=
async
(
params
)
=>
{
const
{
data
}
=
await
PublicApi
.
getMemberRolePage
(
params
)
...
...
@@ -81,18 +82,12 @@ const MemberSystem: React.FC<{}> = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
{
return
<>
<
Button
type=
'link'
onClick=
{
()
=>
updateItem
(
record
)
}
>
修改
</
Button
>
{
record
.
status
===
0
?
<
Popconfirm
title=
"确定要执行这个操作?"
<
PopConfirmControl
onConfirm=
{
()
=>
deleteItem
(
record
)
}
okText=
"是"
cancelText=
"否"
visible=
{
record
.
status
===
0
}
>
<
Button
type=
'link'
>
删除
</
Button
>
</
Popconfirm
>
:
null
}
</
PopConfirmControl
>
</>
}
}
...
...
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