Browse Source

能耗 10%

master
wenlele 2 years ago
parent
commit
cd92f292df
  1. BIN
      web/client/assets/images/monitor/left.png
  2. BIN
      web/client/assets/images/monitor/pillar.png
  3. BIN
      web/client/assets/images/monitor/right.png
  4. 2
      web/client/src/sections/bigScreen/components/basis.js
  5. 49
      web/client/src/sections/bigScreen/components/capacity.js
  6. 2
      web/client/src/sections/bigScreen/components/electrical.js
  7. 10
      web/client/src/sections/bigScreen/components/header.js
  8. 2
      web/client/src/sections/bigScreen/components/realTime.js
  9. 4
      web/client/src/sections/bigScreen/containers/systemManagement.js

BIN
web/client/assets/images/monitor/left.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
web/client/assets/images/monitor/pillar.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 KiB

BIN
web/client/assets/images/monitor/right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

2
web/client/src/sections/bigScreen/components/basis.js

@ -9,7 +9,7 @@ const Basis = ({ user, module, setModule }) => {
return <div style={{ width: '100%', heigh: '100%' }}>
return <div style={{ width: '100%', height: '100%' }}>
基础信息
</div >

49
web/client/src/sections/bigScreen/components/capacity.js

@ -4,14 +4,45 @@ import { Spin, Card, Modal, TreeSelect, message } from 'antd';
import ProForm, { ProFormText, ModalForm, ProFormSwitch, ProFormTreeSelect } from '@ant-design/pro-form';
import Title from 'antd/lib/skeleton/Title';
const Capacity = ({ user, }) => {
return <div style={{ width: '100%', heigh: '100%' }}>
能耗监测
const Capacity = ({ user, }) => {
return <div style={{ width: '100%', height: 'calc(100% - 160px)' }}>
<div style={{ width: '100%', height: 'calc(60%)', display: 'flex', }}>
<div style={{
width: '30%', height: '100%', borderRight: '1px solid white', display: 'flex', justifyContent: 'center',
}}>
<div style={{ width: '80%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<img style={{ width: 36, height: 36 }} src="/assets/images/monitor/left.png" />
<div style={{ display: 'flex', }}>
<div>
</div>
</div>
<img style={{ width: 36, height: 36 }} src="/assets/images/monitor/right.png" />
</div>
</div>
<div style={{
width: '40%', height: '100%', borderRight: '1px solid white',
backgroundImage: 'url(/assets/images/monitor/pillar.png)',
backgroundSize: '80% 80%',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
}}>
</div>
<div style={{ width: '30%', height: '100%', }}></div>
</div>
<div style={{ width: '100%', height: 'calc(40% - 1px)', borderTop: '1px solid white', display: 'flex', }}>
<div style={{ width: '33%', height: '100%', borderRight: '1px solid white' }}></div>
<div style={{ width: '33%', height: '100%', borderRight: '1px solid white' }}></div>
<div style={{ width: '33%', height: '100%', }}></div>
</div>
</div >
}
@ -23,4 +54,4 @@ function mapStateToProps (state) {
};
}
export default connect(mapStateToProps)(Capacity);
export default connect(mapStateToProps)(Capacity);

2
web/client/src/sections/bigScreen/components/electrical.js

@ -10,7 +10,7 @@ const Electrical = ({ user, module, setModule }) => {
return <div style={{ width: '100%', heigh: '100%' }}>
return <div style={{ width: '100%', height: '100%' }}>
电排远控
</div >

10
web/client/src/sections/bigScreen/components/header.js

@ -9,7 +9,7 @@ const Header = ({ dispatch, actions, user, module, setModule, history }) => {
return <div style={{ width: '100%', heigh: '100%' }}>
return <div style={{ width: '100%', height: 160 }}>
<div style={{
width: '100%', height: 130,
display: 'flex',
@ -25,7 +25,7 @@ const Header = ({ dispatch, actions, user, module, setModule, history }) => {
<div style={{
width: 130, height: 52,
backgroundImage: 'url(/assets/images/monitor/user.png)',
backgroundSize: 'cover',
backgroundSize: '100% 100%',
backgroundPosition: 'center',
textIndent: 45, lineHeight: '52px'
}}>
@ -40,9 +40,9 @@ const Header = ({ dispatch, actions, user, module, setModule, history }) => {
</div>
<div style={{ display: 'flex', justifyContent: 'center' }}>
<div style={{
width: '45%', height: 44, textAlign: 'center',
width: '45%', height: 30, textAlign: 'center',
backgroundImage: 'url(/assets/images/monitor/strip.png)',
backgroundSize: '100% 25%',
backgroundSize: '100% 50%',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
display: 'flex',
@ -55,7 +55,7 @@ const Header = ({ dispatch, actions, user, module, setModule, history }) => {
return <div key={v.key} style={{
width: 100, height: 30, lineHeight: '30px',
backgroundImage: `url(/assets/images/monitor/${module == v.key ? 'pitch-on' : 'choseNone'}.png)`,
backgroundSize: 'cover',
backgroundSize: '100% 100%',
backgroundPosition: '100% 100%',
backgroundRepeat: 'no-repeat',
color: 'white',

2
web/client/src/sections/bigScreen/components/realTime.js

@ -10,7 +10,7 @@ const RealTime = ({ user, module, setModule }) => {
return <div style={{ width: '100%', heigh: '100%' }}>
return <div style={{ width: '100%', height: '100%' }}>
实时监测
</div >
}

4
web/client/src/sections/bigScreen/containers/systemManagement.js

@ -27,13 +27,13 @@ const SystemManagement = ({ clientHeight, user, history }) => {
<div style={{
width: '100vw', height: '100vh',
backgroundImage: 'url(/assets/images/monitor/screen-bg.png)',
backgroundSize: 'cover',
backgroundSize: '100% 100%',
backgroundPosition: 'center'
}}>
<div style={{
width: '100%', height: '100%',
backgroundImage: 'url(/assets/images/monitor/header-bg.png)',
backgroundSize: 'cover',
backgroundSize: '100% 100%',
backgroundPosition: 'center'
}}>
<Header module={module} setModule={setModule} history={history} />

Loading…
Cancel
Save