|
@@ -3,6 +3,7 @@ import React from "react"
|
|
|
import { EditOutlined } from "@ant-design/icons"
|
|
import { EditOutlined } from "@ant-design/icons"
|
|
|
import GroupUserInfo from "./groupUserInfo"
|
|
import GroupUserInfo from "./groupUserInfo"
|
|
|
import CloseSwitch from "./closeSwitch"
|
|
import CloseSwitch from "./closeSwitch"
|
|
|
|
|
+import AssociateCSG from "./associateCSG"
|
|
|
|
|
|
|
|
const columns = (handleEdit: (data: any) => void, refresh: () => void): TableProps<any>['columns'] => {
|
|
const columns = (handleEdit: (data: any) => void, refresh: () => void): TableProps<any>['columns'] => {
|
|
|
|
|
|
|
@@ -72,10 +73,11 @@ const columns = (handleEdit: (data: any) => void, refresh: () => void): TablePro
|
|
|
title: '切号策略',
|
|
title: '切号策略',
|
|
|
dataIndex: 'policyName',
|
|
dataIndex: 'policyName',
|
|
|
key: 'policyName',
|
|
key: 'policyName',
|
|
|
- width: 100,
|
|
|
|
|
|
|
+ width: 160,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
|
|
+ ellipsis: true,
|
|
|
render(value) {
|
|
render(value) {
|
|
|
- return <span style={{ fontSize: 12 }}>{value}</span>
|
|
|
|
|
|
|
+ return <span style={{ fontSize: 12 }}>{value || '--'}</span>
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -147,7 +149,8 @@ const columns = (handleEdit: (data: any) => void, refresh: () => void): TablePro
|
|
|
return <Space>
|
|
return <Space>
|
|
|
{/* <UserInfo userInfoList={record.userInfoList} createTime={record.createTime} groupMemberCnt={record.groupMemberCnt} /> */}
|
|
{/* <UserInfo userInfoList={record.userInfoList} createTime={record.createTime} groupMemberCnt={record.groupMemberCnt} /> */}
|
|
|
{record.type == 1 && <GroupUserInfo adAccountId={record.accountId} groupData={record} />}
|
|
{record.type == 1 && <GroupUserInfo adAccountId={record.accountId} groupData={record} />}
|
|
|
- <Button icon={<EditOutlined />} style={{ border: 'none', fontSize: 12 }} size='small' onClick={() => handleEdit(record)}>修改</Button>
|
|
|
|
|
|
|
+ <Button icon={<EditOutlined />} style={{ border: 'none', fontSize: 12, padding: 0 }} size='small' onClick={() => handleEdit(record)}>修改</Button>
|
|
|
|
|
+ {!record?.parentId && <AssociateCSG localCorpCsgroupId={record.id} />}
|
|
|
</Space>
|
|
</Space>
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|