feature/业务线管理
This commit is contained in:
parent
7b95a64415
commit
5f37df75cc
|
|
@ -404,13 +404,15 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
|
|||
onClick: () => postMessageToParent("log", record)
|
||||
}
|
||||
];
|
||||
isSpecial && items.shift();
|
||||
(isSpecial || !record?.opts.includes("admin")) && items.shift();
|
||||
return (
|
||||
<Space>
|
||||
<Button type="link" onClick={() => postMessageToParent("EDIT", record)}>
|
||||
{i18n?.["编辑"]}
|
||||
</Button>
|
||||
{isSpecial ? (
|
||||
{record?.opts.includes("admin") && (
|
||||
<Button type="link" onClick={() => postMessageToParent("EDIT", record)}>
|
||||
{i18n?.["编辑"]}
|
||||
</Button>
|
||||
)}
|
||||
{isSpecial && record?.opts.includes("admin") ? (
|
||||
<Button type="link" onClick={() => postMessageToParent("DEL", record)}>
|
||||
{i18n?.["删除"]}
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue