From c219b1a5fb9bae6b8fd0577820519fd35f54765f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 1 Sep 2023 17:33:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=9B=E5=BE=AE=E8=96=AA=E8=B5=84=E6=A0=B8?= =?UTF-8?q?=E7=AE=97iframe=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BlankLayout/index.tsx | 6 +++++- src/pages/employeeDeclareTable/index.tsx | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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; } } ]);