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
ca0419ba
Commit
ca0419ba
authored
Jul 10, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改按钮
parent
e5cf1aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
index.tsx
src/pages/member/memberEvaluate/createEvaluate/index.tsx
+12
-7
No files found.
src/pages/member/memberEvaluate/createEvaluate/index.tsx
View file @
ca0419ba
import
React
,
{
useCallback
,
useMemo
,
useRef
,
useState
}
from
'react'
;
import
{
Card
,
Space
,
Button
,
Spin
}
from
'antd'
import
{
Card
,
Space
,
Button
,
Spin
,
Popconfirm
}
from
'antd'
import
{
StandardTable
}
from
'god'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
useEvaluateColumn
,
{
setColumnsByLinks
}
from
'../hooks/useEvaluateColumn'
;
...
...
@@ -33,18 +33,23 @@ const List: React.FC<Iprops> = (props: Iprops) => {
<
Space
>
{
_record
.
publish
&&
(
<
Spin
spinning=
{
submitLoading
}
>
<
a
onClick=
{
()
=>
handlePublic
([
_record
.
id
])
}
>
发布
</
a
>
</
Spin
>
<
Popconfirm
placement=
"top"
title=
{
"是否确认发布?"
}
onConfirm=
{
()
=>
handlePublic
([
_record
.
id
])
}
>
<
Spin
spinning=
{
submitLoading
}
>
<
a
>
发布
</
a
>
</
Spin
>
</
Popconfirm
>
)
}
{
_record
.
updateOrDel
&&
(
<>
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/createEvaluate/edit?id=${_record.id}`
}
>
修改
</
Link
>
<
Spin
spinning=
{
submitLoading
}
>
<
a
onClick=
{
()
=>
handleBatchRemove
([
_record
.
id
])
}
>
删除
</
a
>
</
Spin
>
<
Popconfirm
placement=
"top"
title=
{
"是否确认删除?"
}
onConfirm=
{
()
=>
handleBatchRemove
([
_record
.
id
])
}
>
<
Spin
spinning=
{
submitLoading
}
>
<
a
>
删除
</
a
>
</
Spin
>
</
Popconfirm
>
</>
)
}
...
...
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