Browse Source

边坡echarts修改,

develop
王兴琳 2 weeks ago
parent
commit
ebd00a7707
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/data.js
  2. 26
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue

2
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",
},

26
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 = `<div><b>${params[0].name}</b></div>`; //
params.forEach(function (item) {
console.log('Item:', item); //
if (item.seriesName === (title + '日计')) {
tooltipText += `<div>${item.seriesName}: ${item.value}</div>`;
} else if (item.seriesName === (title + '累计')) {
tooltipText += `<div>${item.seriesName}: ${item.value}</div>`;
}
});
return tooltipText;
}
};
const chartIns = echarts.init(this.$refs.chartRef);
chartIns.setOption(chartOption);
}

2
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: ["", ""],

Loading…
Cancel
Save