联调全景展示 省级 详情页

This commit is contained in:
GGJ
2024-04-27 22:18:58 +08:00
parent ec21d8430f
commit 8117b8673b
14 changed files with 680 additions and 482 deletions

View File

@@ -1,7 +1,6 @@
<template>
<div>
<DatePicker ref="datePickerRef" style="display: none" />
<div class="boxLeft" :class="show ? 'show' : 'noshow'" :style="height">
<div :class="show ? 'show' : 'noshow'">
<div class="boxLeft" :style="height">
<div v-for="(item, i) in list" :style="boxHeight">
<div class="title">
<span>{{ item.title }}</span>
@@ -45,8 +44,8 @@
<el-col :span="12">{{ item.titleT[1] }}</el-col>
</el-row>
<el-row :gutter="20" class="mt4">
<el-col :span="12" style="color: #2dcd28">{{item.list[4].numOne}}</el-col>
<el-col :span="12" style="color: #bd3124">{{item.list[4].numTwo}}</el-col>
<el-col :span="12" style="color: #2dcd28">{{ item.list[4].numOne }}</el-col>
<el-col :span="12" style="color: #bd3124">{{ item.list[4].numTwo }}</el-col>
</el-row>
</div>
</div>
@@ -56,8 +55,8 @@
<img src="@/assets/img/500kv.png" alt="" />
<div class="row">
<el-row>
<el-col :span="12" style="color: #2dcd28">{{item.list[0].numOne}}</el-col>
<el-col :span="12" style="color: #bd3124">{{item.list[0].numTwo}}</el-col>
<el-col :span="12" style="color: #2dcd28">{{ item.list[0].numOne }}</el-col>
<el-col :span="12" style="color: #bd3124">{{ item.list[0].numTwo }}</el-col>
</el-row>
</div>
</div>
@@ -67,8 +66,8 @@
<img src="@/assets/img/220kv.png" />
<div class="row">
<el-row>
<el-col :span="12" style="color: #2dcd28">{{item.list[1].numOne}}</el-col>
<el-col :span="12" style="color: #bd3124">{{item.list[1].numTwo}}</el-col>
<el-col :span="12" style="color: #2dcd28">{{ item.list[1].numOne }}</el-col>
<el-col :span="12" style="color: #bd3124">{{ item.list[1].numTwo }}</el-col>
</el-row>
</div>
</div>
@@ -78,8 +77,8 @@
<img src="@/assets/img/110kv.png" />
<div class="row">
<el-row>
<el-col :span="12" style="color: #2dcd28">{{item.list[2].numOne}}</el-col>
<el-col :span="12" style="color: #bd3124">{{item.list[2].numTwo}}</el-col>
<el-col :span="12" style="color: #2dcd28">{{ item.list[2].numOne }}</el-col>
<el-col :span="12" style="color: #bd3124">{{ item.list[2].numTwo }}</el-col>
</el-row>
</div>
</div>
@@ -89,8 +88,8 @@
<img src="@/assets/img/35kv.png" />
<div class="row">
<el-row>
<el-col :span="12" style="color: #2dcd28">{{item.list[3].numOne}}</el-col>
<el-col :span="12" style="color: #bd3124">{{item.list[3].numTwo}}</el-col>
<el-col :span="12" style="color: #2dcd28">{{ item.list[3].numOne }}</el-col>
<el-col :span="12" style="color: #bd3124">{{ item.list[3].numTwo }}</el-col>
</el-row>
</div>
</div>
@@ -258,7 +257,6 @@
<script setup lang="ts">
import { onMounted, reactive, ref, provide } from 'vue'
import DatePicker from '@/components/form/datePicker/index.vue'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
import { ArrowRight } from '@element-plus/icons-vue'
@@ -272,12 +270,11 @@ const show = ref(false)
const standRef = ref()
const terminalRef = ref()
const pointRef = ref()
const datePickerRef = ref()
const list: any = ref([
{
title: '变电站',
img: new URL(`@/assets/img/BDZ.png`, import.meta.url),
titleT:['总数','告警'],
titleT: ['总数', '告警'],
list: [
{
numOne: 1,
@@ -304,7 +301,7 @@ const list: any = ref([
{
title: '终端统计',
img: new URL(`@/assets/img/ZD.png`, import.meta.url),
titleT:['终端个数','终端在线率'],
titleT: ['终端个数', '终端在线率'],
list: [
{
numOne: 1,
@@ -331,7 +328,7 @@ const list: any = ref([
{
title: '监测点统计',
img: new URL(`@/assets/img/JCD.png`, import.meta.url),
titleT:['总数','在线'],
titleT: ['总数', '在线'],
list: [
{
numOne: 1,
@@ -372,22 +369,14 @@ const open = (e: any) => {
}
const info = (row: any) => {
let form = {
...row,
id: row.orgNo,
deptIndex: row.orgNo,
orgId: row.orgNo,
ids: [],
statisticalType: dictData.getBasicData('Statistical_Type', ['Report_Type'])[0],
isUpToGrid: row.isUpToGrid,
monitorFlag: row.isUpToGrid,
// startTime: datePickerRef.value.timeValue[0],
// searchBeginTime: datePickerRef.value.timeValue[0],
// endTime: datePickerRef.value.timeValue[1],
// searchEndTime: datePickerRef.value.timeValue[1],
startTime:`2023-07-01`,
searchBeginTime: `2023-07-01`,
endTime: `2023-07-30`,
searchEndTime: `2023-07-30`,
type: datePickerRef.value.interval
monitorFlag: row.isUpToGrid
}
formRow.value = form
getSubLineGiveAnAlarm(form).then()
@@ -401,8 +390,8 @@ defineExpose({ info })
<style lang="scss" scoped>
.boxLeft {
background-color: #fff;
width: 400px;
padding: 10px;
width: 100%;
padding: 10px 0px 10px 10px;
font-size: 13px;
overflow: hidden;
}
@@ -431,9 +420,9 @@ defineExpose({ info })
// height: ;
display: flex;
justify-content: space-between;
font-weight: 550;
font-size: 16px;
height: 22px;
line-height: 22px;
line-height: 23px;
padding-left: 5px;
width: 100%;
background-image: linear-gradient(to right, #a4e5da, #fff);
@@ -444,6 +433,7 @@ defineExpose({ info })
font-size: 12px;
cursor: pointer;
}
}
.infoTop {
display: flex;
@@ -481,16 +471,20 @@ defineExpose({ info })
height: 200px;
cursor: pointer;
}
.show {
width: 0px;
padding: 0;
transition: all 0.3s ease;
.boxLeft {
padding: 0;
}
}
.noshow {
width: 400px;
padding: 10px;
width: 25%;
transition: all 0.3s ease;
.boxLeft {
padding: 10px 0px 10px 10px;
}
}
:deep(.el-card) {
--el-card-padding: 10px !important;