update Home
This commit is contained in:
parent
296a39c7f8
commit
d56becaf05
@ -1,14 +1,10 @@
|
|||||||
import './global.less';
|
import './global.less';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import Head from '../components/公共组件/顶部公司名称';
|
import Head from '../components/公共组件/顶部公司名称';
|
||||||
import LeftBar from '../components/模块组件/总览/LeftSide';
|
|
||||||
import BottomBar from '../components/模块组件/总览/Bottom';
|
|
||||||
import RightBar from '../components/模块组件/总览/RightSide';
|
|
||||||
import CenterTopData from '../components/模块组件/总览/CenterTop';
|
|
||||||
import { SocketContextProvider } from '../store/socket-data-provider';
|
import { SocketContextProvider } from '../store/socket-data-provider';
|
||||||
import useSlider, { Slider } from '../hooks/useSlider';
|
import useSlider, { Slider } from '../hooks/useSlider';
|
||||||
import NavMenu from '../components/公共组件/导航菜单';
|
import NavMenu from '../components/公共组件/导航菜单';
|
||||||
import V3DBG from '../assets/V3DBG.png';
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
// import V3D from './V3D';
|
// import V3D from './V3D';
|
||||||
import Home from './总览';
|
import Home from './总览';
|
||||||
@ -25,22 +21,13 @@ export default function index() {
|
|||||||
<>
|
<>
|
||||||
<div id="FullScreen" style={styles}>
|
<div id="FullScreen" style={styles}>
|
||||||
<NavMenu active={navActive} onChangeActive={(v) => setNavActive(v)} />
|
<NavMenu active={navActive} onChangeActive={(v) => setNavActive(v)} />
|
||||||
<SocketContextProvider>
|
|
||||||
<Head />
|
<Head />
|
||||||
<div className="Main">
|
<SocketContextProvider>
|
||||||
<LeftBar />
|
{navActive == '窑炉总览' && <Home />}
|
||||||
<div className="Center">
|
{navActive == '质检统计' && <CheckInfo />}
|
||||||
<div className="CenterData">
|
{navActive == '退火监测' && <FireCheck />}
|
||||||
<CenterTopData />
|
{navActive == '能耗分析' && <EnergyAnalysis />}
|
||||||
</div>
|
{navActive == '窑炉内部' && <KilnInner />}
|
||||||
<img src={V3DBG} alt="图片加载错误" className="V3DBG" />
|
|
||||||
<div className="V3DBorder">{/* <V3D /> */}</div>
|
|
||||||
<div className="Button">
|
|
||||||
<BottomBar />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<RightBar />
|
|
||||||
</div>
|
|
||||||
</SocketContextProvider>
|
</SocketContextProvider>
|
||||||
</div>
|
</div>
|
||||||
<Slider value={value} setValue={setValue} />
|
<Slider value={value} setValue={setValue} />
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
import LeftBar from '../../components/模块组件/总览/LeftSide';
|
||||||
|
import BottomBar from '../../components/模块组件/总览/Bottom';
|
||||||
|
import RightBar from '../../components/模块组件/总览/RightSide';
|
||||||
|
import CenterTopData from '../../components/模块组件/总览/CenterTop';
|
||||||
|
|
||||||
|
import V3DBG from '../../assets/V3DBG.png';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return <div>Home</div>;
|
return (
|
||||||
|
<div className="Main">
|
||||||
|
<LeftBar />
|
||||||
|
<div className="Center">
|
||||||
|
<div className="CenterData">
|
||||||
|
<CenterTopData />
|
||||||
|
</div>
|
||||||
|
<img src={V3DBG} alt="图片加载错误" className="V3DBG" />
|
||||||
|
<div className="V3DBorder"></div>
|
||||||
|
<div className="Button">
|
||||||
|
<BottomBar />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<RightBar />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user