From 12f5d105fe3b20fe2b99fee14f1c1c47c78eede1 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Wed, 21 May 2025 10:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/log/TerminalLog/pushDisplay.vue | 20 ++-- src/views/pqs/panorama/components/map.vue | 4 +- .../runManage/runEvaluate/components/map.vue | 39 +++----- .../runEvaluate/components/region.vue | 36 +++++-- .../runManage/runEvaluate/components/run.vue | 91 +++++++++++++----- .../runEvaluate/components/statistics.vue | 91 ++++++++++++++---- .../components/terminalDetails.vue | 96 +++++++++++++++++-- .../runManage/runEvaluate/components/week.vue | 72 +++++++++----- src/views/pqs/runManage/runEvaluate/index.vue | 30 ++++-- .../monitoringPoint/online/navigation/map.vue | 4 +- src/views/pqs/voltageSags/overview/index.vue | 6 +- src/views/pqs/voltageSags/overview/right.vue | 10 +- 12 files changed, 364 insertions(+), 135 deletions(-) diff --git a/src/views/pqs/business/log/TerminalLog/pushDisplay.vue b/src/views/pqs/business/log/TerminalLog/pushDisplay.vue index 9f08a37d..b090ef9a 100644 --- a/src/views/pqs/business/log/TerminalLog/pushDisplay.vue +++ b/src/views/pqs/business/log/TerminalLog/pushDisplay.vue @@ -57,7 +57,7 @@ const open = async (data: any) => { } const query = () => { val.value += 1 - if (val.value == 6) { + if (val.value == 7) { clearInterval(time.value) time.value = null val.value = 0 @@ -67,16 +67,16 @@ const query = () => { item.text = '推送超时!' } }) - } - - List.value.forEach(async (item: any) => { - getPushResult({ - guid: item.guid - }).then((res: any) => { - item.result = res.data.code - item.text = res.data.result + } else { + List.value.forEach(async (item: any) => { + getPushResult({ + guid: item.guid + }).then((res: any) => { + item.result = res.data.code + item.text = res.data.result + }) }) - }) + } } defineExpose({ open }) diff --git a/src/views/pqs/panorama/components/map.vue b/src/views/pqs/panorama/components/map.vue index 5a13f7eb..e34e71f5 100644 --- a/src/views/pqs/panorama/components/map.vue +++ b/src/views/pqs/panorama/components/map.vue @@ -225,7 +225,7 @@ const inputQuery: any = ref('') const QueryList: any = ref([]) const activeName: any = ref(0) -const zoomMap = ref(9.8) +const zoomMap = ref(8.9) const colorKey = ref('') const showCollapse: any = ref(true) const showWrap: any = ref(false) @@ -341,7 +341,7 @@ const polyline = ref([]) const lineId = ref('') const center = ref({ lng: 122.42588, - lat: 41.210977 + lat: 40.810977 }) const infoWindowPoint = ref({ lng: 0, diff --git a/src/views/pqs/runManage/runEvaluate/components/map.vue b/src/views/pqs/runManage/runEvaluate/components/map.vue index 541af9a4..d0346294 100644 --- a/src/views/pqs/runManage/runEvaluate/components/map.vue +++ b/src/views/pqs/runManage/runEvaluate/components/map.vue @@ -144,7 +144,7 @@ strokeColor="#0e8780" :strokeOpacity="1" :fillColor="item.background || ''" - :fillOpacity="0.5" + :fillOpacity="0.6" > @@ -211,6 +211,12 @@ import { getAssessOverview } from '@/api/device-boot/panorama' import { getRunEvaluate } from '@/api/device-boot/runEvaluate' import { getGridDiagramAreaData } from '@/api/device-boot/panorama' const emit = defineEmits(['changeValue', 'drop', 'show']) +const props = defineProps({ + params: { + type: Object, + default: () => {} + } +}) import mapJson from '@/views/pqs/panorama/components/boundary' const datePickerRef = ref() const height = mainHeight(90) @@ -219,8 +225,7 @@ const dictData = useDictData() const inputQuery: any = ref('') const QueryList: any = ref([]) const activeName: any = ref(0) - -const zoomMap = ref(9.8) +const zoomMap = ref(8.9) const colorKey = ref('') const showCollapse: any = ref(true) const showWrap: any = ref(false) @@ -311,7 +316,7 @@ const polyline = ref([]) const lineId = ref('') const center = ref({ lng: 122.42588, - lat: 41.210977 + lat: 40.810977 }) const infoWindowPoint = ref({ lng: 0, @@ -323,7 +328,7 @@ const initMap = async ({ BMap, map }: any) => {} // 加载点 const addMarkers = async (row?: any, key?: any, num?: any) => { let params = { - deptIndex: deptIndex.value, + deptIndex: props.params.deptIndex, monitorFlag: 2, powerFlag: 2, searchBeginTime: datePickerRef.value.timeValue[0], @@ -487,7 +492,7 @@ const grids = (row: any) => { AreaData.value = [] // 综合评估 - getRunEvaluate({ ...row, deptIndex: deptIndex.value }).then((res: any) => { + getRunEvaluate({ ...row, deptIndex: props.params.deptIndex }).then((res: any) => { console.log('🚀 ~ getRunEvaluate ~ res:', res) AreaData.value = res.data GridDiagramArea() @@ -500,35 +505,19 @@ const radiusPop = (k: any) => { } const GridDiagramArea = () => { boundaryList.value.forEach((item: any) => { - // assessList.value.forEach((y: any) => { - // if (item.orgName == y.name) { - // if (y.score == 3.14159) { - // } else if (y.score > 4.5) { - // item.background = '#33996699' - // } else if (y.score > 4) { - // item.background = '#3399ff99' - // } else if (y.score > 3) { - // item.background = '#ffcc3399' - // } else if (y.score > 2) { - // item.background = '#db088799' - // } else if (y.score > 0) { - // item.background = '#ff000099' - // } - // } - // }) AreaData.value.forEach((k: any, i: any) => { if (item.orgName == k.name) { for (let kk in item) { k[kk] = item[kk] } if (k.evaluate >= 90) { - k.background = '#0fff04' + k.background = '#00b07d' } else if (k.evaluate >= 80) { k.background = '#2b7fd3' } else if (k.evaluate >= 70) { - k.background = '#ffcc33' + k.background = '#ff8c00' } else { - k.background = '#97017e' + k.background = '#c00' } } }) diff --git a/src/views/pqs/runManage/runEvaluate/components/region.vue b/src/views/pqs/runManage/runEvaluate/components/region.vue index 05ecf776..bb7a710f 100644 --- a/src/views/pqs/runManage/runEvaluate/components/region.vue +++ b/src/views/pqs/runManage/runEvaluate/components/region.vue @@ -2,13 +2,16 @@
-
-
{{ item.name }}({{ item.count }}台):
+
+
{{ item.name }} ({{ item.count }}台)
- {{ item.score }}分 + + {{ ratingName(item.score) }} + + {{ item.score }}分
@@ -35,6 +38,9 @@ const info = () => { areaTerminalStatistic(props.params).then(res => { total.value = res.data.reduce((sum, item) => sum + Number(item.count), 0) List.value = res.data + List.value.forEach(item => { + item.flag = true + }) }) // let dataSource = [ // { value: '90', name: '张家口' }, @@ -95,7 +101,7 @@ const info = () => { // ? '#2b7fd3' // : params.value >= 70 // ? '#ffcc33' - // : '#97017e' + // : '#c00' // } // }, // markLine: { @@ -148,13 +154,24 @@ const info = () => { } const ratingColor = (num: number) => { if (num >= 90) { - return '#19A094' + return '#00b07d' } else if (num >= 80) { return '#2b7fd3' } else if (num >= 70) { return '#ff8c00' } else { - return '#97017e' + return '#c00' + } +} +const ratingName = (num: number) => { + if (num >= 90) { + return '优秀' + } else if (num >= 80) { + return '良好' + } else if (num >= 70) { + return '一般' + } else { + return '较差' } } onMounted(() => { @@ -198,12 +215,17 @@ defineExpose({ } } .box { + cursor: pointer; // display: flex; .div { // width: 100px; + font-size: 16px; + span{ + font-size: 14px; + } } } :deep(.el-divider--horizontal) { - margin: 10px 0; + margin: 5px 0; } diff --git a/src/views/pqs/runManage/runEvaluate/components/run.vue b/src/views/pqs/runManage/runEvaluate/components/run.vue index b5e253cf..d1c89520 100644 --- a/src/views/pqs/runManage/runEvaluate/components/run.vue +++ b/src/views/pqs/runManage/runEvaluate/components/run.vue @@ -1,12 +1,22 @@