2024-04-26 09:15:20 +08:00
|
|
|
|
<template>
|
2024-04-27 22:18:58 +08:00
|
|
|
|
<div :class="show ? 'show' : 'noshow'">
|
|
|
|
|
|
<div class="boxLeft" :style="height">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<!-- 监测规模 -->
|
|
|
|
|
|
<div class="mb10" :style="`height:250px);`">
|
2024-04-26 09:15:20 +08:00
|
|
|
|
<div class="title">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<span>监测规模</span>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
<div style="display: flex" class="mt2">
|
|
|
|
|
|
<img src="@/assets/img/FGX.png" />
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div style="display: flex">
|
|
|
|
|
|
<div v-for="(item, i) in list" class="cardBox" :style="i == 1 ? 'flex:1.3' : ''">
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
<span style="cursor: pointer" @click="GridDiagram(i)">{{ item.title }}:</span>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<span
|
|
|
|
|
|
:style="`color: ${item.color[0]}; cursor:pointer`"
|
|
|
|
|
|
@click="LookMap(item.list[4].numOneList, item.list[4].numTwoList, 0)"
|
|
|
|
|
|
>
|
2024-05-22 16:54:54 +08:00
|
|
|
|
{{ item.list[4].numOne }}
|
2024-06-19 09:19:10 +08:00
|
|
|
|
</span>
|
2024-05-22 16:54:54 +08:00
|
|
|
|
</div>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 监测规模 列表 -->
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div class="vcl mt5">
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<p
|
|
|
|
|
|
v-for="(item, i) in vList"
|
|
|
|
|
|
:style="i == 0 ? 'width: 60px' : i == 5 ? 'width: 32px' : 'flex:1'"
|
|
|
|
|
|
>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
{{ item }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-for="(item, i) in list" class="vcl">
|
|
|
|
|
|
<p style="width: 60px">
|
|
|
|
|
|
{{ item.title }}
|
|
|
|
|
|
<!-- <span style="position: absolute; font-size: 10px; top: -10px; right: -5px; color: #575757">
|
|
|
|
|
|
详情
|
|
|
|
|
|
</span> -->
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="numOne" @click="LookMap(item.list[0].numOneList, item.list[0].numTwoList, 0)">
|
|
|
|
|
|
{{ item.list[0].numOne }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="numOne" @click="LookMap(item.list[1].numOneList, item.list[1].numTwoList, 0)">
|
|
|
|
|
|
{{ item.list[1].numOne }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="numOne" @click="LookMap(item.list[2].numOneList, item.list[2].numTwoList, 0)">
|
|
|
|
|
|
{{ item.list[2].numOne }}
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p class="numOne" @click="LookMap(item.list[3].numOneList, item.list[3].numTwoList, 0)">
|
|
|
|
|
|
{{ item.list[3].numOne }}
|
|
|
|
|
|
</p>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<p
|
|
|
|
|
|
style="font-size: 12px; width: 32px; cursor: pointer; color: var(--el-color-primary)"
|
|
|
|
|
|
@click.stop="open(i)"
|
|
|
|
|
|
>
|
2024-06-12 16:16:02 +08:00
|
|
|
|
详情
|
|
|
|
|
|
</p>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 监测点指标统计 -->
|
|
|
|
|
|
<div :style="`height:calc(${boxHeight.height} + 50px)`">
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
<span>监测点指标统计</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div style="display: flex" class="mt2">
|
|
|
|
|
|
<img src="@/assets/img/FGX.png" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div :style="`height:calc(${boxHeight.height} + 20px);overflow-y: auto;`">
|
|
|
|
|
|
<div v-for="item in countList">
|
|
|
|
|
|
<div class="title mt5" style="font-weight: 500">
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<!-- <img src="@/assets/img/TJ.png" />
|
|
|
|
|
|
{{ item.title }} -->
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="card-Box mt10"
|
|
|
|
|
|
:style="`height:calc((${boxHeight.height} - 20px )/ 2);`"
|
|
|
|
|
|
v-for="val in item.children"
|
|
|
|
|
|
>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
<span class="line"></span>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<span class="vol">{{ val.title }}</span>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<div class="num num1">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div @click="LookMap(val.numList, [], 0)">
|
2024-06-05 17:01:09 +08:00
|
|
|
|
投运:
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<span>{{ val.num }}</span>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div @click="LookMap(val.onLineNumList, [], 0)">
|
|
|
|
|
|
在线:
|
|
|
|
|
|
<span style="color: #2dcd28">{{ val.onLineNum }}</span>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
数据完整性:
|
|
|
|
|
|
<span style="color: #2b7fd3; cursor: text">{{ val.integrityRate }}%</span>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
在线率:
|
|
|
|
|
|
<span style="color: #2b7fd3; cursor: text">{{ val.integrityRate }}%</span>
|
|
|
|
|
|
</div>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 监测点指标统计 -->
|
2024-06-05 13:28:58 +08:00
|
|
|
|
<div :style="`height:calc(${boxHeight.height} - 55px)`">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div class="title">
|
|
|
|
|
|
<span>监测运行统计</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div style="display: flex" class="mt2">
|
|
|
|
|
|
<img src="@/assets/img/FGX.png" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2024-06-05 13:28:58 +08:00
|
|
|
|
<div :style="`height:calc(${boxHeight.height} - 100px);overflow-y: auto;`" class="BoxA mt10">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div class="card-Box" v-for="item in linList">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span class="line"></span>
|
|
|
|
|
|
<span class="vol">{{ item.title[0] }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="num">
|
2024-05-09 18:00:04 +08:00
|
|
|
|
<div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
{{ item.title[1] }}:
|
|
|
|
|
|
<span style="color: #2dcd28" @click="LookMap(item.lineListOne, [], 0)">
|
|
|
|
|
|
{{ item.lineNumOne || 0 }}
|
|
|
|
|
|
</span>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
{{ item.title[2] }}:
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<span style="color: #a52a2a" @click="LookMap([], item.lineListTwo, 1)">
|
2024-06-04 16:56:57 +08:00
|
|
|
|
{{ item.lineNumTwo || 0 }}
|
|
|
|
|
|
</span>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2024-05-09 18:00:04 +08:00
|
|
|
|
</div>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</div>
|
2024-06-04 16:56:57 +08:00
|
|
|
|
|
2025-12-12 09:26:56 +08:00
|
|
|
|
<img
|
|
|
|
|
|
class="imgL"
|
|
|
|
|
|
:style="show ? 'transform: rotate(0deg);' : 'transform: rotate(180deg);'"
|
|
|
|
|
|
@click="show = !show"
|
|
|
|
|
|
src="@/assets/img/QH.png"
|
|
|
|
|
|
/>
|
2024-06-13 13:32:50 +08:00
|
|
|
|
<div class="legeng">
|
|
|
|
|
|
<div v-for="item in legengList">
|
|
|
|
|
|
<span :style="`background-color: ${item.color};`"></span>
|
|
|
|
|
|
<span>{{ item.title }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-04-26 09:15:20 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 变电站详情 -->
|
|
|
|
|
|
<stand ref="standRef" />
|
|
|
|
|
|
<!-- 终端 -->
|
|
|
|
|
|
<terminal ref="terminalRef" />
|
|
|
|
|
|
<!-- 检测点 -->
|
|
|
|
|
|
<point ref="pointRef" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { onMounted, reactive, ref, provide } from 'vue'
|
|
|
|
|
|
import { useDictData } from '@/stores/dictData'
|
|
|
|
|
|
import { mainHeight } from '@/utils/layout'
|
2024-06-04 16:56:57 +08:00
|
|
|
|
import { ArrowRight, View } from '@element-plus/icons-vue'
|
2024-04-26 09:15:20 +08:00
|
|
|
|
import stand from './details/stand.vue'
|
|
|
|
|
|
import terminal from './details/terminal.vue'
|
|
|
|
|
|
import point from './details/point.vue'
|
2024-05-22 16:54:54 +08:00
|
|
|
|
import {
|
|
|
|
|
|
getSubLineGiveAnAlarm,
|
|
|
|
|
|
getGridDiagramMonitor,
|
|
|
|
|
|
getGridDiagramDev,
|
2024-06-04 16:56:57 +08:00
|
|
|
|
getGridDiagramStatistics,
|
|
|
|
|
|
getGridDiagramRunData
|
2024-05-22 16:54:54 +08:00
|
|
|
|
} from '@/api/device-boot/panorama'
|
|
|
|
|
|
const emit = defineEmits(['LookMap', 'GridDiagram'])
|
2024-04-26 09:15:20 +08:00
|
|
|
|
const dictData = useDictData()
|
|
|
|
|
|
const show = ref(false)
|
|
|
|
|
|
const standRef = ref()
|
|
|
|
|
|
const terminalRef = ref()
|
|
|
|
|
|
const pointRef = ref()
|
|
|
|
|
|
const list: any = ref([
|
|
|
|
|
|
{
|
2024-06-04 16:56:57 +08:00
|
|
|
|
title: '变电站',
|
|
|
|
|
|
color: ['#000', '#bd3124'],
|
|
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
list: [
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-06-04 16:56:57 +08:00
|
|
|
|
title: '监测终端',
|
|
|
|
|
|
color: ['#000', '#2dcd28'],
|
2024-04-26 09:15:20 +08:00
|
|
|
|
list: [
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-06-04 16:56:57 +08:00
|
|
|
|
title: '监测点',
|
|
|
|
|
|
|
|
|
|
|
|
color: ['#000', '#2dcd28', '#bd3124'],
|
2024-04-26 09:15:20 +08:00
|
|
|
|
list: [
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-04-29 16:37:07 +08:00
|
|
|
|
numOne: 0,
|
2024-05-14 18:28:27 +08:00
|
|
|
|
numTwo: 0,
|
|
|
|
|
|
numOneList: [],
|
|
|
|
|
|
numTwoList: []
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
])
|
2024-06-04 16:56:57 +08:00
|
|
|
|
const countList: any = ref([
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '冀北',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2024-06-05 13:28:58 +08:00
|
|
|
|
title: '电网侧监测点',
|
2024-06-04 16:56:57 +08:00
|
|
|
|
num: 0,
|
|
|
|
|
|
onLineNum: 0,
|
|
|
|
|
|
integrityRate: 0
|
|
|
|
|
|
},
|
2024-06-05 13:28:58 +08:00
|
|
|
|
{ title: '非电网侧监测点', num: 0, onLineNum: 0, integrityRate: 0 }
|
2024-06-04 16:56:57 +08:00
|
|
|
|
]
|
2025-12-12 09:26:56 +08:00
|
|
|
|
}
|
2025-12-11 15:03:11 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// title: '上送网公司',
|
|
|
|
|
|
// children: [{ title: '电网侧监测点', num: 0, onLineNum: 0, integrityRate: 0 }]
|
|
|
|
|
|
// }
|
2024-06-04 16:56:57 +08:00
|
|
|
|
])
|
|
|
|
|
|
const linList: any = ref([
|
|
|
|
|
|
{
|
|
|
|
|
|
title: ['运行状态', '合格', '告警']
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: ['通讯状态', '在线', '离线']
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
title: ['数据完整性', '≥90%', '<90%']
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: ['电能质量指标', '未超标', '超标']
|
|
|
|
|
|
}
|
|
|
|
|
|
])
|
2024-06-13 13:32:50 +08:00
|
|
|
|
const legengList = [
|
|
|
|
|
|
{
|
|
|
|
|
|
color: '#00b07d',
|
|
|
|
|
|
title: '优质'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
color: '#3399ff',
|
|
|
|
|
|
title: '良好'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
color: '#ffcc33',
|
|
|
|
|
|
title: '合格'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
color: '#db0887',
|
|
|
|
|
|
title: '较差'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
color: '#ff0000',
|
|
|
|
|
|
title: '极差'
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
2024-06-04 16:56:57 +08:00
|
|
|
|
const vList = ['', '500kV', '220kV', '110kV', '35kV', '']
|
2024-04-26 09:15:20 +08:00
|
|
|
|
const formRow: any = ref({})
|
|
|
|
|
|
const height = mainHeight(30)
|
2024-06-04 16:56:57 +08:00
|
|
|
|
const boxHeight = mainHeight(290, 2)
|
2024-05-09 18:00:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
// 详情
|
|
|
|
|
|
const open = (e: any) => {
|
|
|
|
|
|
if (e == 0) {
|
2024-05-23 17:30:16 +08:00
|
|
|
|
standRef.value.open(formRow.value)
|
2024-06-04 16:56:57 +08:00
|
|
|
|
} else if (e == 1) {
|
2024-05-23 17:30:16 +08:00
|
|
|
|
terminalRef.value.open(formRow.value)
|
2024-06-04 16:56:57 +08:00
|
|
|
|
} else if (e == 2) {
|
|
|
|
|
|
pointRef.value.open(formRow.value)
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-05-22 16:54:54 +08:00
|
|
|
|
const info = async (row: any) => {
|
2024-04-26 09:15:20 +08:00
|
|
|
|
let form = {
|
2024-04-27 22:18:58 +08:00
|
|
|
|
...row,
|
2024-04-26 09:15:20 +08:00
|
|
|
|
id: row.orgNo,
|
|
|
|
|
|
deptIndex: row.orgNo,
|
|
|
|
|
|
orgId: row.orgNo,
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
statisticalType: dictData.getBasicData('Statistical_Type', ['Report_Type'])[0],
|
|
|
|
|
|
isUpToGrid: row.isUpToGrid,
|
2024-05-09 18:00:04 +08:00
|
|
|
|
monitorFlag: row.isUpToGrid == 0 ? null : row.isUpToGrid
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-06-13 13:32:50 +08:00
|
|
|
|
countList.value[0].title = row.areaName
|
2024-04-26 09:15:20 +08:00
|
|
|
|
formRow.value = form
|
2024-06-04 16:56:57 +08:00
|
|
|
|
|
|
|
|
|
|
// 变电站
|
|
|
|
|
|
getSubLineGiveAnAlarm(form).then(res => {
|
|
|
|
|
|
let data = row.isUpToGrid == 1 ? res.data.gwInfo : res.data.info
|
|
|
|
|
|
list.value[0].list = data[0].data
|
|
|
|
|
|
})
|
|
|
|
|
|
// 终端
|
|
|
|
|
|
getGridDiagramDev(form).then(res => {
|
|
|
|
|
|
let data = row.isUpToGrid == 1 ? res.data.gwInfo : res.data.info
|
|
|
|
|
|
list.value[1].list = data[0].data
|
|
|
|
|
|
})
|
2024-04-29 16:37:07 +08:00
|
|
|
|
// 监测点
|
2024-05-22 16:54:54 +08:00
|
|
|
|
await getGridDiagramMonitor(form).then(res => {
|
2024-04-29 16:37:07 +08:00
|
|
|
|
let data = row.isUpToGrid == 1 ? res.data.gwInfo : res.data.info
|
|
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
list.value[2].list = data[0].data.map((item: any) => {
|
2024-04-29 16:37:07 +08:00
|
|
|
|
return {
|
|
|
|
|
|
numOne: item.num,
|
2024-05-16 14:56:04 +08:00
|
|
|
|
numTwo: item.onLineNum,
|
|
|
|
|
|
numOneList: item.numList,
|
|
|
|
|
|
numTwoList: item.onLineNumList
|
2024-04-29 16:37:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
2024-05-22 16:54:54 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
list.value[2].list.push({
|
2024-05-22 16:54:54 +08:00
|
|
|
|
numOne: 0,
|
|
|
|
|
|
numOneList: []
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
2024-06-04 16:56:57 +08:00
|
|
|
|
// 监测点指标统计
|
|
|
|
|
|
getGridDiagramStatistics(form).then(res => {
|
2024-06-05 13:28:58 +08:00
|
|
|
|
countList.value[0].children[0] = { title: '电网侧监测点', ...res.data.data[0] }
|
|
|
|
|
|
countList.value[0].children[1] = { title: '非电网侧监测点', ...res.data.data[1] }
|
2025-12-11 15:03:11 +08:00
|
|
|
|
// countList.value[1].children[0] = { title: '电网侧监测点', ...res.data.gwData[0] }
|
2024-05-22 16:54:54 +08:00
|
|
|
|
})
|
2024-06-04 16:56:57 +08:00
|
|
|
|
// 监测运行统计
|
|
|
|
|
|
getGridDiagramRunData(form).then(res => {
|
|
|
|
|
|
res.data[0].title = ['运行状态', '合格', '告警']
|
|
|
|
|
|
res.data[1].title = ['通讯状态', '在线', '离线']
|
|
|
|
|
|
res.data[2].title = ['数据完整性', '≥90%', '<90%']
|
|
|
|
|
|
res.data[3].title = ['电能质量指标', '未超标', '超标']
|
2024-05-23 17:30:16 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
linList.value = res.data
|
2024-04-29 16:37:07 +08:00
|
|
|
|
})
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-05-14 18:28:27 +08:00
|
|
|
|
// 点击
|
2024-05-16 14:56:04 +08:00
|
|
|
|
const LookMap = (coutList: object, alarmList: object, key?: any) => {
|
|
|
|
|
|
// console.log('🚀 ~ LookMap ~ row:', row)
|
2024-05-14 18:28:27 +08:00
|
|
|
|
let form = {
|
2024-05-16 14:56:04 +08:00
|
|
|
|
coutList: coutList,
|
|
|
|
|
|
alarmList: alarmList
|
2024-05-14 18:28:27 +08:00
|
|
|
|
}
|
2024-05-16 14:56:04 +08:00
|
|
|
|
emit('LookMap', form, key)
|
2024-05-14 18:28:27 +08:00
|
|
|
|
}
|
2024-05-22 16:54:54 +08:00
|
|
|
|
const GridDiagram = (k: any) => {
|
|
|
|
|
|
emit('GridDiagram', k)
|
|
|
|
|
|
}
|
2025-12-12 09:26:56 +08:00
|
|
|
|
onMounted(() => {})
|
2024-05-09 18:00:04 +08:00
|
|
|
|
defineExpose({ info, show })
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.boxLeft {
|
|
|
|
|
|
background-color: #fff;
|
2024-04-27 22:18:58 +08:00
|
|
|
|
width: 100%;
|
2024-06-05 13:28:58 +08:00
|
|
|
|
// padding: 10px 10px 10px 10px;
|
2024-05-09 18:00:04 +08:00
|
|
|
|
border-radius: 5px;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cardBox {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
flex: 1;
|
2024-05-14 18:28:27 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
.card {
|
2024-06-04 16:56:57 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
margin-top: 15px;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
margin-right: 2%;
|
2024-05-22 16:54:54 +08:00
|
|
|
|
display: flex;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
font-size: 16px;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
span:nth-child(2) {
|
|
|
|
|
|
font-weight: 550;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-05-09 18:00:04 +08:00
|
|
|
|
}
|
2024-06-04 16:56:57 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.vcl {
|
|
|
|
|
|
display: flex;
|
2024-06-12 16:16:02 +08:00
|
|
|
|
border-bottom: 2px solid #fff;
|
|
|
|
|
|
background-color: #edededc0;
|
|
|
|
|
|
border-radius: 5px;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
font-size: 14px;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
p {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin: 6px;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.numOne {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
font-weight: 550;
|
|
|
|
|
|
cursor: pointer;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-12 16:16:02 +08:00
|
|
|
|
&:nth-child(1) {
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
&:nth-child(2) {
|
|
|
|
|
|
.numOne {
|
|
|
|
|
|
color: #00bff5;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
&:nth-child(3) {
|
|
|
|
|
|
.numOne {
|
|
|
|
|
|
color: #008000;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
&:nth-child(4) {
|
|
|
|
|
|
.numOne {
|
|
|
|
|
|
color: #0000ff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
// height: ;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
// display: flex;
|
|
|
|
|
|
// justify-content: space-between;
|
2024-05-09 18:00:04 +08:00
|
|
|
|
font-size: 15px;
|
2024-04-27 22:18:58 +08:00
|
|
|
|
line-height: 23px;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
padding-left: 5px;
|
|
|
|
|
|
width: 100%;
|
2024-05-09 18:00:04 +08:00
|
|
|
|
font-weight: 550;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-05-22 16:54:54 +08:00
|
|
|
|
span:nth-child(1) {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
.info {
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
cursor: pointer;
|
2024-05-09 18:00:04 +08:00
|
|
|
|
color: #757575;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
img {
|
|
|
|
|
|
height: 1.2rem;
|
|
|
|
|
|
width: 1.2rem;
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-Box {
|
2024-06-05 13:28:58 +08:00
|
|
|
|
// display: grid;
|
|
|
|
|
|
// grid-template-rows: 1fr 1fr;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
justify-content: space-evenly;
|
|
|
|
|
|
// align-items: center;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
margin: 0 5px 5px;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
background-color: #edededc0;
|
|
|
|
|
|
border-radius: 10px;
|
2024-06-05 13:28:58 +08:00
|
|
|
|
min-height: 60px;
|
2025-12-12 09:26:56 +08:00
|
|
|
|
// max-height: 120px;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.line {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: 0.5rem;
|
|
|
|
|
|
height: 0.5rem;
|
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
|
background: var(--el-color-primary);
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.num {
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
grid-template-columns: 1fr 1fr 1.5fr;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 550;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-12 09:26:56 +08:00
|
|
|
|
.num1 {
|
|
|
|
|
|
grid-template-columns: 1fr 1fr; /* 核心:改为2列,均分宽度 */
|
|
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
|
|
gap: 8px; /* 可选:子元素间距,提升美观度 */
|
|
|
|
|
|
div {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
|
// justify-content: center;
|
|
|
|
|
|
span {
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-06-04 16:56:57 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.BoxA {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
2024-06-05 13:28:58 +08:00
|
|
|
|
grid-template-rows: 1fr 1fr;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-05 13:28:58 +08:00
|
|
|
|
// grid-template-rows: 80px;
|
2024-06-04 16:56:57 +08:00
|
|
|
|
.num {
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
2024-05-22 16:54:54 +08:00
|
|
|
|
}
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-05-09 18:00:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
.imgL {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
top: calc(50% - 80px);
|
|
|
|
|
|
right: -23px;
|
2024-05-09 18:00:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
|
height: 200px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2024-04-27 22:18:58 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
.show {
|
|
|
|
|
|
width: 0px;
|
|
|
|
|
|
transition: all 0.3s ease;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-27 22:18:58 +08:00
|
|
|
|
.boxLeft {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
.noshow {
|
2024-04-27 22:18:58 +08:00
|
|
|
|
width: 25%;
|
2024-04-26 09:15:20 +08:00
|
|
|
|
transition: all 0.3s ease;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-27 22:18:58 +08:00
|
|
|
|
.boxLeft {
|
2024-04-30 11:18:41 +08:00
|
|
|
|
padding: 10px 10px 10px 10px;
|
2024-04-27 22:18:58 +08:00
|
|
|
|
}
|
2024-04-26 09:15:20 +08:00
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
:deep(.el-card) {
|
|
|
|
|
|
--el-card-padding: 10px !important;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-04-26 09:15:20 +08:00
|
|
|
|
:deep(.el-table thead) {
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-05-27 10:37:50 +08:00
|
|
|
|
:deep(.el-dialog__body) {
|
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
|
}
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
.legeng {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
right: -75px;
|
|
|
|
|
|
width: 70px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
height: 120px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
grid-template-rows: auto;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
div {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2024-11-21 08:56:04 +08:00
|
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
|
span:nth-child(1) {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
height: 10px;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
width: 15px;
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-04-26 09:15:20 +08:00
|
|
|
|
</style>
|