Compare commits

...

39 Commits

Author SHA1 Message Date
88d8c80250 update fan 2023-07-22 17:55:21 +08:00
lb
091b58f4cf update header 2023-07-19 11:03:04 +08:00
lb
0c31996011 update bg-color 2023-07-17 09:41:20 +08:00
lb
776ba572da update 2023-07-12 17:12:12 +08:00
lb
3409e7dd8a update 2023-07-12 16:51:58 +08:00
lb
908b3beda0 update 2023-07-12 16:35:22 +08:00
lb
78a9cd4db6 update 2023-07-12 16:10:29 +08:00
lb
e8c76421a2 update scale 2023-07-12 16:02:03 +08:00
lb
66e92a693c update 基本完成 2023-07-12 15:09:37 +08:00
lb
f729af36c6 update 基本完成 2023-07-12 14:18:23 +08:00
lb
a3bb68c81e update baselayout 2023-07-12 13:44:18 +08:00
lb
86a606b177 update 进出口实时水温 2023-07-12 11:11:23 +08:00
lb
1c3be47344 update 进出口实时 2023-07-12 10:30:53 +08:00
lb
8a746794b1 update 缺陷分析 2023-07-12 09:34:13 +08:00
lb
a008e75126 update 底部 2023-07-11 17:14:00 +08:00
lb
a11c01dc63 update 完成header的重构 2023-07-11 11:20:17 +08:00
lb
3c51d2207b update monitor1 2023-07-11 08:59:40 +08:00
lb
c0dc47895e update header 2023-07-10 16:54:49 +08:00
lb
01aa8be033 update fanruntime 2023-07-07 16:56:11 +08:00
lb
18c08ca42d update 2023-07-07 16:14:41 +08:00
lb
de41e7e547 update linechart oilflow 2023-07-07 11:30:10 +08:00
lb
133d2d6e23 update oil flow 2023-07-07 11:00:24 +08:00
lb
eb4a81b7b9 update 2023-06-09 14:24:50 +08:00
lb
d66f0b1e05 update 2023-06-09 09:35:48 +08:00
lb
5f2ad448aa update 2023-06-08 16:54:34 +08:00
lb
bd0f7986a9 almost done 2023-06-08 15:13:22 +08:00
lb
270fd2d071 update bottom 2023-06-08 14:00:32 +08:00
lb
b4a63e1c72 update dots 2023-06-08 11:04:06 +08:00
lb
dd1383950c update inwater outwater 2023-06-08 10:56:36 +08:00
lb
1778ac8848 update inwater 2023-06-07 17:03:15 +08:00
lb
7cdf283aca update eq 2023-06-07 16:18:06 +08:00
lb
90a70d7d1a update data monitor2 2023-06-07 15:40:59 +08:00
lb
4f8e0396ad update monitor group2 group3 2023-06-07 15:14:46 +08:00
lb
6a53a6630c update environ 2023-06-07 15:01:20 +08:00
lb
868e14a41b update fault 2023-06-07 14:48:05 +08:00
lb
eeba8714f7 update Jiankongzu 1 2023-06-07 14:26:16 +08:00
lb
f694c8ebf4 update Header 2023-06-07 13:56:42 +08:00
lb
7c4903f463 update area 2023-06-06 16:58:44 +08:00
lb
95809c226d update header & area-one 2023-06-06 16:41:21 +08:00
74 changed files with 5750 additions and 5174 deletions

View File

@ -1,15 +1,9 @@
<template>
<div id="app">
<!-- <nav>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</nav> -->
<router-view />
</div>
</template>
<script></script>
<style lang="scss">
</style>
<style lang="scss"></style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 46 KiB

BIN
src/assets/digitbox1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/assets/header-wings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 966 KiB

BIN
src/assets/i-water.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
src/assets/menu-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

BIN
src/assets/middle-under.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
src/assets/middle1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

BIN
src/assets/o-water.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 21 KiB

BIN
src/assets/right-wing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,14 +1,17 @@
// variables
// $design_width: 4480px;
$design_width: 8960px;
$design_height: 2160px;
// $design_width: 4480px
$design_width: 21120px;
$design_height: 4320px;
$actual_width: 3840px;
$actual_height: 1080px;
// /4 /5.5
// 字体按照纵向调整
$height: 1080px;
$default_ratio: 0.875;
// colors
$main-color: #6bf2ff;
$main-color: #3565FF;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

BIN
src/assets/top-middle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 917 B

View File

@ -1,7 +1,7 @@
<template>
<!-- 窑底温度 -->
<Container usage="Charts">
<SubContainer title="窑底温度" icon="kbtm" padding="34px">
<SubContainer title="窑底温度" icon="kbtm" padding="24px 32px">
<div class="tables flex" style="height: 100%">
<LineChart
key="1"
@ -55,12 +55,12 @@ export default {
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
margin: 0 6px;
width: 6px;
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
#3565ff,
#3565ff51,
transparent,
transparent
);

View File

