From 1097c971cc0bd99054d6f7a3dc952d4874dd7c07 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 23 May 2024 17:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=94=B5=E7=BD=91=E4=B8=80?= =?UTF-8?q?=E5=BC=A0=E5=9B=BE=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../panorama/components/details/stand.vue | 42 +++-- .../panorama/components/line/info.vue | 2 +- .../panorama/components/mapL.vue | 21 +-- .../panorama/components/mapR.vue | 26 ++- .../pqs/qualityInspeection/panorama/index.vue | 14 +- src/views/system/subject/form/index.vue | 173 +++++++++--------- 6 files changed, 155 insertions(+), 123 deletions(-) diff --git a/src/views/pqs/qualityInspeection/panorama/components/details/stand.vue b/src/views/pqs/qualityInspeection/panorama/components/details/stand.vue index c67bb340..21119156 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/details/stand.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/details/stand.vue @@ -16,20 +16,20 @@
污染告警 - +
- 无污染:(0,1] + 无污染:(0 , 1]
- 轻微污染:(1,1.2] + 轻微污染:(1 , 1.2]
- 轻度污染:(1.2,1.6] + 轻度污染:(1.2 , 1.6]
- 中度污染:(1.6,2] + 中度污染:(1.6 , 2]
- 重度污染:(2,+∞) + 重度污染:(2 , +∞)
@@ -120,17 +120,29 @@ const contaminateC = () => { data = res.data.gwInfo } for (let i = 0; i < data.length; i++) { - if (data[i] >= 0 || data[i] < 1) { - a1++ - } else if (data[i] >= 1 || data[i] < 1.2) { - a2++ - } else if (data[i] >= 1.2 || data[i] < 1.6) { - a3++ - } else if (data[i] >= 1.6 || data[i] < 2) { - a4++ - } else if (data[i] >= 2) { + if (data[i] >= 2) { a5++ + } else if (data[i] >= 1.6 && data[i] < 2) { + a4++ + } else if (data[i] >= 1.2 && data[i] < 1.6) { + a3++ + } else if (data[i] >= 1 && data[i] < 1.2) { + a4++ + } else if (data[i] >= 0 && data[i] < 1) { + a1++ } + + // if (data[i] >= 0 || data[i] < 1) { + // a1++ + // } else if (data[i] >= 1 || data[i] < 1.2) { + // a2++ + // } else if (data[i] >= 1.2 || data[i] < 1.6) { + // a3++ + // } else if (data[i] >= 1.6 || data[i] < 2) { + // a4++ + // } else if (data[i] >= 2) { + // a5++ + // } } // console.log('🚀 ~ getPollutionAlarmData ~ a1 / data.length:', a1 / data.length) diff --git a/src/views/pqs/qualityInspeection/panorama/components/line/info.vue b/src/views/pqs/qualityInspeection/panorama/components/line/info.vue index 0ab70609..8c31f881 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/line/info.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/line/info.vue @@ -32,7 +32,7 @@

- 告警明细 + 告警明细 (天)

diff --git a/src/views/pqs/qualityInspeection/panorama/components/mapL.vue b/src/views/pqs/qualityInspeection/panorama/components/mapL.vue index 1d01e930..23bd4385 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/mapL.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/mapL.vue @@ -5,10 +5,7 @@
{{ item.title }} - - {{item.ratioTitle}}: - {{ item.ratio }}% - + {{ item.ratioTitle }}: {{ item.ratio }}% 详情 @@ -166,7 +163,7 @@ const list: any = ref([ new URL(`@/assets/img/JCD-ZX.png`, import.meta.url), new URL(`@/assets/img/JCD-GJ.png`, import.meta.url) ], - ratioTitle:'告警率', + ratioTitle: '告警率', ratio: 0, titleT: ['总数', '在线', '告警'], color: ['#000', '#2dcd28', '#bd3124'], @@ -211,7 +208,7 @@ const list: any = ref([ title: '变电站', img: [new URL(`@/assets/img/BDZ-ZS.png`, import.meta.url), new URL(`@/assets/img/BDZ-GJ.png`, import.meta.url)], color: ['#000', '#bd3124'], - ratioTitle:'告警率', + ratioTitle: '告警率', ratio: 0, titleT: ['总数', '告警'], list: [ @@ -251,7 +248,7 @@ const list: any = ref([ title: '终端', img: [new URL(`@/assets/img/ZD-ZS.png`, import.meta.url), new URL(`@/assets/img/ZD-ZX.png`, import.meta.url)], titleT: ['总数', '在运'], - ratioTitle:'在运率', + ratioTitle: '在运率', ratio: 0, color: ['#000', '#2dcd28'], list: [ @@ -295,11 +292,11 @@ const boxHeight = mainHeight(40, 3) // 详情 const open = (e: any) => { if (e == 0) { - standRef.value.open(formRow.value) - } else if (e == 1) { - terminalRef.value.open(formRow.value) - } else if (e == 2) { pointRef.value.open(formRow.value) + } else if (e == 1) { + standRef.value.open(formRow.value) + } else if (e == 2) { + terminalRef.value.open(formRow.value) } } const info = async (row: any) => { @@ -351,7 +348,7 @@ const info = async (row: any) => { getSubLineGiveAnAlarm(form).then(res => { let data = row.isUpToGrid == 1 ? res.data.gwInfo : res.data.info list.value[1].list = data[0].data - + list.value[1].ratio = ((list.value[1].list[4].numTwo / list.value[1].list[4].numOne) * 100).toFixed(2) }) // 终端 diff --git a/src/views/pqs/qualityInspeection/panorama/components/mapR.vue b/src/views/pqs/qualityInspeection/panorama/components/mapR.vue index 68a006f6..36900b75 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/mapR.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/mapR.vue @@ -4,7 +4,25 @@
- 综合评估 + 综合评估 + + +
+ 优质:(4.5 , 5] +
+ 良好:(4 , 4.5] +
+ 合格:(3 , 4] +
+ 较差:(2 , 3] +
+ 极差:[1 , 2] +
+
+ +
详情 @@ -220,6 +238,7 @@ import { onMounted, reactive, ref, provide } from 'vue' import MyEChart from '@/components/echarts/MyEchart.vue' import { useDictData } from '@/stores/dictData' import { mainHeight } from '@/utils/layout' +import { WarningFilled } from '@element-plus/icons-vue' import { ArrowRight } from '@element-plus/icons-vue' import Evaluate from './details/evaluate.vue' import steadyState from './details/steadyState.vue' @@ -386,6 +405,11 @@ defineExpose({ info, show }) cursor: pointer; color: #757575; } + .WarningFilled { + width: 12px; + font-weight: 500; + cursor: pointer; + } } .TJTop { display: flex; diff --git a/src/views/pqs/qualityInspeection/panorama/index.vue b/src/views/pqs/qualityInspeection/panorama/index.vue index b9ae3de2..10b1d036 100644 --- a/src/views/pqs/qualityInspeection/panorama/index.vue +++ b/src/views/pqs/qualityInspeection/panorama/index.vue @@ -48,7 +48,7 @@