| | |
| | | const DEFAULT_EXPAND_ALL = true; |
| | | |
| | | const AssignPermissions = (props) => { |
| | | const { role, originMenuIds, setDrawerVal, closeCallback } = props; |
| | | const { role, originMenuIds, setDrawerVal, closeCallback, authType } = props; |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | |
| | | console.log("authType"+authType) |
| | | |
| | | const [loading, setLoading] = useState(false); |
| | | const [treeData, setTreeData] = useState([]); |
| | | const [selectedItems, setSelectedItems] = useState([]); |
| | | const [expandedItems, setExpandedItems] = useState([]); |
| | | const [parmas, setParmas] = useState({ condition: '' }); |
| | | const [parmas, setParmas] = useState({ condition: '', authType: authType }); |
| | | const toggledItemRef = useRef({}); |
| | | const apiRef = useTreeViewApiRef(); |
| | | |
| | |
| | | <Card sx={{ |
| | | ml: 1, |
| | | mr: 1, |
| | | height: '620px' |
| | | height: 'calc(100vh - 140px)', |
| | | overflowY: 'auto' |
| | | }}> |
| | | <CardContent sx={{ |
| | | overflow: 'auto', |
| | | height: '100%', |
| | | display: 'flex', |
| | | flexDirection: 'column', |
| | | justifyContent: 'space-between' |
| | |
| | | </Box> |
| | | |
| | | <Box sx={{ |
| | | height: 480, |
| | | minWidth: 290, |
| | | overflow: 'auto', |
| | | marginTop: '10px', |