|
|
@@ -150,15 +150,15 @@ const Contact: React.FC = () => {
|
|
|
dataIndex: 'opreate',
|
|
|
title: '操作',
|
|
|
render: (_, record) => (
|
|
|
- <div>
|
|
|
- <span
|
|
|
- className="mr-1 text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
+ <div className="divide-x divide-bg-gray-400 flex flex-row">
|
|
|
+ <div
|
|
|
+ className="pr-2 text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
onClick={() => {
|
|
|
formRef.current?.setFieldsValue({ ...record })
|
|
|
setState({ ...state, visible: true, type: modalType.UPDATE })
|
|
|
}}>
|
|
|
编辑
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
{record.activation ? (
|
|
|
<Popconfirm
|
|
|
title="是否停用此商机组"
|
|
|
@@ -168,12 +168,12 @@ const Contact: React.FC = () => {
|
|
|
activation: Number(!record.activation)
|
|
|
})
|
|
|
}>
|
|
|
- <span className="mr-1 text-red-500 cursor-pointer hover:text-red-600">停用</span>
|
|
|
+ <div className="px-2 text-red-500 cursor-pointer hover:text-red-600">停用</div>
|
|
|
</Popconfirm>
|
|
|
) : null}
|
|
|
{!record.activation && (
|
|
|
- <span
|
|
|
- className="mr-1 text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
+ <div
|
|
|
+ className="px-2 text-primary cursor-pointer hover:text-hex-967bbd"
|
|
|
onClick={() =>
|
|
|
tryChangeBusinessGroupStatus({
|
|
|
id: record.id,
|
|
|
@@ -181,13 +181,13 @@ const Contact: React.FC = () => {
|
|
|
})
|
|
|
}>
|
|
|
启用
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
)}
|
|
|
|
|
|
<Popconfirm title="确认删除?" onConfirm={() => tryDelBusinessGroup(record.id)}>
|
|
|
- <span className="text-hex-fd3995 hover:text-hex-e7026e">
|
|
|
+ <div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e">
|
|
|
<Delete />
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
</Popconfirm>
|
|
|
</div>
|
|
|
)
|