diff --git a/src/pages/salaryFileTable/index.tsx b/src/pages/salaryFileTable/index.tsx index bf2f81e..1fc461a 100644 --- a/src/pages/salaryFileTable/index.tsx +++ b/src/pages/salaryFileTable/index.tsx @@ -124,7 +124,15 @@ const Index: FunctionComponent = (props) => { : - + handleSalaryFileOperate("log", record) + } + ] + }} placement="bottomRight"> + - + handleSalaryFileOperate("log", record) + } + ] + }} placement="bottomRight"> + - + handleSalaryFileOperate("log", record) + } + ] + }} placement="bottomRight"> + - + handleSalaryFileOperate("log", record) + } + ] + }} placement="bottomRight"> + ); + onClick={() => postMessageToParent((billStatus === "0" && record?.opts.includes("admin")) ? "CALC" : "VIEW", record)}>{text}); } }; break; @@ -72,15 +72,13 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject, return ( { - !extraParams?.permission ? + !record?.opts.includes("admin") ? postMessageToParent("log", record) - }] + items: [ + { key: "Log", label: i18n?.["操作日志"], onClick: () => postMessageToParent("log", record) } + ] }} placement="bottomRight"> + handleWelfareOperate("log", record) }] + }} placement="bottomRight"> + - - + + - - - ) - }]; - }, [columns, runStatuses, i18n, showOperateBtn]); + return [...columns, opts]; + }, [columns, runStatuses, i18n]); return (); };