9.2 增加电子评标室菜单icon,修改回放
This commit is contained in:
@ -29,68 +29,33 @@ import {
|
||||
WalletOutlined,
|
||||
AppstoreOutlined,
|
||||
ShopOutlined,
|
||||
FundProjectionScreenOutlined,
|
||||
PlaySquareOutlined,
|
||||
BankOutlined,
|
||||
IdcardOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { getAuthority } from '@/utils/authority';
|
||||
import { JumpToOutside } from '@/utils/CommonUtils';
|
||||
|
||||
const menuImgList = [
|
||||
{
|
||||
key: 'HomeOutlined',
|
||||
value: <HomeOutlined />
|
||||
},
|
||||
{
|
||||
key: 'ContactsOutlined',
|
||||
value: <ContactsOutlined />
|
||||
},
|
||||
{
|
||||
key: 'DesktopOutlined',
|
||||
value: <DesktopOutlined />
|
||||
},
|
||||
{
|
||||
key: 'NotificationOutlined',
|
||||
value: <NotificationOutlined />
|
||||
},
|
||||
{
|
||||
key: 'BookOutlined',
|
||||
value: <BookOutlined />
|
||||
},
|
||||
{
|
||||
key: 'ProfileOutlined',
|
||||
value: <ProfileOutlined />
|
||||
},
|
||||
{
|
||||
key: 'CommentOutlined',
|
||||
value: <CommentOutlined />
|
||||
},
|
||||
{
|
||||
key: 'MacCommandOutlined',
|
||||
value: <MacCommandOutlined />
|
||||
},
|
||||
{
|
||||
key: 'ProjectOutlined',
|
||||
value: <ProjectOutlined />
|
||||
},
|
||||
{
|
||||
key: 'PartitionOutlined',
|
||||
value: <PartitionOutlined />
|
||||
},
|
||||
{
|
||||
key: 'PayCircleOutlined',
|
||||
value: <PayCircleOutlined />
|
||||
},
|
||||
{
|
||||
key: 'WalletOutlined',
|
||||
value: <WalletOutlined />
|
||||
},
|
||||
{
|
||||
key: 'AppstoreOutlined',
|
||||
value: <AppstoreOutlined />
|
||||
},
|
||||
{
|
||||
key: 'ShopOutlined',
|
||||
value: <ShopOutlined />
|
||||
},
|
||||
]
|
||||
const menuIconMap = {
|
||||
"HomeOutlined": <HomeOutlined />,
|
||||
"ContactsOutlined": <ContactsOutlined />,
|
||||
"DesktopOutlined": <DesktopOutlined />,
|
||||
"NotificationOutlined": <NotificationOutlined />,
|
||||
"BookOutlined": <BookOutlined />,
|
||||
"ProfileOutlined": <ProfileOutlined />,
|
||||
"CommentOutlined": <CommentOutlined />,
|
||||
"MacCommandOutlined": <MacCommandOutlined />,
|
||||
"ProjectOutlined": <ProjectOutlined />,
|
||||
"PartitionOutlined": <PartitionOutlined />,
|
||||
"PayCircleOutlined": <PayCircleOutlined />,
|
||||
"WalletOutlined": <WalletOutlined />,
|
||||
"AppstoreOutlined": <AppstoreOutlined />,
|
||||
"ShopOutlined": <ShopOutlined />,
|
||||
"FundProjectionScreenOutlined": <FundProjectionScreenOutlined />,
|
||||
"PlaySquareOutlined": <PlaySquareOutlined />,
|
||||
"BankOutlined": <BankOutlined />,
|
||||
"IdcardOutlined": <IdcardOutlined />,
|
||||
}
|
||||
|
||||
const noMatch = (
|
||||
<Result
|
||||
status={403}
|
||||
@ -156,22 +121,12 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
|
||||
}
|
||||
}, []);
|
||||
|
||||
function menuICon(menuData: any) {
|
||||
if (menuData != undefined && menuData != null && menuData.length > 0) {
|
||||
let data: any[] = [...menuData]
|
||||
let arr3 = data.map((item: any) => {
|
||||
menuImgList.forEach((item3: any) => {
|
||||
if (item.icon == item3.key) {
|
||||
item.icon = item3.value
|
||||
}
|
||||
})
|
||||
return item
|
||||
})
|
||||
return arr3
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}
|
||||
const menuICon = (menus: any[]): any[] =>
|
||||
menus && menus.map(({ icon, ...item }) => ({
|
||||
...item,
|
||||
icon: icon && menuIconMap[icon as string],
|
||||
}));
|
||||
|
||||
const handleMenuCollapse = (payload: boolean): void => {
|
||||
if (dispatch) {
|
||||
dispatch({
|
||||
|
Reference in New Issue
Block a user