|
@@ -22,20 +22,26 @@
|
|
|
<div
|
|
<div
|
|
|
v-for="item in deviceTypeList"
|
|
v-for="item in deviceTypeList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
- class="deviceOption"
|
|
|
|
|
|
|
+ class="deviceOptionRow"
|
|
|
>
|
|
>
|
|
|
- <div class="deviceOption">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="item2 in item"
|
|
|
|
|
+ :key="item2.ID"
|
|
|
|
|
+ class="deviceOption"
|
|
|
|
|
+ >
|
|
|
<div style="width: 35px;height: 35px">
|
|
<div style="width: 35px;height: 35px">
|
|
|
<img
|
|
<img
|
|
|
- :src="item.url"
|
|
|
|
|
- style="width: 35px;height: 35px"
|
|
|
|
|
- alt=""
|
|
|
|
|
|
|
+ :src="item.url"
|
|
|
|
|
+ style="width: 35px;height: 35px"
|
|
|
|
|
+ alt=""
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
<el-text
|
|
<el-text
|
|
|
- style="padding-top: 8px;color: #ffffff"
|
|
|
|
|
- size="small"
|
|
|
|
|
- >{{ item.label + item.value }}</el-text>
|
|
|
|
|
|
|
+ style="padding-top: 8px;color: #ffffff"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ 1/0
|
|
|
|
|
+ </el-text>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -119,7 +125,7 @@ import Map from '@/view/screen/components/map.vue'
|
|
|
import * as echarts from 'echarts'
|
|
import * as echarts from 'echarts'
|
|
|
import { useScreenStore } from '@/pinia/modules/screen'
|
|
import { useScreenStore } from '@/pinia/modules/screen'
|
|
|
import { queryTunnelList } from '@/api/tunnel'
|
|
import { queryTunnelList } from '@/api/tunnel'
|
|
|
-import { queryAllDevices, queryAllDeviceGenres } from '@/api/device'
|
|
|
|
|
|
|
+import { queryAllDeviceGenres } from '@/api/device'
|
|
|
|
|
|
|
|
const useScreen = useScreenStore()
|
|
const useScreen = useScreenStore()
|
|
|
|
|
|
|
@@ -152,9 +158,6 @@ onMounted(() => {
|
|
|
loadingLamp(lampData.envData)
|
|
loadingLamp(lampData.envData)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- queryAllDevices().then(res => {
|
|
|
|
|
- console.log('res', res)
|
|
|
|
|
- })
|
|
|
|
|
queryAllDeviceGenres().then(res => {
|
|
queryAllDeviceGenres().then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
const result = []
|
|
const result = []
|
|
@@ -359,7 +362,7 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
width: 20%;
|
|
width: 20%;
|
|
|
height: 1200px;
|
|
height: 1200px;
|
|
|
.deviceSummary {
|
|
.deviceSummary {
|
|
|
- height: 150px;
|
|
|
|
|
|
|
+ height: 240px;
|
|
|
.boxShape;
|
|
.boxShape;
|
|
|
.deviceSummary_title {
|
|
.deviceSummary_title {
|
|
|
width: 370px;
|
|
width: 370px;
|
|
@@ -372,16 +375,21 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
}
|
|
}
|
|
|
.deviceOptionBox {
|
|
.deviceOptionBox {
|
|
|
width: 370px;
|
|
width: 370px;
|
|
|
- height: 120px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
|
|
+ height: 190px;
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
- .deviceOption {
|
|
|
|
|
- width: 90px;
|
|
|
|
|
|
|
+ .deviceOptionRow {
|
|
|
|
|
+ width: 100%;
|
|
|
height: 60px;
|
|
height: 60px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ .deviceOption {
|
|
|
|
|
+ width: 90px;
|
|
|
|
|
+ height: 60px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ color: #ffffff;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -400,7 +408,7 @@ watch(() => useScreen.currentTunnel, (newValue) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.warn {
|
|
.warn {
|
|
|
- height: 470px;
|
|
|
|
|
|
|
+ height: 400px;
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
.boxShape;
|
|
.boxShape;
|
|
|
.warnTitle {
|
|
.warnTitle {
|