9.2 增加电子评标室菜单icon,修改回放
This commit is contained in:
@ -197,7 +197,7 @@ const ScreenVideoPlay: React.FC<ScreenVideoPlayProps> = (props) => {
|
||||
var cameraIndexCode = caremaCode; //获取输入的监控点编号值,必填
|
||||
var startTimeStamp = new Date(startTime?.replace('-', '/').replace('-', '/')).getTime(); //回放开始时间戳,必填
|
||||
var endTimeStamp = new Date(endTime?.replace('-', '/').replace('-', '/')).getTime(); //回放结束时间戳,必填
|
||||
var recordLocation = 0; //录像存储位置:0-中心存储,1-设备存储
|
||||
var recordLocation = 1; //录像存储位置:0-中心存储,1-设备存储
|
||||
var transMode = 1; //传输协议:0-UDP,1-TCP
|
||||
var gpuMode = 0; //是否启用GPU硬解,0-不启用,1-启用
|
||||
var wndId = -1; //播放窗口序号(在2x2以上布局下可指定播放窗口)
|
||||
|
@ -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({
|
||||
|
@ -56,7 +56,7 @@
|
||||
.screen-flex-center;
|
||||
flex: 1;
|
||||
color: #facd91;
|
||||
justify-content: flex-start;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user