update baselayout
This commit is contained in:
parent
86a606b177
commit
a3bb68c81e
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 83 KiB |
@ -59,38 +59,38 @@ export default {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: adjust(w(820px));
|
width: 744px;
|
||||||
height: adjust(h(350px));
|
height: 366px;
|
||||||
display: flex;
|
display: flex;
|
||||||
background: url(../../assets/top-middle.png) no-repeat;
|
background: url(../../assets/top-middle.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
margin-top: adjust(h(56px));
|
margin-top: 48px;
|
||||||
margin-left: adjust(w(24px));
|
margin-left: 48px;
|
||||||
width: adjust(h(172px));
|
width: 172px;
|
||||||
height: adjust(h(172px));
|
height: 172px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
margin-top: adjust(h(56px));
|
margin-top: 56px;
|
||||||
flex: 1 auto;
|
flex: 1 auto;
|
||||||
font-family: "微软雅黑", sans-serif;
|
font-family: "微软雅黑", sans-serif;
|
||||||
padding-left: adjust(5px);
|
padding-left: 12px;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: adjust(12px);
|
font-size: 54px;
|
||||||
|
line-height: 48px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
letter-spacing: adjust(1px);
|
letter-spacing: 2px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: hsla(0, 0%, 0%, 0.9);
|
color: hsla(0, 0%, 0%, 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
color: #030609;
|
color: #030609;
|
||||||
font-size: adjust(18px);
|
font-size: 96px;
|
||||||
line-height: adjust(22px);
|
line-height: 98px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="environ-analysis">
|
<section class="environ-analysis"></section>
|
||||||
|
|
||||||
</section>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -24,24 +22,38 @@ export default {
|
|||||||
@import "../../assets/styles/functions";
|
@import "../../assets/styles/functions";
|
||||||
|
|
||||||
section {
|
section {
|
||||||
background: url('../../assets/fault-analysis.png') left 144px top 4px / 79% 54% no-repeat, #ccc7;
|
width: 1920px;
|
||||||
width: adjust(w(1900px));
|
height: 1080px;
|
||||||
height: adjust(h(1260px));
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: adjust(h(430px));
|
top: 490px;
|
||||||
// left: adjust(w(15300px));
|
right: 0;
|
||||||
left: adjust(w(15500px));
|
background: #ccc3;
|
||||||
}
|
}
|
||||||
|
|
||||||
section::before {
|
section::before {
|
||||||
content: '环境浓度';
|
content: "环境浓度";
|
||||||
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, "微软雅黑", Arial, Helvetica, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC,
|
||||||
font-size: adjust(h(64px));
|
Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei,
|
||||||
|
"微软雅黑", Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 80px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
top: 0;
|
top: -128px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
section::after {
|
||||||
|
content: "";
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: url("../../assets/fault-analysis.png") left 360px top 18px / 90%
|
||||||
|
no-repeat;
|
||||||
|
position: absolute;
|
||||||
|
color: $main-color;
|
||||||
|
top: -128px;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
:width="adjust('64px')"
|
|
||||||
:height="adjust('64px')"
|
|
||||||
viewBox="0 0 95 96"
|
viewBox="0 0 95 96"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
:width="adjust('46px')"
|
|
||||||
:height="adjust('46px')"
|
|
||||||
viewBox="0 0 96 96"
|
viewBox="0 0 96 96"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
:width="adjust('46px')"
|
|
||||||
:height="adjust('46px')"
|
|
||||||
viewBox="0 0 95 96"
|
viewBox="0 0 95 96"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
:width="adjust('46px')"
|
|
||||||
:height="adjust('46px')"
|
|
||||||
viewBox="0 0 122 122"
|
viewBox="0 0 122 122"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
:width="adjust('46px')"
|
|
||||||
:height="adjust('46px')"
|
|
||||||
viewBox="0 0 94 96"
|
viewBox="0 0 94 96"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -3,18 +3,28 @@
|
|||||||
<div class="data pressure">
|
<div class="data pressure">
|
||||||
<span>压</span>
|
<span>压</span>
|
||||||
<span>力</span>
|
<span>力</span>
|
||||||
<span v-for="press, index in pressure" :key="index"
|
<span
|
||||||
:class="{ 'digit': true, 'dot': press == '.' ? true : false }">{{ press
|
v-for="(press, index) in pressure"
|
||||||
}}</span>
|
:key="index"
|
||||||
|
:class="{ digit: true, dot: press == '.' ? true : false }"
|
||||||
|
>{{ press }}</span
|
||||||
|
>
|
||||||
<span>Pa</span>
|
<span>Pa</span>
|
||||||
</div>
|
</div>
|
||||||
<SmallBox2 class="data-center" v-for="rd in rdata" :key="rd.icon" :icon="rd.icon" :title="rd.title" :value="rd.value"></SmallBox2>
|
<SmallBox2
|
||||||
<div class="data runtime">
|
class="data-center"
|
||||||
|
v-for="rd in rdata"
|
||||||
|
:key="rd.icon"
|
||||||
|
:icon="rd.icon"
|
||||||
|
:title="rd.title"
|
||||||
|
:value="rd.value"
|
||||||
|
></SmallBox2>
|
||||||
|
<!-- <div class="data runtime">
|
||||||
<span>运</span>
|
<span>运</span>
|
||||||
<span>行</span>
|
<span>行</span>
|
||||||
<span v-for="val, index in runtime" :key="index" :class="{ 'digit': true, 'dot': press == '.' ? true : false }">{{ val }}</span>
|
<span v-for="val, index in runtime" :key="index" :class="{ 'digit': true, 'dot': press == '.' ? true : false }">{{ val }}</span>
|
||||||
<span>天</span>
|
<span>天</span>
|
||||||
</div>
|
</div> -->
|
||||||
</DragabbleContainer>
|
</DragabbleContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -23,15 +33,15 @@ import DragabbleContainer from "../layout/DragableContainer.vue";
|
|||||||
import SmallBox2 from "../common/SmallBox2.vue";
|
import SmallBox2 from "../common/SmallBox2.vue";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
|
|
||||||
let timeFun = null
|
let timeFun = null;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "IsolateArea--1",
|
name: "IsolateArea--1",
|
||||||
components: { DragabbleContainer, SmallBox2 },
|
components: { DragabbleContainer, SmallBox2 },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pressure: '10.1'.split(''),
|
pressure: "10.1".split(""),
|
||||||
runtime: '0012'.split(''),
|
runtime: "0012".split(""),
|
||||||
rdata: [
|
rdata: [
|
||||||
// { icon: "temp", title: "车间温度", value: "27℃" },
|
// { icon: "temp", title: "车间温度", value: "27℃" },
|
||||||
{ icon: "fire", title: "当前火向", value: "" },
|
{ icon: "fire", title: "当前火向", value: "" },
|
||||||
@ -42,26 +52,26 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
fireDirection: function (val) {
|
fireDirection: function (val) {
|
||||||
this.$set(this.rdata[0], 'value', val)
|
this.$set(this.rdata[0], "value", val);
|
||||||
},
|
},
|
||||||
fireChangeTime: function (val) {
|
fireChangeTime: function (val) {
|
||||||
this.$set(this.rdata[1], 'value', val)
|
this.$set(this.rdata[1], "value", val);
|
||||||
},
|
},
|
||||||
lastFireChangeTime: function (val) {
|
lastFireChangeTime: function (val) {
|
||||||
let [_, min, sec] = /(\d+)分(\d+)秒/.exec(val || '0分0秒')
|
let [_, min, sec] = /(\d+)分(\d+)秒/.exec(val || "0分0秒");
|
||||||
if (timeFun) clearInterval(timeFun)
|
if (timeFun) clearInterval(timeFun);
|
||||||
timeFun = setInterval(() => {
|
timeFun = setInterval(() => {
|
||||||
if (sec > 0) sec -= 1
|
if (sec > 0) sec -= 1;
|
||||||
else {
|
else {
|
||||||
if (min > 0) {
|
if (min > 0) {
|
||||||
sec = 59
|
sec = 59;
|
||||||
min -= 1
|
min -= 1;
|
||||||
} else {
|
} else {
|
||||||
if (timeFun) clearInterval(timeFun)
|
if (timeFun) clearInterval(timeFun);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$set(this.rdata[2], 'value', `${min}分${sec}秒`)
|
this.$set(this.rdata[2], "value", `${min}分${sec}秒`);
|
||||||
}, 1000)
|
}, 1000);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -77,11 +87,11 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
align-items: center;
|
align-items: flex-end;
|
||||||
|
|
||||||
> *:not(:last-child) {
|
> *:not(:last-child) {
|
||||||
margin: {
|
margin: {
|
||||||
right: adjust(10px);
|
right: 128px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,23 +104,24 @@ export default {
|
|||||||
|
|
||||||
> .data > span:not(.dot) {
|
> .data > span:not(.dot) {
|
||||||
/** 边框 */
|
/** 边框 */
|
||||||
background: url('../../assets/digitbox1.png') no-repeat;
|
background: url("../../assets/digitbox1.png") no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: adjust(w(220px));
|
width: 228px;
|
||||||
height: adjust(h(260px));
|
height: 299px;
|
||||||
color: #0068ffaa;
|
color: #0068ffaa;
|
||||||
font-size: h(200px);
|
font-size: 142px;
|
||||||
line-height: h(600px);
|
line-height: 328px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .data > span.digit {
|
> .data > span.digit {
|
||||||
/** 数字字体大小 */
|
/** 数字字体大小 */
|
||||||
color: #0071ff;
|
color: #0071ff;
|
||||||
font-size: h(360px);
|
font-size: 242px;
|
||||||
line-height: h(540px);
|
line-height: 286px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
66
src/components/isolate-area-1/Runtime.vue
Normal file
66
src/components/isolate-area-1/Runtime.vue
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<template>
|
||||||
|
<div class="data runtime">
|
||||||
|
<span>运</span>
|
||||||
|
<span>行</span>
|
||||||
|
<span
|
||||||
|
v-for="(val, index) in runtime"
|
||||||
|
:key="index"
|
||||||
|
:class="{ digit: true, dot: press == '.' ? true : false }"
|
||||||
|
>{{ val }}</span
|
||||||
|
>
|
||||||
|
<span>天</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "RuntimeComp",
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
runtime: "0012".split(""),
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
methods: {},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "../../assets/styles/functions";
|
||||||
|
|
||||||
|
.runtime {
|
||||||
|
width: 1920px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data {
|
||||||
|
padding: 0 32px;
|
||||||
|
font-family: zcoolqingkehuangyouti-Regular, sans-serif;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data > span:not(.dot) {
|
||||||
|
/** 边框 */
|
||||||
|
background: url("../../assets/digitbox1.png") no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
display: inline-block;
|
||||||
|
width: 280px;
|
||||||
|
height: 360px;
|
||||||
|
color: #0068ffaa;
|
||||||
|
font-size: 160px;
|
||||||
|
line-height: 380px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: bottom;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data > span.digit {
|
||||||
|
/** 数字字体大小 */
|
||||||
|
color: #0071ff;
|
||||||
|
font-size: 280px;
|
||||||
|
line-height: 350px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<div class="video-crash" v-if="false"></div>
|
<div class="video-crash" v-if="false"></div>
|
||||||
|
|
||||||
<div class="eq-main absolute">
|
<!-- <div class="eq-main absolute">
|
||||||
<div class="arrow ar-top-left" :class="topLeftArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
<div class="arrow ar-top-left" :class="topLeftArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
||||||
<div class="arrow ar-top-right" :class="topRightArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
<div class="arrow ar-top-right" :class="topRightArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
||||||
<div class="arrow ar-bottom-left" :class="bottomLeftArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
<div class="arrow ar-bottom-left" :class="bottomLeftArrowRolling === '运行' ? 'ar-running' : ''"></div>
|
||||||
@ -54,9 +54,10 @@
|
|||||||
<video id="2" class="video-top" preload="auto" height="130" muted autoplay loop disablepictureinpicture
|
<video id="2" class="video-top" preload="auto" height="130" muted autoplay loop disablepictureinpicture
|
||||||
src="../../assets/videos/fire-to-bottom.mp4"></video>
|
src="../../assets/videos/fire-to-bottom.mp4"></video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<AreaOne class="area-one" />
|
<AreaOne class="area-one" />
|
||||||
|
<Runtime class="runtime" />
|
||||||
<InWater />
|
<InWater />
|
||||||
<OutWater />
|
<OutWater />
|
||||||
|
|
||||||
@ -67,6 +68,7 @@
|
|||||||
import InWater from "../boxes/InWater.vue";
|
import InWater from "../boxes/InWater.vue";
|
||||||
import OutWater from "../boxes/OutWater.vue";
|
import OutWater from "../boxes/OutWater.vue";
|
||||||
import AreaOne from "../isolate-area-1/Area.vue";
|
import AreaOne from "../isolate-area-1/Area.vue";
|
||||||
|
import Runtime from "../isolate-area-1/Runtime.vue";
|
||||||
import MonitorGroup2 from '../groups/monitor2.vue'
|
import MonitorGroup2 from '../groups/monitor2.vue'
|
||||||
import DataGroup from '../groups/data.vue'
|
import DataGroup from '../groups/data.vue'
|
||||||
import FaultAnalysis from '../groups/fault.vue'
|
import FaultAnalysis from '../groups/fault.vue'
|
||||||
@ -78,6 +80,7 @@ import WsClient from "../../utils/wsClass";
|
|||||||
export default {
|
export default {
|
||||||
name: "Main",
|
name: "Main",
|
||||||
components: {
|
components: {
|
||||||
|
Runtime,
|
||||||
DataGroup,
|
DataGroup,
|
||||||
MonitorGroup2,
|
MonitorGroup2,
|
||||||
Environ,
|
Environ,
|
||||||
@ -125,8 +128,14 @@ main {
|
|||||||
|
|
||||||
.area-one {
|
.area-one {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: adjust(150px);
|
top: 124px;
|
||||||
left: adjust(1310px);
|
left: 3910px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.runtime {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-crash {
|
.video-crash {
|
||||||
|
Loading…
Reference in New Issue
Block a user