diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js index 67dc29f8..fb756924 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js @@ -443,7 +443,7 @@ export const tabList = { gridColumn: "3", }, { - label: "车辆数", + label: "路管车辆", key: "vehicleCount", gridColumn: "3", }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue index e904469e..43f8977b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue @@ -296,11 +296,33 @@ export default { cseries1.push(e.data[0].value) cseries2.push(e.data[0].cum) }); + chartOption.xAxis.data = cdata; - chartOption.yAxis[0].name = title + '日计' - chartOption.yAxis[1].name = title + '累计' + chartOption.series[0].name = title + '日计'; + chartOption.series[1].name = title + '累计'; + chartOption.series[0].data = cseries1; chartOption.series[1].data = cseries2; +// 假设 chartOption 已经初始化 + chartOption.tooltip = { + trigger: 'axis', + axisPointer: { + type: 'cross' + }, + formatter: function (params) { + console.log('Params:', params); // 调试信息 + let tooltipText = `
${params[0].name}
`; // 显示日期 + params.forEach(function (item) { + console.log('Item:', item); // 调试信息 + if (item.seriesName === (title + '日计')) { + tooltipText += `
${item.seriesName}: ${item.value}
`; + } else if (item.seriesName === (title + '累计')) { + tooltipText += `
${item.seriesName}: ${item.value}
`; + } + }); + return tooltipText; + } + }; const chartIns = echarts.init(this.$refs.chartRef); chartIns.setOption(chartOption); } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue index 9c29ad77..811afc50 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue @@ -68,7 +68,7 @@ export default { class: "", }, { - text: "能见度检测器", + text: "能见度", type: "arrayRed", value: [], class: ["", ""],