泛微薪资核算iframe表格

feature/低版本火狐浏览器
黎永顺 2 years ago
parent 8ef9090635
commit c219b1a5fb

@ -19,7 +19,11 @@ export default ({ children, style = {} }: any) => {
width: "100%",
height: "100%",
overflow: "hidden",
background: window.location.hash.indexOf("atdTable") !== -1 ? "#f6f6f6" : "#FFF",
background: (
window.location.hash.indexOf("atdTable") !== -1 ||
window.location.hash.indexOf("standingbookTable") !== -1 ||
window.location.hash.indexOf("previewTable") !== -1
) ? "#f6f6f6" : "#FFF",
...style
}}
>

@ -24,7 +24,7 @@ const CommonTable: FC = (props) => {
const receiveMessageFromIndex = (event: any) => {
const data: any = exceptStr(event.data);
if (!_.isEmpty(data)) {
const { columns, dataSource, pageInfo, i18n, selectedRowKeys } = data;
const { columns, dataSource, pageInfo, i18n, selectedRowKeys, selectedKey } = data;
const { current: pageNum, pageSize: size, total } = pageInfo;
setDataSource(dataSource);
setI18n(i18n);
@ -38,12 +38,12 @@ const CommonTable: FC = (props) => {
fixed: "right",
width: 120,
render: (_: any, record: any) => {
return (
return selectedKey === "list" ? (
<Space>
<Button type="link" onClick={() => handleEdit(record)}>{i18n["编辑"]}</Button>
<Button type="link" onClick={() => handleDelete(record)}>{i18n["删除"]}</Button>
</Space>
);
) : null;
}
}
]);

Loading…
Cancel
Save