邓洁 : 完善首页
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="air-info">
|
<div id="air-info">
|
||||||
<div class="fan-speed">
|
<div class="fan-speed">
|
||||||
<img src="../../../../public/images/airInfo/fan-v-icon.png" alt="" />
|
<img src="/images/airInfo/fan-v-icon.png" alt="" />
|
||||||
<div class="fan-info">
|
<div class="fan-info">
|
||||||
<div class="input-fan"><span>风速</span><span>进风:13m/s</span></div>
|
<div class="input-fan"><span>风速</span><span>进风:13m/s</span></div>
|
||||||
<div class="output-fan"><span>风速</span><span>出风:13m/s</span></div>
|
<div class="output-fan"><span>风速</span><span>出风:13m/s</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
unit="%"
|
|
||||||
<item-info
|
<item-info
|
||||||
:wp="info"
|
:wp="info"
|
||||||
icon="/images/airInfo/o2-icon.png"
|
icon="/images/airInfo/o2-icon.png"
|
||||||
|
|||||||
@@ -11,21 +11,21 @@
|
|||||||
<div class="option-nav">
|
<div class="option-nav">
|
||||||
<div class="state">
|
<div class="state">
|
||||||
<div :class="{ stopColor: !isStart }">
|
<div :class="{ stopColor: !isStart }">
|
||||||
<span> <img :src="stateIcon1" alt="" />状态:</span
|
<span> <img :src="stateIcon1" alt=""/>状态:</span
|
||||||
><span>{{ state }}</span>
|
><span>{{ state }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="switch">
|
<div class="switch">
|
||||||
<div
|
<div
|
||||||
id="auto"
|
id="auto"
|
||||||
:class="{ active: isStart }"
|
:class="{ active: isStart }"
|
||||||
@click="isStart = true"
|
@click="isStart = true"
|
||||||
>
|
>
|
||||||
启动
|
启动
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="stop"
|
id="stop"
|
||||||
:class="{ active: !isStart }"
|
:class="{ active: !isStart }"
|
||||||
@click="isStart = false"
|
@click="isStart = false"
|
||||||
>
|
>
|
||||||
停止
|
停止
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<div class="edit-power">
|
<div class="edit-power">
|
||||||
<span style="color: white">当前功率</span>
|
<span style="color: white">当前功率</span>
|
||||||
<span class="units"
|
<span class="units"
|
||||||
><input
|
><input
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
v-model="fan01_option.series[0].data[0].value"
|
v-model="fan01_option.series[0].data[0].value"
|
||||||
@@ -61,21 +61,21 @@
|
|||||||
<div class="option-nav">
|
<div class="option-nav">
|
||||||
<div class="state">
|
<div class="state">
|
||||||
<div :class="{ stopColor: !isStart2 }">
|
<div :class="{ stopColor: !isStart2 }">
|
||||||
<span><img :src="stateIcon2" alt="" />状态:{{ state2 }}</span
|
<span><img :src="stateIcon2" alt=""/>状态:{{ state2 }}</span
|
||||||
><span></span>
|
><span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="switch">
|
<div class="switch">
|
||||||
<div
|
<div
|
||||||
id="auto"
|
id="auto"
|
||||||
:class="{ active: isStart2 }"
|
:class="{ active: isStart2 }"
|
||||||
@click="isStart2 = true"
|
@click="isStart2 = true"
|
||||||
>
|
>
|
||||||
启动
|
启动
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="stop"
|
id="stop"
|
||||||
:class="{ active: !isStart2 }"
|
:class="{ active: !isStart2 }"
|
||||||
@click="isStart2 = false"
|
@click="isStart2 = false"
|
||||||
>
|
>
|
||||||
停止
|
停止
|
||||||
</div>
|
</div>
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
<div class="edit-power">
|
<div class="edit-power">
|
||||||
<span style="color: white">当前功率</span>
|
<span style="color: white">当前功率</span>
|
||||||
<span class="units"
|
<span class="units"
|
||||||
><input
|
><input
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
v-model="fan02_option.series[0].data[0].value"
|
v-model="fan02_option.series[0].data[0].value"
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
import { ref, reactive, onMounted, computed, watch } from "vue";
|
import {ref, reactive, onMounted, computed, watch} from "vue";
|
||||||
|
|
||||||
onMounted(handleOnMounted);
|
onMounted(handleOnMounted);
|
||||||
|
|
||||||
@@ -184,8 +184,7 @@ const option = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
global: false, // 缺省为 false
|
global: false, // 缺省为 false
|
||||||
},
|
}
|
||||||
borderWidth: 10,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
max: 1000,
|
max: 1000,
|
||||||
@@ -295,8 +294,7 @@ const option2 = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
global: false, // 缺省为 false
|
global: false, // 缺省为 false
|
||||||
},
|
}
|
||||||
borderWidth: 10,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
max: 1000,
|
max: 1000,
|
||||||
@@ -340,8 +338,9 @@ const option2 = {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const fan01_option = reactive(option, { deep: true });
|
const fan01_option = reactive(option, {deep: true});
|
||||||
const fan02_option = reactive(option2, { deep: true });
|
const fan02_option = reactive(option2, {deep: true});
|
||||||
|
|
||||||
function handleOnMounted() {
|
function handleOnMounted() {
|
||||||
Echarts_info1 = echarts.init(info1.value);
|
Echarts_info1 = echarts.init(info1.value);
|
||||||
Echarts_info1.setOption(fan01_option);
|
Echarts_info1.setOption(fan01_option);
|
||||||
@@ -363,18 +362,18 @@ let state = computed(() => {
|
|||||||
return isStart.value ? "启动" : "停止";
|
return isStart.value ? "启动" : "停止";
|
||||||
});
|
});
|
||||||
const stateIcon1 = computed(() =>
|
const stateIcon1 = computed(() =>
|
||||||
isStart.value
|
isStart.value
|
||||||
? "/images/fanInfo/blue-state-icon.png"
|
? "/images/fanInfo/blue-state-icon.png"
|
||||||
: "/images/fanInfo/red-state-icon.png"
|
: "/images/fanInfo/red-state-icon.png"
|
||||||
);
|
);
|
||||||
const isStart2 = ref(true);
|
const isStart2 = ref(true);
|
||||||
let state2 = computed(() => {
|
let state2 = computed(() => {
|
||||||
return isStart2.value ? "启动" : "停止";
|
return isStart2.value ? "启动" : "停止";
|
||||||
});
|
});
|
||||||
const stateIcon2 = computed(() =>
|
const stateIcon2 = computed(() =>
|
||||||
isStart2.value
|
isStart2.value
|
||||||
? "/images/fanInfo/blue-state-icon.png"
|
? "/images/fanInfo/blue-state-icon.png"
|
||||||
: "/images/fanInfo/red-state-icon.png"
|
: "/images/fanInfo/red-state-icon.png"
|
||||||
);
|
);
|
||||||
let is = ref("isInput");
|
let is = ref("isInput");
|
||||||
// 功率是否自动
|
// 功率是否自动
|
||||||
@@ -392,12 +391,14 @@ let isSAuto2 = ref("false");
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio__label {
|
::v-deep .el-radio__label {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: MicrosoftYaHei;
|
font-family: MicrosoftYaHei;
|
||||||
color: #38cafb;
|
color: #38cafb;
|
||||||
line-height: 37px;
|
line-height: 37px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fan_info {
|
#fan_info {
|
||||||
height: 521px;
|
height: 521px;
|
||||||
width: 830px;
|
width: 830px;
|
||||||
@@ -413,6 +414,7 @@ let isSAuto2 = ref("false");
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
//clip-path: polygon(0% 0%, 40% 0%, 48% 15%, 100% 15%, 100% 100%, 0% 100%);
|
//clip-path: polygon(0% 0%, 40% 0%, 48% 15%, 100% 15%, 100% 100%, 0% 100%);
|
||||||
color: #2fb0df;
|
color: #2fb0df;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -424,12 +426,15 @@ let isSAuto2 = ref("false");
|
|||||||
color: #38cafb;
|
color: #38cafb;
|
||||||
line-height: 42px;
|
line-height: 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fans {
|
.fans {
|
||||||
height: calc(100% - 30px);
|
height: calc(100% - 30px);
|
||||||
|
|
||||||
.fan-item {
|
.fan-item {
|
||||||
height: 50%;
|
height: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
.echart {
|
.echart {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
@@ -448,6 +453,7 @@ let isSAuto2 = ref("false");
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, 60%);
|
transform: translate(-50%, 60%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fan-name {
|
.fan-name {
|
||||||
width: 39px;
|
width: 39px;
|
||||||
height: 140px;
|
height: 140px;
|
||||||
@@ -459,9 +465,11 @@ let isSAuto2 = ref("false");
|
|||||||
margin-right: 42px;
|
margin-right: 42px;
|
||||||
transform: translateY(33%);
|
transform: translateY(33%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.option-nav {
|
.option-nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
|
||||||
.state {
|
.state {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -472,10 +480,12 @@ let isSAuto2 = ref("false");
|
|||||||
color: #38cafb;
|
color: #38cafb;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
gap: 33px;
|
gap: 33px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
transform: translateY(15%);
|
transform: translateY(15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.switch {
|
.switch {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 160px;
|
width: 160px;
|
||||||
@@ -487,6 +497,7 @@ let isSAuto2 = ref("false");
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #127399;
|
color: #127399;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -506,6 +517,7 @@ let isSAuto2 = ref("false");
|
|||||||
color: #38cafb;
|
color: #38cafb;
|
||||||
line-height: 37px;
|
line-height: 37px;
|
||||||
gap: 33px;
|
gap: 33px;
|
||||||
|
|
||||||
.edit-power {
|
.edit-power {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
@@ -528,9 +540,11 @@ let isSAuto2 = ref("false");
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.units {
|
.units {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.units::after {
|
.units::after {
|
||||||
content: "Hz";
|
content: "Hz";
|
||||||
|
|
||||||
@@ -543,10 +557,12 @@ let isSAuto2 = ref("false");
|
|||||||
color: #38cafb;
|
color: #38cafb;
|
||||||
line-height: 37px;
|
line-height: 37px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: white;
|
color: white;
|
||||||
background: #0f7da9;
|
background: #0f7da9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stopColor {
|
.stopColor {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
<div v-if="drawerRight" class="right-arrow" @click="closeRight"></div>
|
<div v-if="drawerRight" class="right-arrow" @click="closeRight"></div>
|
||||||
<div v-else class="shrink-right" @click="closeRight"></div>
|
<div v-else class="shrink-right" @click="closeRight"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="switch-btn">
|
<div class="switch-btn">
|
||||||
<div class="arrow" @click="previousBtn"></div>
|
<div class="arrow" @click="previousBtn"></div>
|
||||||
<el-carousel height="150px" type="card" ref="tunnelBtn" :autoplay="false">
|
<el-carousel height="150px" type="card" ref="tunnelBtn" :autoplay="false">
|
||||||
@@ -62,8 +61,6 @@
|
|||||||
</el-carousel>
|
</el-carousel>
|
||||||
<div class="arrow right" @click="nextBtn"></div>
|
<div class="arrow right" @click="nextBtn"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -87,7 +84,7 @@ const drawerRight = ref(true)
|
|||||||
const currentSite = ref('松江站')
|
const currentSite = ref('松江站')
|
||||||
const currentUser = ref('admin')
|
const currentUser = ref('admin')
|
||||||
const currentDate = ref(dateFormat())
|
const currentDate = ref(dateFormat())
|
||||||
const tunnelBtn=ref()
|
const tunnelBtn = ref()
|
||||||
const tunnelList = ref([
|
const tunnelList = ref([
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
@@ -130,8 +127,6 @@ const previousBtn = () => {
|
|||||||
}
|
}
|
||||||
const nextBtn = () => {
|
const nextBtn = () => {
|
||||||
tunnelBtn.value.next();
|
tunnelBtn.value.next();
|
||||||
// tunnelList.value.push(tunnelList.value.shift())
|
|
||||||
// console.log('tunnelList.value', tunnelList.value)
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user