update
This commit is contained in:
parent
c838b4ebb1
commit
ab3575b596
@ -1,28 +1,44 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 窑炉进口水温 -->
|
<!-- 窑炉进口水温 -->
|
||||||
<Container usage="NumberAndChart">
|
<Container usage="NumberAndChart">
|
||||||
<SubContainer title="窑炉进口水温" icon="inWater" padding="34px">
|
<SubContainer title="窑炉进口水温" icon="inWater" padding="34px">
|
||||||
<div class="pic" style=""></div>
|
<div class="pic" style=""></div>
|
||||||
<div class="content flex flex-col">
|
<div class="content flex flex-col">
|
||||||
<div class="realtime">
|
<div class="realtime">
|
||||||
<div class="time flex flex-center">
|
<div class="time flex flex-center">
|
||||||
<DigitalBox
|
<template v-for="(item, index) in waterInTemp.split('')">
|
||||||
class="time--item"
|
<DigitalBox
|
||||||
v-for="(item, index) in waterInTemp.split('')"
|
v-if="item !== '.'"
|
||||||
:key="index"
|
class="time--item"
|
||||||
:value="item"
|
:key="index"
|
||||||
/>
|
:value="item"
|
||||||
<span class="unit">℃</span>
|
:wider="true"
|
||||||
</div>
|
/>
|
||||||
<div class="text">进口实时水温</div>
|
<span
|
||||||
</div>
|
:key="index"
|
||||||
<div class="wave"></div>
|
v-else
|
||||||
<div class="graph flex-1">
|
style="
|
||||||
<HistoryTrend key="water-in" :series="kilnWaterIn" />
|
background: #fff;
|
||||||
</div>
|
width: 10px;
|
||||||
</div>
|
height: 10px;
|
||||||
</SubContainer>
|
align-self: flex-end;
|
||||||
</Container>
|
margin-bottom: 9px;
|
||||||
|
margin-right: 8px;
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
<!-- <span :key="index" v-else style="background: red; margin-right: 8px; line-height: 1; font-size: 88px; font-family: 'zcoolqingkehuangyouti-Regular'"></span> -->
|
||||||
|
</template>
|
||||||
|
<span class="unit">℃</span>
|
||||||
|
</div>
|
||||||
|
<div class="text">进口实时水温</div>
|
||||||
|
</div>
|
||||||
|
<div class="wave"></div>
|
||||||
|
<div class="graph flex-1">
|
||||||
|
<HistoryTrend key="water-in" :series="kilnWaterIn" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</SubContainer>
|
||||||
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -34,17 +50,17 @@ import HistoryTrend from "./HistoryTemp.vue";
|
|||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "InWater",
|
name: "InWater",
|
||||||
props: {},
|
props: {},
|
||||||
components: { Container, SubContainer, LineChart, DigitalBox, HistoryTrend },
|
components: { Container, SubContainer, LineChart, DigitalBox, HistoryTrend },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chartConfig: {},
|
chartConfig: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["kilnWaterIn", "waterInTemp"]),
|
...mapState(["kilnWaterIn", "waterInTemp"]),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -52,85 +68,85 @@ export default {
|
|||||||
@import "../../assets/styles/functions";
|
@import "../../assets/styles/functions";
|
||||||
|
|
||||||
.pic {
|
.pic {
|
||||||
background: url(../../assets/in-water.png) no-repeat;
|
background: url(../../assets/in-water.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: adjust(24px);
|
top: adjust(24px);
|
||||||
right: 0;
|
right: 0;
|
||||||
width: adjust(w(440px));
|
width: adjust(w(440px));
|
||||||
height: adjust(h(380px));
|
height: adjust(h(380px));
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wave {
|
.wave {
|
||||||
transform: translateX(adjust(-16px));
|
transform: translateX(adjust(-16px));
|
||||||
width: adjust(w(793px));
|
width: adjust(w(793px));
|
||||||
height: adjust(h(76px));
|
height: adjust(h(76px));
|
||||||
background: url(../../assets/inwater.png) no-repeat;
|
background: url(../../assets/inwater.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.graph {
|
.graph {
|
||||||
// background: #ccc3;
|
// background: #ccc3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-1 {
|
.flex-1 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
// background: #eee;
|
// background: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
// background: #eee;
|
// background: #eee;
|
||||||
margin: adjust(12px) 0;
|
margin: adjust(12px) 0;
|
||||||
padding-left: adjust(14px);
|
padding-left: adjust(14px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.time--item:not(:last-child) {
|
.time--item:not(:last-child) {
|
||||||
margin-right: adjust(5px);
|
margin-right: adjust(5px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.unit {
|
.unit {
|
||||||
font-family: Ubuntu, monospace, sans-serif !important;
|
font-family: Ubuntu, monospace, sans-serif !important;
|
||||||
font-size: adjust(20px);
|
font-size: adjust(20px);
|
||||||
letter-spacing: adjust(1px);
|
letter-spacing: adjust(1px);
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: adjust(24px);
|
margin-left: adjust(24px);
|
||||||
margin-bottom: adjust(10px);
|
margin-bottom: adjust(10px);
|
||||||
padding: adjust(12px) 0;
|
padding: adjust(12px) 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: adjust(22px);
|
font-size: adjust(22px);
|
||||||
letter-spacing: adjust(1px);
|
letter-spacing: adjust(1px);
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text::after {
|
.text::after {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: adjust(10px);
|
bottom: adjust(10px);
|
||||||
height: adjust(4px);
|
height: adjust(4px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/* 渐变色 */
|
/* 渐变色 */
|
||||||
background: radial-gradient(
|
background: radial-gradient(
|
||||||
ellipse at center,
|
ellipse at center,
|
||||||
#6fe2ff,
|
#6fe2ff,
|
||||||
#6fe2ffc0,
|
#6fe2ffc0,
|
||||||
#52cbef80,
|
#52cbef80,
|
||||||
#52cbef30,
|
#52cbef30,
|
||||||
#52cbef00,
|
#52cbef00,
|
||||||
transparent
|
transparent
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -4,13 +4,17 @@
|
|||||||
<SubContainer title="窑炉压力" icon="docs" padding="34px">
|
<SubContainer title="窑炉压力" icon="docs" padding="34px">
|
||||||
<div class="pressure flex flex-col flex-start">
|
<div class="pressure flex flex-col flex-start">
|
||||||
<div class="time flex flex-center">
|
<div class="time flex flex-center">
|
||||||
<DigitalBox
|
<template v-for="(item, index) in kilnPressure.split('')">
|
||||||
class="time--item"
|
<DigitalBox
|
||||||
v-for="(item, index) in kilnPressure.split('')"
|
v-if="item !== '.'"
|
||||||
:key="index"
|
class="time--item"
|
||||||
:value="item"
|
:key="index"
|
||||||
:wider="true"
|
:value="item"
|
||||||
/>
|
:wider="true"
|
||||||
|
/>
|
||||||
|
<span :key="index" v-else style="background: #fff; width: 10px; height: 10px; align-self: flex-end; margin-bottom: 9px; margin-right: 8px;"></span>
|
||||||
|
<!-- <span :key="index" v-else style="background: red; margin-right: 8px; line-height: 1; font-size: 88px; font-family: 'zcoolqingkehuangyouti-Regular'"></span> -->
|
||||||
|
</template>
|
||||||
<span class="unit">Pa</span>
|
<span class="unit">Pa</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">窑炉压力值</div>
|
<div class="text">窑炉压力值</div>
|
||||||
|
@ -6,12 +6,28 @@
|
|||||||
<div class="content flex flex-col">
|
<div class="content flex flex-col">
|
||||||
<div class="realtime">
|
<div class="realtime">
|
||||||
<div class="time flex flex-center">
|
<div class="time flex flex-center">
|
||||||
<DigitalBox
|
<template v-for="(item, index) in waterOutTemp.split('')">
|
||||||
class="time--item"
|
<DigitalBox
|
||||||
v-for="(item, index) in waterOutTemp.split('')"
|
v-if="item !== '.'"
|
||||||
:key="index"
|
class="time--item"
|
||||||
:value="item"
|
:key="index"
|
||||||
/>
|
:value="item"
|
||||||
|
:wider="true"
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
:key="index"
|
||||||
|
v-else
|
||||||
|
style="
|
||||||
|
background: #fff;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
align-self: flex-end;
|
||||||
|
margin-bottom: 9px;
|
||||||
|
margin-right: 8px;
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
<!-- <span :key="index" v-else style="background: red; margin-right: 8px; line-height: 1; font-size: 88px; font-family: 'zcoolqingkehuangyouti-Regular'"></span> -->
|
||||||
|
</template>
|
||||||
<span class="unit">℃</span>
|
<span class="unit">℃</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">出口实时水温</div>
|
<div class="text">出口实时水温</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user