From c010473d62db38cb7c6dca0c3e5186667f2be5f7 Mon Sep 17 00:00:00 2001 From: zhangzhang <1747194829@qq.com> Date: Wed, 21 Feb 2024 16:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../composeFeatures/assets/charts.js | 1 + .../components/crowding/assets/charts.js | 1 + .../components/saturationMax/assets/charts.js | 1 + .../trafficIndicators/assets/charts.js | 1 + .../trafficIndicators/assets/charts2.js | 42 +++++++++---------- .../components/trafficIndicators/index.vue | 2 +- 6 files changed, 26 insertions(+), 22 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js index e4ed44c1..c87b28ff 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js @@ -10,6 +10,7 @@ var options = { }, tooltip: { show: true, + trigger: "axis", }, xAxis: { type: "category", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js index e0eada52..4582c487 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js @@ -10,6 +10,7 @@ var options = { }, tooltip: { show: true, + trigger: "axis", }, xAxis: { type: "category", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js index 89e0c3ab..9e02403e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js @@ -3,6 +3,7 @@ var options = { color: ["#32BB8A", "#01B3E4"], tooltip: { show: true, + trigger: "axis", }, grid: { left: "0%", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js index a1afc8a7..6e1e4103 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js @@ -61,6 +61,7 @@ nameList.map((item, index) => { var options = { tooltip: { show: true, + trigger: "axis", }, legend: { // orient: 'vertical', diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js index 4e798482..ddfb69f3 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js @@ -16,7 +16,7 @@ let list = [ }, { name: "拥挤度", - max: 88, + max: 108, }, { name: "饱和度", @@ -28,26 +28,26 @@ let data2 = [[60, 60, 65, 60, 70, 40, 80, 63]]; let options = { tooltip: { show: true, - // trigger: "item", - formatter: (data) => { - // console.log(data.seriesIndex); - var tip = '' + data.seriesName + ""; - let tmpData = []; - if (data.seriesIndex === 0) { - tmpData = data1; - } else if (data.seriesIndex === 1) { - tmpData = data2; - } - console.log(tmpData); - data.value.forEach((item, index) => { - // console.log(list[index].name) - tip += "
"; - tip += - "
" + list[index].name + ": " + tmpData[0][index] + "万
"; - tip += "
"; - }); - return tip; - }, + trigger: "radar", + // formatter: (data) => { + // // console.log(data.seriesIndex); + // var tip = '' + data.seriesName + ""; + // let tmpData = []; + // if (data.seriesIndex === 0) { + // tmpData = data1; + // } else if (data.seriesIndex === 1) { + // tmpData = data2; + // } + // console.log(tmpData); + // data.value.forEach((item, index) => { + // // console.log(list[index].name) + // tip += "
"; + // tip += + // "
" + list[index].name + ": " + tmpData[0][index] + "万
"; + // tip += "
"; + // }); + // return tip; + // }, }, grid: { top: "5%", //上边距 diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue index 7f03ac63..3bb0a50a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue @@ -141,7 +141,7 @@
-
上月指标
+
本月指标