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} > - + ))}