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()