From d9a5f4c951dfcbe43863d8d58e898f6626358d73 Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Wed, 23 Nov 2022 10:12:11 +0800 Subject: [PATCH] =?UTF-8?q?11.23=20=E7=94=B5=E5=AD=90=E8=AF=84=E6=A0=87?= =?UTF-8?q?=E5=AE=A4=E4=BC=9A=E8=AE=AE=E9=A2=84=E7=BA=A6=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ElecEvaluation/AppointmentManage/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/ElecEvaluation/AppointmentManage/index.tsx b/src/pages/ElecEvaluation/AppointmentManage/index.tsx index 0383638..dd810f8 100644 --- a/src/pages/ElecEvaluation/AppointmentManage/index.tsx +++ b/src/pages/ElecEvaluation/AppointmentManage/index.tsx @@ -16,10 +16,9 @@ const tag_size = { height: '20px', width: '20px' }; const panel_title = { fontWeight: 500 }; const panel_sub_title = { ...panel_title, color: '#999999' }; const { Panel } = Collapse; -const roleCode = getSessionRoleData()?.roleCode;//获取角色 -const ScreenTable = (props: { record: any, onCellClick: (id: any) => void, refresh: number }) => { - const { record, onCellClick, refresh } = props; +const ScreenTable = (props: { record: any, onCellClick: (id: any) => void, refresh: number, roleCode: string }) => { + const { record, onCellClick, refresh, roleCode } = props; const actionRef = useRef(); //表格列 const [tableColumns, setTableColumns] = useState[]>([]); @@ -133,7 +132,8 @@ export default (props: any) => { const [refresh, setRefresh] = useState(0); //跳转参数 const isRedirect: boolean | undefined = props.location?.state?.redirect; - console.log("isRedirect", isRedirect); + //获取角色 + const roleCode = getSessionRoleData()?.roleCode; //获取评标场所 const getSiteListData = (key: any) => { @@ -204,7 +204,7 @@ export default (props: any) => { } key={item.id} > - + ))}