feature/业务线管理
This commit is contained in:
parent
a15b0d83f7
commit
ed3e74621a
|
|
@ -452,41 +452,19 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
case "operate":
|
||||
col = {
|
||||
...col,
|
||||
width: 176,
|
||||
fixed: "right" // render: (__: string, record: any) => {
|
||||
// let items: MenuProps["items"] = [
|
||||
// {
|
||||
// key: "DeleteList",
|
||||
// label: i18n?.["删除"],
|
||||
// onClick: () => postMessageToParent("DEL", record)
|
||||
// },
|
||||
// {
|
||||
// key: "Log",
|
||||
// label: i18n?.["操作日志"],
|
||||
// onClick: () => postMessageToParent("log", record)
|
||||
// }
|
||||
// ];
|
||||
// isSpecial && items.shift();
|
||||
// return (
|
||||
// <Space>
|
||||
// <Button type="link" onClick={() => postMessageToParent("EDIT", record)}>
|
||||
// {i18n?.["编辑"]}
|
||||
// </Button>
|
||||
// {isSpecial ? (
|
||||
// <Button type="link" onClick={() => postMessageToParent("DEL", record)}>
|
||||
// {i18n?.["删除"]}
|
||||
// </Button>
|
||||
// ) : (
|
||||
// <Button type="link" onClick={() => postMessageToParent("VIEW", record)}>
|
||||
// {i18n?.["查看明细"]}
|
||||
// </Button>
|
||||
// )}
|
||||
// <Dropdown menu={{ items }} placement="bottomRight">
|
||||
// <Button type="link" icon={<MoreOutlined />} />
|
||||
// </Dropdown>
|
||||
// </Space>
|
||||
// );
|
||||
// }
|
||||
ellipsis: false,
|
||||
width: 120,
|
||||
render: (__: string, record: any) => {
|
||||
return (
|
||||
<Space>
|
||||
{_.map(col?.operateType, (o) => (
|
||||
<Button key={o.key} type="link" onClick={() => postMessageToParent(o.key, record)}>
|
||||
{o.label}
|
||||
</Button>
|
||||
))}
|
||||
</Space>
|
||||
);
|
||||
}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue