|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div style="background-color: #0e122d">
|
|
|
+ <div style="background-color: #0e122d;width: 100%;height: 1200px">
|
|
|
<div class="screenTitle">
|
|
|
<img
|
|
|
:src="topBg"
|
|
|
@@ -30,17 +30,24 @@
|
|
|
class="deviceOption"
|
|
|
>
|
|
|
<div style="width: 35px;height: 35px">
|
|
|
- <img
|
|
|
- :src="item.url"
|
|
|
- style="width: 35px;height: 35px"
|
|
|
- alt=""
|
|
|
+ <el-tooltip
|
|
|
+ :content="item2.name"
|
|
|
+ placement="bottom"
|
|
|
+ effect="light"
|
|
|
>
|
|
|
+ <el-icon
|
|
|
+ size="35"
|
|
|
+ color="#1b92fd"
|
|
|
+ >
|
|
|
+ <component :is="item2.iconAddress" />
|
|
|
+ </el-icon>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
<el-text
|
|
|
style="padding-top: 8px;color: #ffffff"
|
|
|
size="small"
|
|
|
>
|
|
|
- 1/0
|
|
|
+ 数量:{{ item2.Count }}
|
|
|
</el-text>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -56,56 +63,69 @@
|
|
|
<span style="padding-left: 10px;">电感检测</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="warn">
|
|
|
- <div class="warnTitle">
|
|
|
- <img
|
|
|
- alt=""
|
|
|
- :src="Warn"
|
|
|
- style="padding-left: 15px"
|
|
|
- >
|
|
|
- <span style="padding-left: 10px;">警告列表</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <!-- <div class="warn">-->
|
|
|
+ <!-- <div class="warnTitle">-->
|
|
|
+ <!-- <img-->
|
|
|
+ <!-- alt=""-->
|
|
|
+ <!-- :src="Warn"-->
|
|
|
+ <!-- style="padding-left: 15px"-->
|
|
|
+ <!-- >-->
|
|
|
+ <!-- <span style="padding-left: 10px;">警告列表</span>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
</div>
|
|
|
<div class="centerBox">
|
|
|
<div style="width: 1200px;height: 600px;border: 3px solid #1b92fd; padding: 2px">
|
|
|
<Map />
|
|
|
</div>
|
|
|
- <div class="centerBox_chart">
|
|
|
- <div class="centerBox_environment">
|
|
|
- <div class="centerBox_environment_title">
|
|
|
- <img
|
|
|
- :src="Setting"
|
|
|
- alt=""
|
|
|
- style="padding-left: 10px"
|
|
|
- >
|
|
|
- <span style="padding-left: 15px;">环境</span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- id="environment"
|
|
|
- class="centerBox_environment_chart"
|
|
|
- style="width: 500px"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div class="centerBox_environment">
|
|
|
- <div class="centerBox_environment_title">
|
|
|
- <img
|
|
|
- :src="Sunlight"
|
|
|
- alt=""
|
|
|
- style="padding-left: 10px"
|
|
|
- >
|
|
|
- <span style="padding-left: 15px;">光照度</span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- id="lamp"
|
|
|
- class="centerBox_environment_chart"
|
|
|
- style="width: 500px"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="rightBox" />
|
|
|
</div>
|
|
|
+ <div class="centerBox_chart">
|
|
|
+ <div class="centerBox_environment">
|
|
|
+ <div class="centerBox_environment_title">
|
|
|
+ <img
|
|
|
+ :src="Setting"
|
|
|
+ alt=""
|
|
|
+ style="padding-left: 10px"
|
|
|
+ >
|
|
|
+ <span style="padding-left: 15px;">环境</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ id="environment"
|
|
|
+ class="centerBox_environment_chart"
|
|
|
+ style="width: 500px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="centerBox_environment">
|
|
|
+ <div class="centerBox_environment_title">
|
|
|
+ <img
|
|
|
+ :src="Sunlight"
|
|
|
+ alt=""
|
|
|
+ style="padding-left: 10px"
|
|
|
+ >
|
|
|
+ <span style="padding-left: 15px;">光照度</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ id="lamp"
|
|
|
+ class="centerBox_environment_chart"
|
|
|
+ style="width: 500px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="centerBox_environment"
|
|
|
+ >
|
|
|
+ <div class="centerBox_environment_title">
|
|
|
+ <img
|
|
|
+ :src="Power"
|
|
|
+ alt=""
|
|
|
+ style="padding-left: 10px"
|
|
|
+ >
|
|
|
+ <span style="padding-left: 15px;">电感</span>
|
|
|
+ </div>
|
|
|
+ <inductance-chart />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -126,16 +146,9 @@ import * as echarts from 'echarts'
|
|
|
import { useScreenStore } from '@/pinia/modules/screen'
|
|
|
import { queryTunnelList } from '@/api/tunnel'
|
|
|
import { queryAllDeviceGenres } from '@/api/device'
|
|
|
-
|
|
|
+import inductanceChart from '@/view/screen/components/inductanceChart.vue'
|
|
|
const useScreen = useScreenStore()
|
|
|
|
|
|
-// const deviceList = reactive([
|
|
|
-// { url: environments, label: '环境:', value: '1/0' },
|
|
|
-// { url: fourWays, label: '四路:', value: '1/0' },
|
|
|
-// { url: inductance, label: '电感:', value: '1/0' },
|
|
|
-// { url: singleLamp, label: '单灯:', value: '1/0' },
|
|
|
-// ])
|
|
|
-
|
|
|
const deviceTypeList = reactive([])
|
|
|
|
|
|
const condition = {
|
|
|
@@ -354,13 +367,13 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
}
|
|
|
.screen{
|
|
|
width: 100%;
|
|
|
- height: 1200px;
|
|
|
+ height: 600px;
|
|
|
background-color: #0e122d;
|
|
|
display: flex;
|
|
|
margin-top: 20px;
|
|
|
.leftBox {
|
|
|
width: 20%;
|
|
|
- height: 1200px;
|
|
|
+ height: 600px;
|
|
|
.deviceSummary {
|
|
|
height: 240px;
|
|
|
.boxShape;
|
|
|
@@ -396,6 +409,7 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
.inductance {
|
|
|
height: 200px;
|
|
|
margin-top: 20px;
|
|
|
+ position: relative;
|
|
|
.boxShape;
|
|
|
.inductanceTitle {
|
|
|
width: 370px;
|
|
|
@@ -424,43 +438,54 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
}
|
|
|
.centerBox {
|
|
|
width: 60%;
|
|
|
- height: 1200px;
|
|
|
+ height: 600px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
- .centerBox_chart {
|
|
|
- width: 1200px;
|
|
|
- height: 220px;
|
|
|
- margin-top: 40px;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- border: 1px solid rgba(27,146,253,0.5);
|
|
|
- background: rgba(50, 72, 106, 0.2);
|
|
|
- }
|
|
|
- .centerBox_environment{
|
|
|
- width: 500px;
|
|
|
- height: 220px;
|
|
|
- position: relative;
|
|
|
- .centerBox_environment_title {
|
|
|
- width: 500px;
|
|
|
- height: 50px;
|
|
|
- .title;
|
|
|
- img {
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
- }
|
|
|
- }
|
|
|
- .centerBox_environment_chart {
|
|
|
- height: 250px;
|
|
|
- position: absolute;
|
|
|
- top: 5px;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
.rightBox {
|
|
|
width: 20%;
|
|
|
- height: 1200px;
|
|
|
+ height: 600px;
|
|
|
}
|
|
|
}
|
|
|
+.centerBox_chart {
|
|
|
+ width: 2000px;
|
|
|
+ height: 220px;
|
|
|
+ margin-top: 40px;
|
|
|
+ margin-left: 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ border: 1px solid rgba(27,146,253,0.5);
|
|
|
+ background: rgba(50, 72, 106, 0.2);
|
|
|
+}
|
|
|
+.centerBox_environment{
|
|
|
+ width: 500px;
|
|
|
+ height: 220px;
|
|
|
+ position: relative;
|
|
|
+ .centerBox_environment_title {
|
|
|
+ width: 500px;
|
|
|
+ height: 50px;
|
|
|
+ .title;
|
|
|
+ img {
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .centerBox_environment_chart {
|
|
|
+ height: 250px;
|
|
|
+ position: absolute;
|
|
|
+ top: 5px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.el-popper.is-customized {
|
|
|
+ /* Set padding to ensure the height is 32px */
|
|
|
+ padding: 6px 12px;
|
|
|
+ background: #409eff;
|
|
|
+}
|
|
|
+
|
|
|
+.el-popper.is-customized .el-popper__arrow::before {
|
|
|
+ background: #409eff;
|
|
|
+ right: 0;
|
|
|
+}
|
|
|
</style>
|
|
|
|