From cf7e5fa99187039fb8e35cdecba07ffa9f60c027 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Wed, 24 Dec 2025 11:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AE=8C=E6=95=B4=E6=80=A7?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../getIntegrityData/components/charts.vue | 42 +++++++++++++++---- .../area/getIntegrityData/index.vue | 3 +- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/components/charts.vue b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/components/charts.vue index 257640fa..5c1098ba 100644 --- a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/components/charts.vue +++ b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/components/charts.vue @@ -75,11 +75,11 @@ const tableStore = new TableStore({ yData = [] chartsData.value.map((item: any) => { xData.push(item.type) - if (item.single == 0 || item.single == 3.14159) { - yData.push(0) - } else { + // if (item.single == 0 || item.single == 3.14159) { + // yData.push(0) + // } else { yData.push(item.single) - } + //} }) // tableStore.table.data.type const legendColorList = ['#0099CC', '#9A6601', '#CCCCCC', '#FFFFFF'] @@ -111,7 +111,19 @@ const tableStore = new TableStore({ }, tooltip: { - + formatter: function (params: any) { + var tips = '' + for (var i = 0; i < params.length; i++) { + if (params[i].value == 3.14159) { + tips += params[i].name + '
' + tips += params[i].marker + '完整性:暂无数据' + } else { + tips += params[i].name + '
' + tips += params[i].marker + '完整性:' + params[i].value.toFixed(2) + } + } + return tips + } // formatter: function (params: any) { // var tips = `
// ${params[0].name}
` @@ -181,7 +193,21 @@ const tableStore = new TableStore({ // 定制显示(按顺序) color: function (params) { - if (params.value >= 90) { + if (params.value == 3.14159) { + return new echarts.graphic.LinearGradient( + 0, + 1, + 0, + 0, + [ + { + offset: 1, + color: '#ccc' + } + ], + false + ) + } else if (params.value >= 90) { return new echarts.graphic.LinearGradient( 0, 1, @@ -209,7 +235,7 @@ const tableStore = new TableStore({ ], false ) - } else if (params.value > 0.5 && params.value <= 60) { + } else if (params.value > 0 && params.value <= 60) { return new echarts.graphic.LinearGradient( 0, 1, @@ -223,7 +249,7 @@ const tableStore = new TableStore({ ], false ) - } else if (params.value > 0 && params.value <= 0.5) { + } else if (params.value == 0) { return new echarts.graphic.LinearGradient( 0, 1, diff --git a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue index 8369b50a..4bc7af22 100644 --- a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue @@ -56,7 +56,7 @@ @@ -113,6 +113,7 @@ const adminInfo = useAdminInfo() defineOptions({ name: 'harmonic-boot/harmonic/getIntegrityData' }) +const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan' const logRef = ref() const tableRef = ref() const chartsRef = ref()