diff --git a/src/layouts/BlankLayout/index.tsx b/src/layouts/BlankLayout/index.tsx index 3a0ea6b..92f1961 100644 --- a/src/layouts/BlankLayout/index.tsx +++ b/src/layouts/BlankLayout/index.tsx @@ -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 }} > diff --git a/src/pages/employeeDeclareTable/index.tsx b/src/pages/employeeDeclareTable/index.tsx index 198a38c..73e03f9 100644 --- a/src/pages/employeeDeclareTable/index.tsx +++ b/src/pages/employeeDeclareTable/index.tsx @@ -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" ? ( - ); + ) : null; } } ]);