泛微薪资核算iframe表格
This commit is contained in:
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…
Reference in New Issue