feature/2.9.42310.01-薪资项目拓扑图

This commit is contained in:
黎永顺 2024-04-22 18:57:13 +08:00
parent 70f452c19f
commit cebb23b02e
1 changed files with 5 additions and 1 deletions

View File

@ -36,12 +36,13 @@ const CommonTable: FC = (props) => {
title: i18n["操作"],
dataIndex: "operate",
fixed: "right",
width: 120,
width: 140,
render: (_: any, record: any) => {
return selectedKey === "list" ? (
<Space>
<Button type="link" onClick={() => handleEdit(record)}>{i18n["编辑"]}</Button>
<Button type="link" onClick={() => handleDelete(record)}>{i18n["删除"]}</Button>
<Button type="link" onClick={() => handleVoid(record)}>{i18n["作废"]}</Button>
</Space>
) : null;
}
@ -55,6 +56,9 @@ const CommonTable: FC = (props) => {
const handleDelete = (record: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "DELETE", params: { ...record } } }, "*");
};
const handleVoid = (record: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "VOID", params: { ...record } } }, "*");
};
const sizeChange = (pageobj: IPage) => {
};
const onChange = (pageobj: IPage) => {