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 = `