@ -1,47 +1,52 @@
<template>
<!-- 风机运行情况 -->
<Container usage="Table">
<SubContainer title="风机运行情况" icon="fan" padding="34px">
<div class="tables flex" style="height: 100%">
<SubContainer title="风机运行情况" icon="fan" padding="24px 32px">
<div class="tables flex relative" style="height: 100%">
<div class="table-wrapper flex-1 align-start">
<div
v-if="tableData1 && tableData1.length === 0"
style="
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #eee1;
font-size: 18px;
letter-spacing: 2px;
color: #3c4e8b;
display: grid;
place-items: center;
font-size: 24px;
color: #eee9;
user-select: none;
"
>无数据</div>
>
无数据
</div>
<table class="table-1">
<thead>
<!-- <tr style="font-size: 8px; background: #044a84; opacity: 19%"> -->
<tr class="t-row">
<th>序号</th>
<th>设备名称</th>
<th>运行频率</th>
<th>设备状态</th>
<th style="width: 160px">序号</th>
<!-- <th style="width: 180px">设备名称</th>
<th style="width: 180px">运行频率</th>
<th style="width: 180px">设备状态</th> -->
<th style="width: 240px">设备名称</th>
<th style="width: 200px">运行频率</th>
<th style="width: 200px">设备状态</th>
</tr>
</thead>
<!-- <tbody> -->
<!-- <tr
v-for="(row, index) in tableData1"
:key="index"
style="font-size: 7px; background: #0b5499; opacity: 35%"
> -->
<transition-group name="fan-list" tag="tbody" mode="out-in">
<tr
class="t-row"
v-for="row in tableData1"
:key="row && 'length' in row ? row[0] : Math.random()"
>
<td v-for="(d, idx) in row" :key="idx">
<td
v-for="(d, idx) in row"
:key="idx"
:data-title="idx == 1 ? d : null"
>
<!-- :data-cx="cursorX"
:data-cy="cursorY"
@mouseover="handleMouseOver" -->
<template v-if="idx === 2">
<FrequentComp :value="d" />
</template>
@ -49,7 +54,11 @@
<StatusComp :value="d" />
</template>
<template v-else>
{{ d }}
<!-- <el-tooltip effect="light" :content="d" placement="top"> -->
<span :class="idx == 1 ? 'eqName' : 'sequence'">{{
d
}}</span>
<!-- </el-tooltip> -->
</template>
</td>
</tr>
@ -110,7 +119,7 @@ export default {
],
tableData1: [
// [1, "1", "2332Hz", "" /**or 0,1*/],
// [2, "2", "", "" /**or 0,1*/],
// [2, "2#", "", "" /**or 0,1*/],
// [3, "3", "333Hz", "" /**or 0,1*/],
// [4, "4", "100Hz", "" /**or 0,1*/],
// [5, "5", "", "" /**or 0,1*/],
@ -120,6 +129,8 @@ export default {
// [9, "9", "", "" /**or 0,1*/],
// [10, "10", "86423Hz", "" /**or 0,1*/],
],
cursorX: 0,
cursorY: 0
};
},
computed: {
@ -150,7 +161,17 @@ export default {
if (inData) this.tableData1.splice(this.tableData1.length, 0, inData);
}, 200);
if (outData) this.tableCache.push(outData);
}, 3000);
}, 1000 * 3);
},
methods: {
// handleMouseOver(e) {
// if (e.target.dataset.title) {
// //
// console.log("handleMouseOver", e.clientX, e.pageX, e.layorX, e.offsetX); // e.target.dataset.title);
// this.cursorX = e.offsetX + 10
// this.cursorY = e.offsetY + 10
// }
// },
},
};
</script>
@ -188,35 +209,25 @@ export default {
flex: 1;
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
transparent,
transparent
);
}
.table-wrapper {
// padding-right: 6px;
height: 400px;
// overflow-y: auto;
height: 420px;
overflow: hidden;
// background: #f001;
}
table {
table-layout: fixed;
width: 100%;
border-spacing: adjust(1px);
border-spacing: 2px;
}
// tr, td, th {
// max-height: 13.88px !important;
// }
.t-row {
height: adjust(14px);
height: 50px;
}
.tables {
overflow: hidden;
padding: 12px 32px 32px;
}
.tables > table {
@ -232,27 +243,67 @@ thead > tr th:first-child {
}
thead > tr th {
font-size: adjust(10px);
line-height: 1.5;
padding: adjust(3px) adjust(8px);
font-weight: 400;
background: #044a8446;
font-size: 36px;
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;
line-height: 1;
letter-spacing: 1px;
padding: 8px 48px;
font-weight: 600;
background: #4288df23;
color: #030609d6;
text-align: left;
user-select: none;
}
tbody > tr:nth-child(odd) {
background: #0b549960;
tbody > tr:nth-child(even) {
background: #4288df13;
}
// tbody > tr td:not(:nth-child(2)) {
tbody > tr td {
font-size: adjust(10px);
line-height: 1.25;
padding: adjust(2px) adjust(8px);
font-weight: 400;
user-select: none;
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;
color: #030609d6;
font-size: 32px;
line-height: 1;
background: inherit;
padding: 0 48px;
}
tbody > tr td:first-child {
text-align: center;
tbody > tr td > span.eqName {
display: inline-block;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
[data-title] {
position: relative;
}
[data-title]::after {
content: attr(data-title);
position: absolute;
padding: 12px 24px;
background: #000;
color: #fff;
border-radius: 12px;
left: 70%;
top: 100%;
white-space: nowrap;
opacity: 0;
transition: all 0.3s ease-out;
z-index: 9999;
visibility: hidden;
}
[data-title]:hover::after {
visibility: visible;
opacity: 1;
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<!-- 天然气流量 -->
<Container usage="Charts">
<SubContainer title="天然气流量" icon="gas" padding="34px">
<SubContainer title="天然气流量" icon="gas" padding="24px 32px">
<div class="tables flex" style="height: 100%">
<LineChart
key="1"
@ -55,12 +55,12 @@ export default {
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
margin: 0 6px;
width: 6px;
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
#3565ff,
#3565ff51,
transparent,
transparent
);

View File

@ -1,5 +1,8 @@
<template>
<div class="history-temp flex flex-col" style="height: 100%; position: relative;">
<div
class="history-temp flex flex-col"
style="height: 100%; position: relative"
>
<h3>{{ title }}</h3>
<BarChart class="flex-1" :series="series" />
<div
@ -7,14 +10,15 @@
style="
position: absolute;
top: 8px;
left: -30px;
left: -20px;
width: 110%;
height: 105%;
background: #eee1;
display: grid;
place-items: center;
font-size: 24px;
color: #eee9;
font-size: 32px;
letter-spacing: 6px;
color: #777;
"
>
无数据
@ -24,7 +28,6 @@
<script>
import BarChart from "../charts/BarChart.vue";
import { mapState } from "vuex";
export default {
name: "HistoryTemp",
@ -42,11 +45,6 @@ export default {
data() {
return {};
},
computed: {
...mapState(["kilnWaterIn", "kilnWaterOut"]),
},
mounted() {},
methods: {},
};
</script>
@ -58,13 +56,18 @@ export default {
// background: #eee;
}
.history-temp {
// background: #f003;
}
h3 {
margin: 0;
font-family: sans-serif;
font-weight: 400;
font-size: adjust(14px);
letter-spacing: adjust(1px);
color: #52fff8;
margin: adjust(12px) 0;
font-size: 30px;
line-height: 34px;
letter-spacing: 2px;
color: #0c71ff;
margin: 0;
}
</style>

View File

@ -1,38 +1,15 @@
<template>
<!-- 窑炉进口水温 -->
<Container usage="NumberAndChart">
<SubContainer title="窑炉进口水温" icon="inWater" padding="34px">
<div class="pic" style=""></div>
<div class="content flex flex-col">
<Container class="in-water" usage="NumberAndChart">
<SubContainer title="进口实时水温" icon="inWater">
<!-- <div class="pic" style=""></div> -->
<div class="content flex">
<div class="realtime">
<div class="time flex flex-center">
<template v-for="(item, index) in waterInTemp.split('')">
<DigitalBox
v-if="item !== '.'"
class="time--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="temp-data">{{ waterInTemp }}</span>
<span class="unit"></span>
</div>
<div class="text">进口实时水温</div>
</div>
<div class="wave"></div>
<div class="graph flex-1">
<HistoryTrend
key="water-in"
@ -71,31 +48,30 @@ export default {
<style scoped lang="scss">
@import "../../assets/styles/functions";
.pic {
background: url(../../assets/in-water.png) no-repeat;
background-size: 100% 100%;
background-position: center;
.in-water {
position: absolute;
top: adjust(24px);
right: 0;
width: adjust(w(440px));
height: adjust(h(380px));
top: -200px;
left: 27px;
height: 509px;
width: 1323px;
background: url(../../assets/in-water.png) top 0 left 0 / cover no-repeat;
}
.content {
height: 100%;
}
.wave {
transform: translateX(adjust(-16px));
width: adjust(w(793px));
height: adjust(h(76px));
background: url(../../assets/inwater.png) no-repeat;
background-size: 100% 100%;
.realtime {
width: 530px;
// height: 337px;
background: url(../../assets/inwater.png) top 90% left 0 / 100% 80% no-repeat,
url(../../assets/i-water.png) top 24px right 24px / 40% 70% no-repeat;
}
.graph {
// background: #ccc3;
// background: #0cc3;
height: 436px;
transform: translate(0, -64px);
}
.flex-1 {
@ -104,53 +80,28 @@ export default {
}
.time {
transform: translate(56px, 80px);
// background: #eee;
margin: adjust(12px) 0;
padding-left: adjust(14px);
}
.time--item:not(:last-child) {
margin-right: adjust(5px);
}
.temp-data {
color: #0068ff;
font-size: 80px;
letter-spacing: 2px;
}
.unit {
font-family: Ubuntu, monospace, sans-serif !important;
font-size: adjust(20px);
letter-spacing: adjust(1px);
font-family: sans-serif !important;
font-size: 48px;
font-weight: 400;
letter-spacing: 1px;
align-self: flex-end;
}
.text {
display: inline-block;
margin-left: adjust(24px);
margin-bottom: adjust(10px);
padding: adjust(12px) 0;
text-align: center;
font-size: adjust(22px);
letter-spacing: adjust(1px);
position: relative;
z-index: 10;
user-select: none;
}
.text::after {
content: "";
display: block;
position: absolute;
z-index: 0;
left: 0;
bottom: adjust(10px);
height: adjust(4px);
width: 100%;
/* 渐变色 */
background: radial-gradient(
ellipse at center,
#6fe2ff,
#6fe2ffc0,
#52cbef80,
#52cbef30,
#52cbef00,
transparent
);
margin-bottom: 4px;
margin-left: 4px;
color: #0068ff;
}
</style>

View File

@ -32,7 +32,7 @@ export default {
};
},
mounted() {
this.getRuntime()
this.getRuntime();
setInterval(this.getRuntime, 1000 * 60 * 60);
},
methods: {

View File

@ -1,7 +1,7 @@
<template>
<!-- 油流量 -->
<Container usage="Charts">
<SubContainer title="油流量" icon="oil" padding="34px">
<SubContainer title="油流量" icon="oil" padding="24px 32px">
<div class="tables flex" style="height: 100%">
<LineChart
key="1"
@ -30,6 +30,7 @@ import LineChart from "../charts/LineChart.vue";
import Container from "../layout/Container.vue";
import SubContainer from "../layout/SubContainer.vue";
import { mapState } from "vuex";
import { randomInt } from "@/utils";
export default {
name: "OilFlow",
@ -38,6 +39,49 @@ export default {
data() {
return {
chartConfig: {},
// oilTable1: {
// FT111: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// FT112: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// FT113: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// FT114: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// FT115: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// },
// oilTable2: {
// OT001: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT002: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT004: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT003: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT005: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT006: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT007: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// OT008: Array(24)
// .fill(1)
// .map((_) => randomInt()),
// },
};
},
computed: {
@ -55,12 +99,12 @@ export default {
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
margin: 0 6px;
width: 6px;
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
#3565ff,
#3565ff51,
transparent,
transparent
);

View File

@ -1,44 +1,21 @@
<template>
<!-- 窑炉出口水温 -->
<Container usage="NumberAndChart">
<SubContainer title="窑炉出口水温" icon="inWater" padding="34px">
<div class="pic" style=""></div>
<div class="content flex flex-col">
<Container class="out-water" usage="NumberAndChart">
<SubContainer title="出口实时水温" icon="inWater">
<div class="content flex">
<div class="realtime">
<div class="time flex flex-center">
<template v-for="(item, index) in waterOutTemp.split('')">
<DigitalBox
v-if="item !== '.'"
class="time--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="temp-data">{{ waterOutTemp }}</span>
<span class="unit"></span>
</div>
<div class="text">出口实时水温</div>
</div>
<div class="wave"></div>
<div class="graph flex-1">
<HistoryTrend
key="water-out"
title="窑炉出口水温历史"
:series="kilnWaterOut"
/>
<!-- :series="[11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 32, 99, 88, 31]" -->
</div>
</div>
</SubContainer>
@ -67,90 +44,61 @@ export default {
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
.pic {
background: url(../../assets/out-water.png) no-repeat;
background-size: 100% 100%;
background-position: center;
.out-water {
position: absolute;
top: adjust(24px);
right: 0;
width: adjust(w(440px));
height: adjust(h(380px));
top: -200px;
left: 1350px;
height: 509px;
width: 1323px;
background: url(../../assets/out-water.png) top 0 left 0 / cover no-repeat;
}
.content {
height: 100%;
}
.wave {
transform: translateX(adjust(-16px)) rotateY(0.5turn);
width: adjust(w(793px));
height: adjust(h(76px));
background: url(../../assets/inwater.png) no-repeat;
background-size: 100% 100%;
.realtime {
width: 530px;
// height: 337px;
background: url(../../assets/outwater.png) top 90% left 0 / 100% 80% no-repeat,
url(../../assets/o-water.png) top 24px right 24px / 40% 70% no-repeat;
}
.graph {
// background: #ccc3;
// background: #0cc3;
height: 436px;
transform: translate(0, -64px);
}
.flex-1 {
flex: 1;
// background: #eee;
}
.time {
// background: #eee;
margin: adjust(12px) 0;
padding-left: adjust(14px);
transform: translate(56px, 80px);
}
.time--item:not(:last-child) {
margin-right: adjust(5px);
}
.temp-data {
color: #0068ff;
font-size: 80px;
letter-spacing: 2px;
}
.unit {
font-family: Ubuntu, monospace, sans-serif !important;
font-size: adjust(20px);
letter-spacing: adjust(1px);
font-family: sans-serif !important;
font-size: 48px;
font-weight: 400;
letter-spacing: 1px;
align-self: flex-end;
}
.text {
display: inline-block;
margin-left: adjust(24px);
margin-bottom: adjust(10px);
padding: adjust(12px) 0;
text-align: center;
font-size: adjust(22px);
letter-spacing: adjust(1px);
position: relative;
z-index: 10;
user-select: none;
}
.text::after {
content: "";
display: block;
position: absolute;
z-index: 0;
left: 0;
bottom: adjust(10px);
height: adjust(4px);
width: 100%;
/* 渐变色 */
background: radial-gradient(
ellipse at center,
#6fe2ff,
#6fe2ffc0,
#52cbef80,
#52cbef30,
#52cbef00,
transparent
);
margin-bottom: 4px;
margin-left: 4px;
color: #0068ff;
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<!-- 窑顶温度 -->
<Container usage="Charts">
<SubContainer title="窑顶温度" icon="ktop" padding="34px">
<SubContainer title="窑顶温度" icon="ktop" padding="24px 32px">
<div class="tables flex" style="height: 100%">
<LineChart
key="1"
@ -43,8 +43,8 @@ export default {
computed: {
...mapState(["kilnTop1", "kilnTop2"]),
legend_1() {
return Object.keys(this.kilnTop1)
}
return Object.keys(this.kilnTop1);
},
},
watch: {
kilnTop1(val) {
@ -63,12 +63,12 @@ export default {
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
margin: 0 6px;
width: 6px;
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
#3565ff,
#3565ff51,
transparent,
transparent
);

View File

@ -55,12 +55,12 @@ export default {
}
.vertical-line {
margin: 0 adjust(3px);
width: adjust(3px);
margin: 0 6px;
width: 6px;
background: radial-gradient(
ellipse at center,
#6fe2ff,
#52cbef80,
#3565ff,
#3565ff51,
transparent,
transparent
);

View File

@ -27,21 +27,21 @@ export default {
.table-status {
/* font-family: Ubuntu, sans-serif !important; */
color: #3984ff;
padding-left: adjust(10px);
padding-left: 24px;
position: relative;
}
.table-status::after {
content: "";
position: absolute;
left: adjust(1px);
top: adjust(2px);
left: 2px;
top: 8px;
display: inline-block;
width: adjust(4px);
height: adjust(4px);
border-radius: adjust(100px);
width: 12px;
height: 12px;
border-radius: 100px;
background: #3984ff;
box-shadow: 0px 0px adjust(2px) adjust(2px) rgba(39, 96, 255, 0.5);
box-shadow: 0px 0px 4px 4px rgba(39, 96, 255, 0.5);
}
.invalid {
@ -50,6 +50,6 @@ export default {
.invalid::after {
background: #ff0c0c;
box-shadow: 0px 0px adjust(2px) adjust(2px) rgba(255, 39, 39, 0.5);
box-shadow: 0px 0px 4px 4px rgba(255, 39, 39, 0.5);
}
</style>

View File

@ -75,28 +75,28 @@ export default {
this.chart = echarts.init(document.getElementById(this.id));
this.chart.setOption({
grid: {
top: adjust(20),
left: adjust(28),
bottom: adjust(18),
right: adjust(12),
top: 32,
left: 64,
bottom: 64,
right: 32,
},
xAxis: {
type: "category",
data: this.updateXAxis(),
axisLine: {
lineStyle: {
color: "#5982b2a0",
color: '#0068ff33'
},
},
axisTick: {
show: false,
},
axisLabel: {
color: "#fff9",
fontSize: adjust(8),
lineHeight: adjust(1),
margin: adjust(6),
rotate: 30,
color: "#3C4E8B",
fontSize: 16,
lineHeight: 0,
margin: 16,
rotate: 45,
},
},
yAxis: {
@ -110,7 +110,7 @@ export default {
axisLine: {
show: true,
lineStyle: {
color: "#5982b2a0",
color: '#0068ff33'
},
},
axisTick: {
@ -118,13 +118,13 @@ export default {
},
axisLabel: {
formatter: "{value} ℃",
color: "#fff9",
fontSize: adjust(8),
lineHeight: adjust(1),
color: "#3C4E8B",
fontSize: 16,
lineHeight: 0,
},
splitLine: {
lineStyle: {
color: "#5982b2a0",
color: '#0068ff33'
},
},
// data: [100, 200, 300, 400, 500],
@ -132,20 +132,11 @@ export default {
series: [
{
data: this.series,
// Array(24)
// .fill(1)
// .map(() => {
// let v = Math.ceil(Math.random() * 100);
// while (v < 60) {
// v = Math.ceil(Math.random() * 100);
// }
// return v;
// }),
type: "bar",
barWidth: adjust(4),
barWidth: 12,
label: {
show: true,
fontSize: adjust(7),
fontSize: 18,
color: "#eee8",
position: "topRight",
rotate: 90,
@ -153,11 +144,16 @@ export default {
},
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "#A0FF49" },
{ offset: 0.35, color: "#49FF9A" },
{ offset: 0.7, color: "#49F2FF" },
{ offset: 0, color: "#996ef9" },
{ offset: 0.7, color: "#187aff" },
{ offset: 1, color: "#0D6FFF" },
]),
// color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
// { offset: 0, color: "#A0FF49" },
// { offset: 0.35, color: "#49FF9A" },
// { offset: 0.7, color: "#49F2FF" },
// { offset: 1, color: "#0D6FFF" },
// ]),
},
},
],

View File

@ -1,9 +1,13 @@
<template>
<!-- line chart -->
<div class="line-chart__wrapper">
<div class="line-chart__custom-legend flex" v-if="legend.length">
<div
class="line-chart__custom-legend flex"
v-if="legend.length"
:style="legendWidth"
>
<!-- <span>产线1 - 产线5</span> -->
<ul style="" class="flex">
<ul :style="gridColumn" class="">
<li v-for="(v, i) in legend" :key="i">{{ v }}</li>
</ul>
</div>
@ -19,8 +23,9 @@
height: 100%;
display: grid;
place-items: center;
font-size: 24px;
color: #eee8;
font-size: 56px;
letter-spacing: 2px;
color: #3c4e8b88;
user-select: none;
"
>
@ -95,9 +100,11 @@ export default {
"#7138FF",
"#F318D8",
"#C0F318",
"#f77",
"#19f",
"#98f",
"#ff7777",
"#1199ff",
"#9988ff",
"#3388ff",
"#337788",
],
data: [],
legendtext: [
@ -115,6 +122,31 @@ export default {
mounted() {
this.init();
},
computed: {
legendWidth() {
let w = null;
switch (this.doMath()) {
case 1: w = '55%'; break;
// case 2: w = '75%'; break;
case 2: w = '50%'; break;
// case 3: w = '100%'; break;
}
if (!w) return {};
return {
width: w,
top: w == '50%' ? '-72px' : '-42px'
};
},
gridColumn() {
switch(this.doMath()) {
// case 2: return { 'grid-template-columns': 'repeat(6, 1fr)'}
case 2: return { 'grid-template-columns': 'repeat(4, 1fr)'}
case 3: return { 'grid-template-columns': 'repeat(8, 1fr)'}
}
}
},
watch: {
series: {
deep: true,
@ -125,6 +157,16 @@ export default {
},
},
methods: {
doMath() {
if (this.legend && Array.isArray(this.legend) && this.legend.length > 0) {
const len = this.legend.length
if (len > 0 && len <= 5) return 1
else if (len > 5 && len <= 10) return 2
else return 3
}
return 0
},
updateXAxis() {
const hour = +new Date().getHours();
return Array(24)
@ -142,11 +184,12 @@ export default {
this.chart = echarts.init(document.getElementById(this.id));
this.chart.setOption({
grid: {
top: adjust(32),
left: adjust(32),
bottom: adjust(24),
right: adjust(12),
top: 56,
left: 80,
bottom: 64,
right: 56,
},
tooltip: {},
xAxis: {
data: this.updateXAxis(),
axisLine: {
@ -155,23 +198,29 @@ export default {
},
},
axisTick: {
show: false,
show: true,
length: 8,
alignWithLabel: true,
lineStyle: {
width: 3,
},
},
axisLabel: {
color: "#fff9",
fontSize: adjust(8),
lineHeight: adjust(1),
margin: adjust(8),
rotate: 30,
color: "#3C4E8Baa",
fontSize: 20,
lineHeight: 0,
margin: 18,
rotate: 45,
},
},
yAxis: {
type: "value",
name: this.unit,
nameTextStyle: {
color: "#fff9",
fontSize: adjust(9),
align: "",
color: "#3C4E8Baa",
fontSize: 20,
lineHeight: 32,
align: "center",
},
axisLine: {
show: true,
@ -184,42 +233,17 @@ export default {
show: false,
},
axisLabel: {
color: "#fff9",
fontSize: adjust(8),
lineHeight: adjust(1),
color: "#3C4E8Baa",
fontSize: 18,
lineHeight: 0,
},
splitLine: {
lineStyle: {
color: "#5982b2a0",
},
},
// data: [100, 200, 300, 400, 500],
},
color: this.colors,
// series: Array(5)
// .fill(1)
// .map((_, index) => ({
// name: Math.random(),
// type: "line",
// symbol: "circle",
// symbolSize: adjust(3),
// lineStyle: {
// width: adjust(1),
// },
// areaStyle: {
// color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
// { offset: 0, color: this.colors[index] + "33" },
// { offset: 1, color: "transparent" },
// ]),
// },
// data: Array(31)
// .fill(1)
// .map(() => {
// let v = Math.floor(Math.random() * 5000);
// while (v < 3000) v = Math.floor(Math.random() * 5000);
// return v;
// }),
// })),
series: Array(this.legend.length)
.fill(1)
.map((_, index) => {
@ -229,7 +253,7 @@ export default {
name: lgd,
type: "line",
symbol: "circle",
symbolSize: adjust(3),
symbolSize: adjust(2),
lineStyle: {
width: adjust(1),
},
@ -252,7 +276,6 @@ export default {
@import "../../assets/styles/functions";
::-webkit-scrollbar {
// display: none;
height: adjust(2px);
}
@ -262,65 +285,70 @@ export default {
background: #ccc3;
}
// ::-webkit-scrollbar-track {
// height: adjust(1px);
// background: blue;
// }
.line-chart__wrapper {
position: relative;
background: #3564ff0f;
border-radius: 12px;
backdrop-filter: 2px;
box-shadow: inset 0 0 12px 4px rgba($color: #fff, $alpha: 0.1);
height: 96%;
width: 1px;
}
.line-chart__custom-legend {
position: absolute;
top: -42px;
right: 18px;
font-family: Ubuntu, sans-serif;
font-size: 28px;
line-height: 1;
padding: 0;
color: #3b4d87;
// width: 75%;
width: 55%;
align-items: flex-end;
justify-content: flex-end;
}
ul,
li {
margin: 0;
padding: 0;
list-style: none;
min-width: adjust(20px);
min-width: 20px;
}
ul {
// padding: 0 adjust(8px);
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
height: adjust(28px);
// background: #eeec;
// overflow-x: hidden;
// background: #0005;
width: 100%;
height: 32px;
line-height: 32px;
white-space: pre-wrap;
padding-bottom: adjust(2px);
padding-bottom: 0;
padding-left: 12px;
display: grid;
grid-template-columns: repeat(5, 1fr);
column-gap: 12px;
// column-span: none;
justify-items: end;
align-items: end;
}
li {
text-align: right;
padding-left: 12px;
position: relative;
min-width: 40px;
margin-right: adjust(9px);
padding: 0 adjust(2px);
}
li:not(:last-child) {
// margin-right: adjust(16px);
}
.line-chart__custom-legend {
position: absolute;
top: adjust(-32px);
right: 0;
font-size: adjust(9px);
font-family: Ubuntu, sans-serif;
padding: 0;
// max-width: 100%;
width: 65%;
align-items: flex-start;
justify-content: flex-end;
// background: #f003;
user-select: none;
}
li::before {
content: "";
position: absolute;
top: adjust(2px);
left: adjust(-8px);
width: adjust(8px);
height: adjust(8px);
border-radius: adjust(1px);
top: 4px;
left: -20px;
width: 24px;
height: 24px;
border-radius: 4px;
background: #eee6;
}
@ -340,13 +368,13 @@ li:nth-child(5)::before {
background: #2760ff;
}
li:nth-child(6)::before {
background: #7138FF;
background: #7138ff;
}
li:nth-child(7)::before {
background: #F318D8;
background: #f318d8;
}
li:nth-child(8)::before {
background: #C0F318;
background: #c0f318;
}
li:nth-child(9)::before {
background: #f77;
@ -357,14 +385,7 @@ li:nth-child(10)::before {
li:nth-child(11)::before {
background: #98f;
}
.line-chart__wrapper {
position: relative;
background: #7771;
border-radius: adjust(3px);
backdrop-filter: blur(adjust(2px));
box-shadow: inset 0 0 adjust(10px) adjust(2px) rgba($color: #fff, $alpha: 0.1);
height: 100%;
width: adjust(1px);
li:nth-child(12)::before {
background: #38f;
}
</style>

View File

@ -56,39 +56,41 @@ export default {
@import "../../assets/styles/functions";
.small-box-2 {
padding: adjust(14px);
// border: 1px solid gray;
// box-shadow: inset 0 0 15px rgba($color: #fff, $alpha: 0.285);
box-shadow: inset 0 0 30px rgba($color: #fff, $alpha: 0.285);
border-radius: adjust(6px);
flex-shrink: 0;
padding: 0;
user-select: none;
// width: adjust(w(465px));
// height: adjust(h(200px));
width: adjust(w(528px));
height: adjust(h(240px));
width: 744px;
height: 366px;
display: flex;
background: url(../../assets/top-middle.png) no-repeat;
background-size: 100% 100%;
background-position: bottom;
.icon {
width: adjust(h(128px));
height: adjust(h(128px));
margin-top: 48px;
margin-left: 48px;
width: 172px;
height: 172px;
}
.info {
margin-top: 56px;
flex: 1 auto;
font-family: "微软雅黑", sans-serif;
padding-left: 12px;
h2 {
font-size: adjust(16px);
font-size: 54px;
line-height: 48px;
opacity: 0.7;
// line-height: adjust(12px);
letter-spacing: adjust(1px);
letter-spacing: 2px;
font-weight: 400;
color: hsla(0, 0%, 100%, 0.9);
color: hsla(0, 0%, 0%, 0.9);
}
.value {
color: #fff;
font-size: adjust(30px);
line-height: adjust(29px);
color: #030609;
font-size: 96px;
line-height: 98px;
}
}
}

View File

@ -0,0 +1,71 @@
<template>
<section class="data-group">
<OilFlow />
<GasFlow />
<TopTemp />
<BottomTemp />
<XicaoTemp />
<FanRuntime />
</section>
</template>
<script>
import OilFlow from "../boxes/OilFlow.vue";
import GasFlow from "../boxes/GasFlow.vue";
import TopTemp from "../boxes/TopTemp.vue";
import BottomTemp from "../boxes/BottomTemp.vue";
import FanRuntime from "../boxes/FanRuntime.vue";
import XicaoTemp from '../boxes/XicaoTemp.vue';
// import { mapState } from "vuex";
export default {
name: "DataGroup",
props: {},
components: {
FanRuntime,
OilFlow,
GasFlow,
TopTemp,
BottomTemp,
XicaoTemp
},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
// background: url('../../assets/middle-under.png') left 110px top 4px / 380px 22px no-repeat;
// background: rgba(124, 63, 238, 0.722);
width: 100%;
position: absolute;
bottom: 0;
left: 0;
display: flex;
justify-content: space-around;
align-items: flex-end;
padding: 24px;
}
// 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-size: adjust(h(64px));
// font-weight: 400;
// letter-spacing: 1px;
// position: absolute;
// color: $main-color;
// top: 0;
// left: 0;
// }
</style>

View File

@ -0,0 +1,59 @@
<template>
<section class="environ-analysis"></section>
</template>
<script>
// import { mapState } from "vuex";
export default {
name: "EnviroAnalysis",
props: {},
components: {},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
width: 1920px;
height: 1080px;
position: absolute;
top: 490px;
right: 0;
background: #ccc3;
}
section::before {
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-size: 80px;
font-weight: 400;
letter-spacing: 2px;
position: absolute;
color: $main-color;
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;
}
</style>

View File

@ -0,0 +1,60 @@
<template>
<section class="fault-analysis"></section>
</template>
<script>
// import { mapState } from "vuex";
export default {
name: "FaultAnalysis",
props: {},
components: {},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
width: 1920px;
height: 1080px;
position: absolute;
// top: 452px;
top: 490px;
left: 0;
background: #ccc3;
}
section::before {
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-size: 80px;
font-weight: 400;
letter-spacing: 1px;
color: $main-color;
position: absolute;
top: -128px;
left: 0;
}
section::after {
content: "";
display: inline-block;
width: 110%;
height: 100%;
position: absolute;
top: -128px;
left: 0;
background: url("../../assets/fault-analysis.png") no-repeat;
background-position: 356px 20px;
background-size: 78%;
}
</style>

View File

@ -0,0 +1,47 @@
<template>
<section class="monitor-group">
</section>
</template>
<script>
// import { mapState } from "vuex";
export default {
name: "MonitorGroup",
props: {},
components: {},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
// background: url('../../assets/monitor-group.png') left 144px top 4px / 1152px 80% no-repeat, #ccc7;
width: adjust(w(3570px));
height: adjust(h(3790px));
position: absolute;
top: adjust(h(430px));
left: adjust(w(80px));
}
section::before {
// content: ' 1';
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-size: adjust(h(64px));
font-weight: 400;
letter-spacing: 1px;
position: absolute;
color: $main-color;
top: 0;
left: 0;
}
</style>

View File

@ -0,0 +1,50 @@
<template>
<section class="monitor-group-2">
</section>
</template>
<script>
// import { mapState } from "vuex";
export default {
name: "MonitorGroup-2",
props: {},
components: {},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
// background: rgba(47, 203, 255, 0.225);
width: 100%;
// height: 1178px;
height: 1469px;
position: absolute;
// bottom: 690px;
// top: 2160px;
top: 1570px;
left: 0;
}
// section::before {
// // content: ' 2';
// 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-size: adjust(h(64px));
// font-weight: 400;
// letter-spacing: 1px;
// position: absolute;
// color: $main-color;
// top: 0;
// left: 0;
// }
</style>

View File

@ -0,0 +1,47 @@
<template>
<section class="monitor-group">
</section>
</template>
<script>
// import { mapState } from "vuex";
export default {
name: "MonitorGroup-3",
props: {},
components: {},
data() {
return {};
},
computed: {
// ...mapState(["kilnWaterIn", "waterInTemp"]),
},
};
</script>
<style scoped lang="scss">
@import "../../assets/styles/functions";
section {
background: url('../../assets/monitor-group.png') left 144px top 4px / 1152px 80% no-repeat, #ccc7;
width: adjust(w(3570px));
height: adjust(h(3790px));
position: absolute;
top: adjust(h(430px));
// left: adjust(w(17264px));
left: adjust(w(17464px));
}
section::before {
content: '监控组 3';
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-size: adjust(h(64px));
font-weight: 400;
letter-spacing: 1px;
position: absolute;
color: $main-color;
top: 0;
left: 0;
}
</style>

View File

@ -1,7 +1,5 @@
<template>
<svg
:width="adjust('64px')"
:height="adjust('64px')"
viewBox="0 0 95 96"
version="1.1"
xmlns="http://www.w3.org/2000/svg"

View File

@ -1,8 +1,6 @@
<template>
<svg
:width="adjust('64px')"
:height="adjust('64px')"
viewBox="0 0 94 96"
viewBox="0 0 96 96"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"

View File

@ -1,7 +1,5 @@
<template>
<svg
:width="adjust('64px')"
:height="adjust('64px')"
viewBox="0 0 95 96"
version="1.1"
xmlns="http://www.w3.org/2000/svg"

View File

@ -1,7 +1,5 @@
<template>
<svg
:width="adjust('64px')"
:height="adjust('64px')"
viewBox="0 0 122 122"
version="1.1"
xmlns="http://www.w3.org/2000/svg"

View File

@ -1,7 +1,5 @@
<template>
<svg
:width="adjust('64px')"
:height="adjust('64px')"
viewBox="0 0 94 96"
version="1.1"
xmlns="http://www.w3.org/2000/svg"

View File

@ -1,12 +1,30 @@
<template>
<DragabbleContainer class="isolate-area-1">
<div class="data pressure">
<span></span>
<span></span>
<span
v-for="(press, index) in pressure"
:key="index"
:class="{ digit: true, dot: press == '.' ? true : false }"
>{{ press }}</span
>
<span>Pa</span>
</div>
<SmallBox2
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 v-for="val, index in runtime" :key="index" :class="{ 'digit': true, 'dot': press == '.' ? true : false }">{{ val }}</span>
<span></span>
</div> -->
</DragabbleContainer>
</template>
@ -15,66 +33,52 @@ import DragabbleContainer from "../layout/DragableContainer.vue";
import SmallBox2 from "../common/SmallBox2.vue";
import { mapState } from "vuex";
let timeFun = null
let timeFun = null;
export default {
name: "IsolateArea--1",
components: { DragabbleContainer, SmallBox2 },
data() {
return {
pressure: "10.1".split(""),
runtime: "0012".split(""),
rdata: [
// { icon: "temp", title: "", value: "27" },
{ icon: "fire", title: "当前火向", value: "" },
{ icon: "clock", title: "换火时间", value: "20分" },
{ icon: "sand", title: "剩余时间", value: "0" },
{ icon: "sand", title: "剩余时间", value: "19分20" },
],
};
},
watch: {
fireDirection: function (val) {
this.$set(this.rdata[0], 'value', val)
this.$set(this.rdata[0], "value", val);
},
fireChangeTime: function (val) {
this.$set(this.rdata[1], 'value', val)
this.$set(this.rdata[1], "value", val);
},
lastFireChangeTime: function (val) {
let [_, min, sec] = /(\d+)分(\d+)秒/.exec(val || '0分0秒')
if (timeFun) clearInterval(timeFun)
let [_, min, sec] = /(\d+)分(\d+)秒/.exec(val || "0分0秒");
if (timeFun) clearInterval(timeFun);
timeFun = setInterval(() => {
if (sec > 0) sec -= 1
if (sec > 0) sec -= 1;
else {
if (min > 0) {
sec = 59
min -= 1
sec = 59;
min -= 1;
} else {
if (timeFun) clearInterval(timeFun)
if (timeFun) clearInterval(timeFun);
}
}
this.$set(this.rdata[2], 'value', `${min}${sec}`)
}, 1000)
this.$set(this.rdata[2], "value", `${min}${sec}`);
}, 1000);
},
kilnPressure: function(val) {
this.pressure = val.split("")
}
},
computed: {
...mapState(["fireDirection", "lastFireChangeTime", "fireChangeTime"]),
// rdata() {
// let [_, min, sec] = /(\d+)(\d+)/.exec(this.lastFireChangeTime)
// min = +min
// sec = +sec
// let interTime = `${min}${sec}`
// let timer = setInterval(() => {
// if (sec) sec -= 1
// else {
// sec = 59
// min -= 1
// }
// }, 1000);
// return [
// // { icon: "temp", title: "", value: "27" },
// { icon: "fire", title: "", value: this.fireDirection },
// { icon: "clock", title: "", value: this.fireChangeTime },
// { icon: "sand", title: "", value: interTime },
// ];
// },
...mapState(["fireDirection", "lastFireChangeTime", "fireChangeTime", "kilnPressure"]),
},
};
</script>
@ -84,11 +88,43 @@ export default {
.isolate-area-1 {
display: flex;
color: $main-color;
min-width: 300px;
align-items: flex-end;
> .small-box-2:not(:last-child) {
> *:not(:last-child) {
margin: {
right: adjust(15px);
right: 128px;
}
}
> .data {
flex-shrink: 0;
font-family: zcoolqingkehuangyouti-Regular, sans-serif;
display: flex;
align-items: flex-end;
}
> .data > span:not(.dot) {
/** 边框 */
background: url("../../assets/digitbox1.png") no-repeat;
background-size: 100% 100%;
display: inline-block;
width: 228px;
height: 299px;
color: #0068ffaa;
font-size: 142px;
line-height: 328px;
text-align: center;
vertical-align: bottom;
user-select: none;
}
> .data > span.digit {
/** 数字字体大小 */
color: #0071ff;
font-size: 242px;
line-height: 286px;
}
}
</style>

View File

@ -0,0 +1,78 @@
<template>
<div class="data runtime">
<span></span>
<span></span>
<span
v-for="(val, index) in runtime"
:key="index"
:class="{ digit: true, dot: val == '.' ? true : false }"
>{{ val }}</span
>
<span></span>
</div>
</template>
<script>
export default {
name: "RuntimeComp",
props: {},
data() {
return {
runtime: "0012".split(""),
};
},
mounted() {
this.getRuntime();
setInterval(this.getRuntime, 1000 * 60 * 60);
},
methods: {
getRuntime() {
const diff = Date.now() - new Date("2023-5-7 8:00:00");
const days = parseInt(diff / 1000 / 60 / 60 / 24);
const hours = parseInt(
(diff - days * 24 * 60 * 60 * 1000) / 1000 / 60 / 60
);
console.log("days", days);
this.runtime = (days + "").padStart(4, "0");
},
},
};
</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>

View File

@ -27,9 +27,9 @@ export default {
cls: {
// 'NumberOrDate': {},
NumberOrDate: "number-or-date",
Table: 'tables',
Charts: 'charts',
NumberAndChart: 'number-and-chart',
Table: "tables",
Charts: "charts",
NumberAndChart: "number-and-chart",
},
};
},
@ -45,28 +45,25 @@ export default {
.number-or-date {
display: inline-block;
width: adjust(w(800px));
height: adjust(h(375px));
background: url(../../assets/box-number.png);
background-position: 0 0; /** top left */
background-size: 100% 100%;
// background: url(../../assets/box-number.png) 0 0 / 100% 100% no-repeat;
}
.tables {
display: inline-block;
width: adjust(w(800px));
height: adjust(h(528px));
width: 1145px;
height: 618px;
background: url(../../assets/box-table.png);
background-position: 0 0; /** top left */
background-position: 0 0;
background-size: 100% 100%;
}
.charts {
display: inline-block;
width: adjust(w(1580px));
height: adjust(h(520px));
height: 618px;
width: 2452px;
// width: 2400px;
background: url(../../assets/box-chart.png);
background-position: 0 0; /** top left */
background-position: 0 0;
background-size: 100% 100%;
}
@ -74,9 +71,6 @@ export default {
display: inline-block;
width: adjust(w(800px));
height: adjust(h(931px));
background: url(../../assets/box-right.png);
background-position: 0 0; /** top left */
background-size: 100% 100%;
background: url(../../assets/box-right.png) 0 0 / 100% 100% no-repeat;
}
</style>

View File

@ -6,9 +6,11 @@
</span>
<h1>凯盛晶华玻璃有限公司800t/d特种玻璃生产线大数据指挥中心</h1>
</div>
<span class="header--wing absolute company"></span>
<span class="header--wing absolute company">
设计单位: 中建材智能自动化研究院
</span>
<span class="header--wing absolute datetime">
{{ moment(today).format('YYYY.M.D dddd HH:mm:ss') }}
{{ moment(today).format('YYYY.M.D dddd') }}&nbsp;{{ moment(today).format('HH:mm:ss') }}
</span>
</header>
</template>
@ -66,60 +68,58 @@ export default {
@import "../../assets/styles/variables";
header {
background: url(../../assets/header.png) center/contain no-repeat;
background-size: 100%;
height: adjust(h(280px));
width: adjust($actual_width);
width: 100%;
height: 628px;
background: url(../../assets/header.png) no-repeat;
display: grid;
place-items: center;
>div {
margin-left: 378px;
margin-bottom: 72px;
display: flex;
align-items: center;
margin-bottom: adjust(10px);
.header--logo {
width: adjust(102px);
height: adjust(56px);
width: 648px;
height: 337px;
margin-right: 96px;
background: url(../../assets/logo.png) center/contain no-repeat;
}
h1 {
margin-left: adjust(20px);
font-size: adjust(35px);
// line-height: adjust(100px);
// background: #eee;
font-size: 220px;
line-height: 330px;
margin: 0;
letter-spacing: 36px;
user-select: none;
letter-spacing: adjust(8px);
font-weight: 600;
// color: #6bf2ff;
color: $main-color;
font-family: "微软雅黑", sans-serif;
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;
}
}
}
.header--wing {
top: 138px;
left: 0;
bottom: adjust(10px);
height: adjust(h(78px));
line-height: 130px;
font-size: 130px;
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;
}
.company {
margin-left: adjust(w(1460px));
width: adjust(w(1320px));
height: adjust(h(48px));
background: url("../../assets/company.png") center/cover no-repeat;
left: 240px;
text-align: center;
color: lighten($main-color, 8);
}
.datetime {
left: unset;
right: 240px;
color: $main-color;
font-size: adjust(26px);
text-align: center;
// display: inline-block;
margin-left: adjust(w(6150px));
width: adjust(w(1320px));
height: adjust(h(48px));
background: url("../../assets/date.png") center/cover no-repeat;
color: lighten($main-color, 8);
font-size: 140px;
}
</style>

View File

@ -1,11 +1,23 @@
<template>
<main class="">
<main class="relative">
<!-- 缺陷分析 -->
<FaultAnalysis />
<!-- 环境浓度 -->
<Environ />
<!-- 监控组 2 -->
<MonitorGroup2 />
<!-- 数据组 -->
<DataGroup />
<div class="video-crash" v-if="false"></div>
<div class="eq-main absolute">
<div
class="arrow ar-top-left"
:class="topLeftArrowRolling === '运行' ? 'ar-running' : ''"
:class="bottomLeftArrowRolling === '运行' ? 'ar-running' : ''"
></div>
<div
class="arrow ar-top-right"
@ -45,11 +57,16 @@
</div>
</div>
<div class="video-bottom" v-show="fireDirection === '北火'" style="">
<div
class="video-bottom--wrapper"
v-show="fireDirection === '北火'"
style=""
>
<video
class="video-bottom"
id="1"
preload="auto"
height="260"
height=""
muted
autoplay
loop
@ -58,12 +75,16 @@
></video>
</div>
<div class="video-top" v-show="fireDirection === '南火'" style="">
<div
class="video-top--wrapper"
v-show="fireDirection === '南火'"
style=""
>
<video
id="2"
class="video-top"
preload="auto"
height="260"
height=""
muted
autoplay
loop
@ -74,53 +95,21 @@
</div>
<AreaOne class="area-one" />
<div class="absolute left kiln-runtime">
<KilnRuntime />
</div>
<div class="absolute left kiln-pressure">
<KilnPressure />
</div>
<div class="absolute left fan-runtime">
<FanRuntime />
</div>
<div class="absolute left oil-flow">
<OilFlow />
</div>
<div class="absolute left gas-flow">
<GasFlow />
</div>
<div class="absolute left top-temp">
<TopTemp />
</div>
<div class="absolute left bottom-temp">
<BottomTemp />
</div>
<div class="absolute left ou-temp">
<XicaoTemp />
</div>
<div class="absolute in-water">
<Runtime class="runtime" />
<InWater />
</div>
<div class="absolute out-water">
<OutWater />
</div>
</main>
</template>
<script>
import KilnRuntime from "../boxes/KilnRuntime.vue";
import KilnPressure from "../boxes/KilnPressure.vue";
import OilFlow from "../boxes/OilFlow.vue";
import GasFlow from "../boxes/GasFlow.vue";
import TopTemp from "../boxes/TopTemp.vue";
import BottomTemp from "../boxes/BottomTemp.vue";
import XicaoTemp from "../boxes/XicaoTemp.vue";
import InWater from "../boxes/InWater.vue";
import OutWater from "../boxes/OutWater.vue";
import FanRuntime from "../boxes/FanRuntime.vue";
import AreaOne from "../isolate-area-1/Area.vue";
// import Container from './Container.vue'
import Runtime from "../isolate-area-1/Runtime.vue";
import MonitorGroup2 from "../groups/monitor2.vue";
import DataGroup from "../groups/data.vue";
import FaultAnalysis from "../groups/fault.vue";
import Environ from "../groups/environ.vue";
import { mapMutations, mapState } from "vuex";
import WsClient from "../../utils/wsClass";
@ -128,15 +117,12 @@ import WsClient from "../../utils/wsClass";
export default {
name: "Main",
components: {
Runtime,
DataGroup,
MonitorGroup2,
Environ,
FaultAnalysis,
AreaOne,
KilnRuntime,
KilnPressure,
FanRuntime,
OilFlow,
GasFlow,
TopTemp,
BottomTemp,
XicaoTemp,
InWater,
OutWater,
},
@ -154,7 +140,7 @@ export default {
"onekb",
"twokb",
"onesp",
"twosp"
"twosp",
]),
mounted() {
const wsc = new WsClient(this);
@ -174,19 +160,25 @@ export default {
main {
height: 1px;
flex: 1;
// background: #eee2;
// background: #f2e2;
}
.area-one {
position: absolute;
top: adjust(160px);
left: adjust(1588px);
top: 124px;
left: 3910px;
}
.runtime {
position: absolute;
top: 0;
right: 0;
}
.video-crash {
height: adjust(h(424px));
width: adjust(w(800px));
background: url(../../assets/tv.png) no-repeat;
height: 640px;
background: #fcc2;
// background: url(../../assets/tv.png) no-repeat;
background-size: 100%;
display: inline-block;
position: absolute;
@ -196,141 +188,123 @@ main {
.video-bottom {
position: absolute;
bottom: adjust(200.5px);
left: adjust(48px);
transform: scale(0.9);
bottom: 400px;
left: 268px;
transform: scale(1.25, 1.15);
}
.video-top {
position: absolute;
top: adjust(35px);
left: adjust(38px);
transform: scale(0.95, 0.9);
top: 250px;
left: 320px;
transform: scale(1.25);
}
.arrow {
width: adjust(20px);
height: adjust(20px);
display: inline-block;
width: 64px;
height: 64px;
border-radius: 100%;
position: absolute;
background: #ff5757;
border-radius: adjust(10px);
}
.arrow.ar-running {
background: #1bff3a;
}
// .ar-top-left.arrow,
// .ar-top-right.arrow {
// animation: none;
// background: url(../../assets/arrow-disabled.png) 100% 100% / contain no-repeat;
// }
// .ar-bottom-left.arrow,
// .ar-bottom-right.arrow {
// animation: none;
// background: url(../../assets/arrow-r-disabled.png) 100% 100% / contain
// no-repeat;
// }
// .ar-top-left.arrow.ar-running,
// .ar-top-right.arrow.ar-running {
// background: url(../../assets/arrow.png) 100% 100% / contain no-repeat;
// animation: clock-direction 1.15s linear infinite forwards;
// }
// .ar-bottom-left.arrow.ar-running,
// .ar-bottom-right.arrow.ar-running {
// background: url(../../assets/arrow-r.png) 100% 100% / contain no-repeat;
// animation: reverse-clock-direction 1.15s linear infinite forwards;
// }
.ar-top-right {
top: 145px;
left: 65px;
}
.ar-top-left {
top: 175px;
left: 985px;
}
.ar-bottom-left {
top: 445px;
left: 960px;
}
.ar-bottom-right {
top: 460px;
left: 20px;
top: 190px;
left: 110px;
}
// @keyframes clock-direction {
// 0% {
// transform: rotate(0deg);
// }
// 100% {
// transform: rotate(360deg);
// }
// }
// @keyframes reverse-clock-direction {
// 0% {
// transform: rotate(0deg);
// }
// 100% {
// transform: rotate(-360deg);
// }
// }
.ar-top-left {
top: 200px;
left: 1480px;
}
.ar-bottom-left {
top: 700px;
left: 1430px;
}
.ar-bottom-right {
top: 720px;
left: 40px;
}
.swd {
background-size: 100%;
width: adjust(w(276px));
height: adjust(h(156px));
// background-size: 100% 10px;
width: 350px;
height: 202px;
position: absolute;
transform: rotateY(180deg);
p {
margin: 0;
margin-top: adjust(12px);
color: #000;
margin-top: 16px;
}
.swd-box {
margin-left: adjust(21px);
font-size: adjust(15px);
margin-left: 54px;
margin-top: 44px;
font-size: 30px;
letter-spacing: 2px;
color: #000;
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;
.swd-value {
color: #00f4ff;
margin-top: adjust(6px);
font-size: adjust(26px);
overflow: hidden; /*超出部分隐藏*/
white-space: nowrap; /*禁止换行*/
text-overflow: ellipsis; /*省略号*/
color: #ff2020;
margin-top: 12px;
font-size: 64px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: 700;
}
}
}
.onekb, .onesp{
background: url(../../assets/tem-bottom.png) no-repeat;
}
.onekb {
top: adjust(300px);
left: adjust(350px)
}
.onekb,
.onesp {
top: adjust(270px);
left: adjust(520px)
background: url(../../assets/tem-bottom.png) top 0 left 0 / 100% no-repeat;
}
.twokb, .twosp{
background: url(../../assets/tem-top.png) no-repeat;
.onekb {
top: 760px;
left: 1560px;
}
.twokb {
top: adjust(-20px);
left: adjust(370px)
.onesp {
top: 860px;
left: 1100px;
}
.twokb,
.twosp {
top: adjust(10px);
left: adjust(540px)
background: url(../../assets/tem-top.png) top 0 left 0 / 100% no-repeat;
}
.twokb {
top: 72px;
left: 1580px;
}
.twosp {
top: -32px;
left: 1080px;
}
.eq-main {
width: adjust(w(7150px));
height: adjust(h(960px));
width: 9162px;
height: 1178px;
background: url(../../assets/eq.png) no-repeat;
background-size: 100%;
top: adjust(170px);
left: adjust(380px);
top: 256px;
left: 2172px;
position: relative;
transform: rotateY(0.5turn);
}
@ -338,118 +312,54 @@ main {
.eq-main::before {
content: "";
position: absolute;
// right: adjust(1200px);
opacity: 0;
top: adjust(105px);
width: adjust(150px);
height: adjust(150px);
top: 56px;
width: 72px;
height: 72px;
background: url(../../assets/mirror.png) no-repeat;
background-size: 100% 100%;
animation: 10s linear 0.3s infinite mirror-to-left-2;
// animation: 10s linear 0.3s infinite mirror-to-left-2;
}
.eq-main::after {
content: "";
position: absolute;
// right: adjust(1200px);
opacity: 0;
top: adjust(105px);
// top: adjust(125px);
width: adjust(150px);
height: adjust(150px);
top: 56px;
width: 72px;
height: 72px;
background: url(../../assets/mirror.png) no-repeat;
background-size: 100% 100%;
animation: 10s linear 5s infinite mirror-to-left;
// animation: 10s linear 5s infinite mirror-to-left;
}
@keyframes mirror-to-left {
0% {
right: adjust(1200px);
right: 700px;
opacity: 1;
}
90% {
opacity: 1;
}
100% {
right: adjust(60px);
right: 32px;
}
}
@keyframes mirror-to-left-2 {
0% {
right: adjust(1200px);
right: 700px;
opacity: 1;
}
90% {
opacity: 1;
}
100% {
right: adjust(60px);
right: 32px;
}
}
.kiln-runtime {
top: adjust(h(200px));
// left: adjust(w(60px));
left: adjust(w(8110px));
}
.kiln-pressure {
top: adjust(h(610px));
// left: adjust(w(60px));
left: adjust(w(8110px));
}
.fan-runtime {
top: adjust(h(1020px));
// left: adjust(w(60px));
left: adjust(w(8110px));
}
.oil-flow {
top: adjust(h(1588px));
// left: adjust(w(60px));
// left: adjust(w(460px));
left: adjust(w(880px));
}
.gas-flow {
top: adjust(h(1588px));
// left: adjust(w(1660px));
left: adjust(w(2500px));
}
.top-temp {
top: adjust(h(1588px));
// left: adjust(w(3260px));
left: adjust(w(4110px));
}
.bottom-temp {
top: adjust(h(1588px));
// left: adjust(w(4860px));
left: adjust(w(5720px));
}
.ou-temp {
top: adjust(h(1588px));
left: adjust(w(7330px));
// left: adjust(w(6460px));
}
.in-water {
top: adjust(h(200px));
left: adjust(w(40px));
// left: adjust(w(8096px));
// // left: w(5096px);
z-index: 100;
}
.out-water {
top: adjust(h(1177px));
left: adjust(w(40px));
// left: adjust(w(8096px));
// left: w(5096px);
z-index: 100;
}
</style>

View File

@ -3,7 +3,7 @@
<div class="sub-container" :style="{ padding }">
<div class="title">
<span class="icon" :class="iconClass[icon]"></span>
<span>{{ title }}</span>
<span class="title_text">{{ title }}</span>
</div>
<div class="content">
<slot />
@ -25,7 +25,7 @@ export default {
},
padding: {
type: String,
default: "10px",
default: "20px",
},
},
data() {
@ -37,9 +37,9 @@ export default {
gas: "icon-gas",
xicao: "icon-xc",
inWater: "icon-water-in",
fan: 'icon-fan',
ktop: 'icon-kiln-top',
kbtm: 'icon-kiln-bottom',
fan: "icon-fan",
ktop: "icon-kiln-top",
kbtm: "icon-kiln-bottom",
},
};
},
@ -56,9 +56,9 @@ export default {
}
.icon {
height: adjust(17px);
width: adjust(17px);
margin-right: adjust(8px);
height: 64px;
width: 60px;
margin-right: 0;
}
.icon-clock {
@ -72,49 +72,65 @@ export default {
}
.icon-oil {
background: url(../../assets/oil.png);
background-size: 100% 100%;
background: url(../../assets/oil.png) top 0 left 0 / 90% 75% no-repeat;
margin-right: 6px;
}
.icon-gas {
background: url(../../assets/gas-icon.png);
background-size: 100% 100%;
background: url(../../assets/gas-icon.png) top 0 left 0 / 90% 75% no-repeat;
margin-right: 6px;
}
.icon-xc {
background: url(../../assets/xicao-icon.png);
background-size: 100% 100%;
background: url(../../assets/xicao-icon.png) top 0 left 0 / 90% 75% no-repeat;
margin-right: 6px;
}
.icon-fan {
background: url(../../assets/fan-icon.png);
background-size: 100% 100%;
background: url(../../assets/fan-icon.png) top 0 left 0 / 90% 75% no-repeat;
margin-right: 6px;
}
.icon-kiln-top {
background: url(../../assets/kiln-top-icon.png);
background-size: 100% 100%;
background: url(../../assets/kiln-top-icon.png) top 0 left 0 / 90% 75%
no-repeat;
margin-right: 6px;
}
.icon-kiln-bottom {
background: url(../../assets/kiln-bottom-icon.png);
background-size: 100% 100%;
background: url(../../assets/kiln-bottom-icon.png) top 0 left 0 / 90% 75%
no-repeat;
margin-right: 6px;
}
.icon-water-in {
background: url(../../assets/water-temp.png);
background-size: 100% 100%;
background: url(../../assets/water-temp.png) top 24% left 0 / 80% 75%
no-repeat;
}
.title {
/* margin: 12px 0; */
margin-bottom: adjust(12px);
font-size: adjust(17px);
color: #72f2ff;
font-family: sans-serif;
padding: 24px 0 0 32px;
user-select: none;
display: flex;
align-items: center;
}
.title_text {
font-size: 42px;
letter-spacing: 1px;
color: #3565ff;
font-family: sans-serif;
line-height: 52px;
margin-bottom: 10px;
}
.out-water .title,
.in-water .title {
font-size: adjust(h(40px));
}
.content {
height: 1px;
/* background: #eee; */
flex: 1;
}
</style>

30
src/directives/title.js Normal file
View File

@ -0,0 +1,30 @@
export default {
inserted: function (el, binding) {
const value = binding.value
console.log('[v-title] value', value)
el.addEventListener('mouseover', function (event) {
console.log('[v-title] mouseover', event)
})
// find mouse pointer's location
// find element with id 'tooltip'
let tooltip = document.getElementById('tooltip')
if (!tooltip) {
const tooltipDiv = document.createElement('div')
tooltipDiv.id = 'tooltip'
tooltipDiv.style.position = 'absolute';
tooltipDiv.style.padding = '24px 32px';
tooltipDiv.style.visibility = 'hidden';
document.body.appendChild(tooltipDiv)
tooltip = tooltipDiv
}
// fit tooltip content with value
tooltip.innerText = value
// show tooltip with location of mouse pointer
}
}

View File

@ -2,12 +2,15 @@ import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import title from './directives/title'
import 'normalize.css'
import './style.css'
Vue.config.productionTip = false
Vue.directive('title', title)
new Vue({
router,
store,

View File

@ -31,7 +31,7 @@ export default new Vuex.Store({
kilnPressure: '00',
fireChangeTime: '00:00:00',
lastFireChangeTime: '0分0秒',
waterInTemp: '000',
waterInTemp: '00.0',
waterOutTemp: '000'
},
getters: {

11
src/utils/index.js Normal file
View File

@ -0,0 +1,11 @@
export function randomInt(min, max, closeRight = false) {
min = min ?? 0
max = max ?? 100
if (min >= max) { min = max - 100 > 0 ? max - 100 : 0 }
const fn = closeRight ? Math.ceil : Math.floor
let val = fn(Math.random() * max)
while (val < min) {
val = fn(Math.random() * max)
}
return val
}

45
src/utils/slider.vue Normal file
View File

@ -0,0 +1,45 @@
<template>
<div class="fixed-slider">
<h1>{{ value }}</h1>
<input type="range" :value="value" @input="$emit('change', +$event.target.value)">
</div>
</template>
<script>
export default {
name: "FixedSlider",
model: {
prop: 'value',
event: 'change'
},
props: {
value: {
type: Number,
default: 0,
},
},
data() {
return {
// value: 0
};
},
};
</script>
<style scoped>
.fixed-slider {
position: fixed;
bottom: 0;
left: 0;
height: 10vh;
width: 100vw;
background: #0002;
color: #fff;
z-index: 100000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100px 0;
}
</style>

View File

@ -1,39 +1,137 @@
<template>
<div class="home-view">
<!-- transform: 'scale(0.18182, 0.25)', -->
<!-- :style="{
transform: 'scale(0.72727, 1)',
transformOrigin: 'top left',
}" -->
<div class="home-view" :style="styles">
<div class="bg-layer"></div>
<LeftSide />
<section class="center">
<BigHeader />
<Main />
</section>
<RightSide />
</div>
</template>
<script>
import BigHeader from '../components/layout/Header.vue'
import Main from '../components/layout/Main.vue'
import BigHeader from "../components/layout/Header.vue";
import Main from "../components/layout/Main.vue";
import LeftSide from "./LeftSide.vue";
import RightSide from "./RightSide.vue";
export default {
name: "HomeView",
components: { BigHeader, Main },
components: { BigHeader, Main, LeftSide, RightSide },
props: {},
data() {
return {};
return {
value: 100,
};
},
computed: {
styles() {
let v = (this.value / 100).toFixed(2);
return {
transform: `scale(${v * 24 / 33}, ${v})`,
transformOrigin: "top left",
};
},
},
mounted() {
const slider = document.createElement("div");
slider.id = "slider";
slider.classList.add("slider");
const ranger = document.createElement("input");
ranger.type = "range";
ranger.value = 100;
ranger.addEventListener("input", this.handleSlide);
slider.appendChild(ranger);
document.body.appendChild(slider);
// this.$watch('value', val => {
// ranger.value = val
// })
document.addEventListener("keydown", (e) => {
if (e.shiftKey && e.key === "L") {
document.getElementById("slider").classList.toggle("show");
}
});
document.getElementById("slider").addEventListener("mouseleave", () => {
setTimeout(() => {
document.getElementById("slider").classList.remove("show");
}, 200);
});
},
methods: {
handleSlide(e) {
this.value = e.target.value;
window.scroll(0, 0);
},
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped lang="scss">
@import '../assets/styles/functions';
<style lang="scss">
@import "../assets/styles/functions";
.home-view {
// width: 100vw;
// height: 100vh;
height: adjust($actual_height);
width: adjust($actual_width);
height: 4320px;
width: 21120px;
overflow: hidden;
// background: #C9CCE5;
background: url(../assets/bg.png) center/cover no-repeat;
color: white;
display: flex;
position: relative;
}
.bg-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #c9cce577;
// background: url(../assets/bg.png) center/cover no-repeat;
}
.center {
width: 13515px;
height: 4320px;
display: flex;
flex-direction: column;
}
.slider {
height: 5vh;
width: 20vw;
border-radius: 88px;
box-shadow: 0 0 68px 8px rgba($color: #000000, $alpha: 0.3);
padding: 32px;
display: grid;
place-items: center;
background: #fff;
position: fixed;
// bottom: 64px;
bottom: 0;
opacity: 0;
left: 50%;
transform: translateX(-50%);
transition: opacity 0.3s ease-out, bottom 0.3s ease-out;
input {
width: 100%;
transform: translateY(-7px);
color: #0b58ff;
background: #fcc;
}
}
.slider.show {
opacity: 1;
bottom: 64px;
}
</style>

26
src/views/LeftSide.vue Normal file
View File

@ -0,0 +1,26 @@
<template>
<div class="left-side"></div>
</template>
<script>
export default {
name: "LeftSide",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped lang="scss">
// import
.left-side {
// background: rgba(243, 54, 145, 0.166);
height: 4320px;
width: 3840px;
}
</style>

26
src/views/RightSide.vue Normal file
View File

@ -0,0 +1,26 @@
<template>
<div class="right-side"></div>
</template>
<script>
export default {
name: "RightSide",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped lang="scss">
// import
.right-side {
// background: rgba(30, 133, 244, 0.292);
height: 4320px;
width: 3840px;
}
</style>

View File

@ -2,7 +2,8 @@ const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
host: "127.0.0.1",
host: '0.0.0.0',
// host: "127.0.0.1",
port: 8000,
},
publicPath: './'

7565
yarn.lock

File diff suppressed because it is too large Load Diff