客户,供应商
This commit is contained in:
@@ -100,19 +100,22 @@ export const TeamTable = ({ tableLoading,pagination,dataSource, onTableChange,on
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 180,
|
||||
render: (_, record) => {
|
||||
const editable = isEditing(record);
|
||||
return editable ? (
|
||||
<Space>
|
||||
<Space size={0}>
|
||||
<Button
|
||||
icon={<SaveOutlined />}
|
||||
onClick={() => save(record.id)}
|
||||
type="link"
|
||||
size='small'
|
||||
loading={loading}
|
||||
>
|
||||
保存
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
icon={<CloseOutlined />}
|
||||
onClick={cancel}
|
||||
type="link"
|
||||
@@ -123,6 +126,7 @@ export const TeamTable = ({ tableLoading,pagination,dataSource, onTableChange,on
|
||||
) : (
|
||||
<Space>
|
||||
<Button
|
||||
size='small'
|
||||
disabled={editingKey !== ''}
|
||||
icon={<EditOutlined />}
|
||||
onClick={() => edit(record)}
|
||||
@@ -138,6 +142,7 @@ export const TeamTable = ({ tableLoading,pagination,dataSource, onTableChange,on
|
||||
icon={<DeleteOutlined />}
|
||||
type="link"
|
||||
danger
|
||||
size='small'
|
||||
loading={loading}
|
||||
>
|
||||
删除
|
||||
|
||||
Reference in New Issue
Block a user