连猛测试环境处理
This commit is contained in:
parent
beca6cb675
commit
27607f7634
@ -1,4 +1,4 @@
|
|||||||
import React, { useState, useMemo ,useEffect} from "react";
|
import React, { useState, useMemo, useEffect } from "react";
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
import { withRouter } from "dva/router";
|
import { withRouter } from "dva/router";
|
||||||
import { Dropdown, Icon, Menu, message, Button, Modal, Input } from "antd";
|
import { Dropdown, Icon, Menu, message, Button, Modal, Input } from "antd";
|
||||||
@ -8,7 +8,7 @@ import FoUserInfoShow from "../components/MainPage/FoUserInfoShow";
|
|||||||
import FeedbackQuestion from "../components/MainPage/FeedbackQuestion";
|
import FeedbackQuestion from "../components/MainPage/FeedbackQuestion";
|
||||||
import GuideCanvas from "../components/MainPage/GuideCanvas";
|
import GuideCanvas from "../components/MainPage/GuideCanvas";
|
||||||
import IconFont from "../utils/iconFont";
|
import IconFont from "../utils/iconFont";
|
||||||
import { initFilter,requestFullScreenMethod } from "../utils/common";
|
import { initFilter, requestFullScreenMethod } from "../utils/common";
|
||||||
import config from "../config";
|
import config from "../config";
|
||||||
import "./header.less";
|
import "./header.less";
|
||||||
import Option from "./Option";
|
import Option from "./Option";
|
||||||
@ -134,7 +134,7 @@ const SearchBox = (props) => {
|
|||||||
});
|
});
|
||||||
props.history.push({ pathname: `/main/${menu.Node.ID}` });
|
props.history.push({ pathname: `/main/${menu.Node.ID}` });
|
||||||
setInputVal("");
|
setInputVal("");
|
||||||
setAutoCompleteData([])
|
setAutoCompleteData([]);
|
||||||
};
|
};
|
||||||
if (window.navigator.userAgent.indexOf("Windows") < 1) {
|
if (window.navigator.userAgent.indexOf("Windows") < 1) {
|
||||||
return <span></span>;
|
return <span></span>;
|
||||||
@ -155,7 +155,7 @@ const SearchBox = (props) => {
|
|||||||
// hasBorder={false}
|
// hasBorder={false}
|
||||||
// lists={autoCompleteData}
|
// lists={autoCompleteData}
|
||||||
// />
|
// />
|
||||||
<Dropdown overlay={overMenu} placement="topLeft" trigger={['click']}>
|
<Dropdown overlay={overMenu} placement="topLeft" trigger={["click"]}>
|
||||||
<div className="headerInput">
|
<div className="headerInput">
|
||||||
{/* <Search
|
{/* <Search
|
||||||
placeholder={"请输入搜索内容"}
|
placeholder={"请输入搜索内容"}
|
||||||
@ -164,7 +164,12 @@ const SearchBox = (props) => {
|
|||||||
/> */}
|
/> */}
|
||||||
<Input
|
<Input
|
||||||
placeholder="搜索菜单"
|
placeholder="搜索菜单"
|
||||||
prefix={<Icon type="search" style={{ color: "#909399" ,fontSize:'18px'}} />}
|
prefix={
|
||||||
|
<Icon
|
||||||
|
type="search"
|
||||||
|
style={{ color: "#909399", fontSize: "18px" }}
|
||||||
|
/>
|
||||||
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
handleSearchMenu(e);
|
handleSearchMenu(e);
|
||||||
}}
|
}}
|
||||||
@ -330,8 +335,8 @@ const RiskFourColorOpton = (props) => {
|
|||||||
document.msFullScreen
|
document.msFullScreen
|
||||||
);
|
);
|
||||||
if (isFull) {
|
if (isFull) {
|
||||||
// /
|
// /
|
||||||
}else{
|
} else {
|
||||||
// requestFullScreenMethod(document.body);
|
// requestFullScreenMethod(document.body);
|
||||||
setshowModal(false);
|
setshowModal(false);
|
||||||
}
|
}
|
||||||
@ -369,11 +374,11 @@ const RiskFourColorOpton = (props) => {
|
|||||||
type="primary"
|
type="primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setshowModal(true);
|
setshowModal(true);
|
||||||
requestFullScreenMethod(document.body); // 进入全屏
|
requestFullScreenMethod(document.body); // 进入全屏
|
||||||
}}
|
}}
|
||||||
style={{ margin: "0px 36px", display: "flex", alignItems: "center" }}
|
style={{ margin: "0px 36px", display: "flex", alignItems: "center" }}
|
||||||
>
|
>
|
||||||
<Icon type='global' className='header__right-icon'></Icon>
|
<Icon type="global" className="header__right-icon"></Icon>
|
||||||
{/* <IconFont
|
{/* <IconFont
|
||||||
type="icon-line-108"
|
type="icon-line-108"
|
||||||
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
||||||
@ -419,8 +424,8 @@ const FullScreenOpton = (props) => {
|
|||||||
document.msFullScreen
|
document.msFullScreen
|
||||||
);
|
);
|
||||||
if (isFull) {
|
if (isFull) {
|
||||||
// /
|
// /
|
||||||
}else{
|
} else {
|
||||||
// requestFullScreenMethod(document.body);
|
// requestFullScreenMethod(document.body);
|
||||||
setshowModal(false);
|
setshowModal(false);
|
||||||
}
|
}
|
||||||
@ -458,10 +463,10 @@ const FullScreenOpton = (props) => {
|
|||||||
type="primary"
|
type="primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setshowModal(true);
|
setshowModal(true);
|
||||||
requestFullScreenMethod(document.body); // 进入全屏
|
requestFullScreenMethod(document.body); // 进入全屏
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon type='alert' className='header__right-icon'></Icon>
|
<Icon type="alert" className="header__right-icon"></Icon>
|
||||||
{/* <IconFont
|
{/* <IconFont
|
||||||
type="icon-line-108"
|
type="icon-line-108"
|
||||||
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
|
||||||
@ -572,8 +577,8 @@ function Header(props) {
|
|||||||
</div>
|
</div>
|
||||||
{!props.matchLogin ? (
|
{!props.matchLogin ? (
|
||||||
<div className="header__right">
|
<div className="header__right">
|
||||||
<RiskFourColor/>
|
<RiskFourColor />
|
||||||
{/* <FullScreen /> */}
|
{window.location.host == "47.122.43.22:7001" || 'localhost:7001' ? <FullScreen /> : ""}
|
||||||
<HeaderDataV />
|
<HeaderDataV />
|
||||||
<HeaderSearch />
|
<HeaderSearch />
|
||||||
<GuideCode />
|
<GuideCode />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user