Commit ca0419ba authored by Bill's avatar Bill

fix: 修改按钮

parent e5cf1aef
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>
</>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment