-
+
{{ item.facilityName }}
-
-
- {{ item.trafficClose }}次
-
-
+
+
{{ item.trafficRestriction }}次
+
+ {{ item.trafficClose }}次
+
-
-
-
+
@@ -51,42 +62,50 @@ import WgtTitle from "@screen/pages/perception/widgets/title";
import ButtonGradient from "@screen/components/Buttons/ButtonGradient.vue";
import * as echarts from "echarts";
import chartsStatistics from "./assets/charts";
-import { tollStationAnalysis } from "@/api/event/governanceAnalysis"
-import StatsDialogVisible from "./StatsDialogVisible/index.vue"
+import { tollStationAnalysis } from "@/api/event/governanceAnalysis";
+import StatsDialogVisible from "./StatsDialogVisible/index.vue";
import icon from "./assets/icon.svg";
export default {
- name: 'RailWayDay',
+ name: "RailWayDay",
components: {
WgtTitle,
ButtonGradient,
- StatsDialogVisible
+ StatsDialogVisible,
},
data() {
return {
statsDialogVisible: false,
tollBoothsData: [],
maxRestrictionNum: null,
- maxCloseNum: null
- }
+ maxCloseNum: null,
+ };
},
- created() {
-
- },
+ created() {},
methods: {
handleStats() {
- this.statsDialogVisible = true
+ this.statsDialogVisible = true;
},
handleClose() {
- this.statsDialogVisible = false
+ this.statsDialogVisible = false;
},
getTollStationAnalysis() {
return tollStationAnalysis().then((response) => {
- this.tollBoothsData = response.data
- this.maxRestrictionNum = Math.max.apply(Math, this.tollBoothsData.map(item => { return item.trafficRestriction }))
- this.maxCloseNum = Math.max.apply(Math, this.tollBoothsData.map(item => { return item.trafficRestriction }))
- console.log("response", this.maxRestrictionNum, this.maxCloseNum)
+ this.tollBoothsData = response.data;
+ this.maxRestrictionNum = Math.max.apply(
+ Math,
+ this.tollBoothsData.map((item) => {
+ return item.trafficRestriction;
+ })
+ );
+ this.maxCloseNum = Math.max.apply(
+ Math,
+ this.tollBoothsData.map((item) => {
+ return item.trafficRestriction;
+ })
+ );
+ console.log("response", this.maxRestrictionNum, this.maxCloseNum);
// let facilityName = []
// let trafficRestriction = []
// let trafficClose = []
@@ -109,20 +128,18 @@ export default {
// chartsStatistics.yAxis[0].data = facilityName;
// chartsStatistics.series[0].data = trafficClose;
// chartsStatistics.series[1].data = trafficRestriction;
-
- })
- }
+ });
+ },
},
async mounted() {
- await this.getTollStationAnalysis()
+ await this.getTollStationAnalysis();
// const myChart = echarts.init(document.getElementById('auditAnalytics'));
// myChart.setOption(chartsStatistics);
-
},
-}
+};
-
+}
+
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/assets/charts.js
index 02ba49b5..a5b3aa1a 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/assets/charts.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/assets/charts.js
@@ -1,203 +1,225 @@
-
import * as echarts from "echarts";
-let color = ['#4278F8F9', 'transparent','#5372C4F9', 'transparent', '#0046FFF9', 'transparent','#FB9434F9', 'transparent','#854101F9', 'transparent', '#05E599F9', 'transparent','#219F73F9', 'transparent','#7CEDD5F9', 'transparent',];
-let colorend = ['#4278F800', 'transparent', '#5372C400', 'transparent','#0046FF00', 'transparent', '#FB943400', 'transparent','#85410100', 'transparent','#05E59900', 'transparent','#219F7300', 'transparent','#7CEDD500', 'transparent',];
+let color = [
+ "#4278F8F9",
+ "#5372C4F9",
+ "#0046FFF9",
+ "#FB9434F9",
+ "#854101F9",
+ "#05E599F9",
+ "#219F73F9",
+ "#7CEDD5F9",
+];
+let colorend = [
+ "#4278F800",
+ "#5372C400",
+ "#0046FF00",
+ "#FB943400",
+ "#85410100",
+ "#05E59900",
+ "#219F7300",
+ "#7CEDD500",
+];
const datas = [
- {
- name: '客1',
- // num:''
- value: 13456,
- },
- {
- name: '客2',
- value: 13456,
- },
- {
- name: '客3',
- value: 13456,
- },
- {
- name: '专1',
- // num:''
- value: 13456,
- },
- {
- name: '专2',
- value: 13456,
- },
- {
- name: '专3',
- value: 13456,
- },
- {
- name: '货1',
- value: 13456,
- },
- {
- name: '货2',
- value: 13456,
- },
- ];
+ {
+ name: "客1",
+ // num:''
+ value: 13456,
+ },
+ {
+ name: "客2",
+ value: 13456,
+ },
+ {
+ name: "客3",
+ value: 13456,
+ },
+ {
+ name: "专1",
+ // num:''
+ value: 13456,
+ },
+ {
+ name: "专2",
+ value: 13456,
+ },
+ {
+ name: "专3",
+ value: 13456,
+ },
+ {
+ name: "货1",
+ value: 13456,
+ },
+ {
+ name: "货2",
+ value: 13456,
+ },
+];
- let sum = 0;
+let sum = 0;
for (var i of datas) {
- sum += i.value;
+ sum += i.value;
}
var options = {
- tooltip: {
- show:true,
- trigger: 'item',
- formatter: '{a}
{b}: {c} ({d}%)',
- backgroundColor:"#ffffff",
- textStyle:{
- color:"#666"
- }
+ tooltip: {
+ show: true,
+ // trigger: "item",
+ // formatter: "{a}
{b}: {c} ({d}%)",
+ // backgroundColor: "#ffffff",
+ // textStyle: {
+ // color: "#666",
+ // },
+ },
+ legend: {
+ orient: "vertical",
+ right: 40,
+ top: 50,
+ formatter: (name) => {
+ let res = datas.filter((v) => v.name === name);
+ let str = "";
+ str =
+ "{name1|" +
+ res[0].name +
+ "}{name2|" +
+ res[0].value +
+ "}辆" +
+ "{name2|" +
+ (res[0].value / sum) * 100 +
+ "}%";
+ return str;
},
- legend: {
- orient: 'vertical',
- right: 40,
- top:50,
- formatter:(name)=>{
- let res = datas.filter(v => v.name === name);
- let str = ''
- str = '{name1|' + res[0].name + '}{name2|' + res[0].value + '}辆'+ '{name2|' + res[0].value/sum * 100 + '}%'
- return str
+ icon: "circle",
+ itemWidth: 10,
+ itemHeight: 10,
+ itemGap: 20,
+ borderRadius: 50,
+ itemStyle: {},
+ textStyle: {
+ rich: {
+ background: {
+ background: "#DEDEDE",
+ fontSize: 14,
+ align: "left",
+ padding: [0, 10, 20, 0],
},
- icon: 'circle',
- itemWidth:10,
- itemHeight:10,
- itemGap: 20,
- borderRadius:50,
- itemStyle:{
-
+ name1: {
+ color: "#fff",
+ fontSize: 14,
+ Width: 12,
+ align: "left",
+ padding: [0, 0, 0, 10],
},
- textStyle:{
- rich:{
- background: {
- background: '#DEDEDE',
- fontSize: 14,
- align: 'left',
- padding: [0, 10, 20, 0],
- },
- name1: {
- color: '#fff',
- fontSize: 14,
- Width: 12,
- align: 'left',
- padding: [0, 0, 0, 10],
- },
- name2: {
- color: '#37E7FF',
- fontSize: 14,
- align: 'left',
- padding: [0, 0, 0, 10],
- },
- value: {
- color: '#ccc',
- fontSize: 14,
- align: 'left',
- },
- title: {
- // color: '#fff',
- color: "#C60020",
- fontWeight:'bold',
- fontSize: 40,
- }
- },
- color:"#fff",
+ name2: {
+ color: "#37E7FF",
+ fontSize: 14,
+ align: "left",
+ padding: [0, 0, 0, 10],
+ },
+ value: {
+ color: "#ccc",
+ fontSize: 14,
+ align: "left",
+ },
+ title: {
+ // color: '#fff',
+ color: "#C60020",
+ fontWeight: "bold",
+ fontSize: 40,
},
- data: [
- {
- name:'客1',
- backgroundColor:'#5CC5FF',
- }, '客2', '客3', '货1',
- '货2', '专1', '专2', '专3']
+ },
+ color: "#fff",
},
- series: [
- {
- name: '',
- type: 'pie',
- selectedMode: 'single',
- radius: [0, '50%'],
- center:['25%','50%'],
- label: {
- normal: {
- position: 'inner',
- show: true,
- color:'#fff',
- fontSize:14,
- formatter: '{b}\n{c}辆',
- }
- },
- data: [
- {value: 2290, name: '客车\n'},
- {value: 1020, name: '货车\n'},
- {value: 3000, name: '专项车\n'},
- ],
- color:['#708FFF','#FB9434','#219F73']
+ data: [
+ {
+ name: "客1",
+ backgroundColor: "#5CC5FF",
+ },
+ "客2",
+ "客3",
+ "货1",
+ "货2",
+ "专1",
+ "专2",
+ "专3",
+ ],
+ },
+ series: [
+ {
+ name: "",
+ type: "pie",
+ selectedMode: "single",
+ radius: [0, "50%"],
+ center: ["25%", "50%"],
+ label: {
+ normal: {
+ position: "inner",
+ show: true,
+ color: "#fff",
+ fontSize: 14,
+ formatter: "{b}\n{c}辆",
},
- {
- name: '',
- type: 'pie',
- radius: ['60%', '70%'],
- center:['25%','50%'],
- label: {
- position: 'inner',
- show: false
- },
- data: [
- {value: 13456, name: '客1'},
- {value: 2000, name: ''},
- {value: 13456, name: '客2'},
- {value: 2000, name: ''},
- {value: 13456, name: '客3'},
- {value: 2000, name: ''},
- {value: 13456, name: '货1'},
- {value: 2000, name: ''},
- {value: 13456, name: '货2'},
- {value: 2000, name: ''},
- {value: 13456, name: '专1'},
- {value: 2000, name: ''},
- {value: 13456, name: '专2'},
- {value: 2000, name: ''},
- {value: 13456, name: '专3'},
- {value: 2000, name: ''},
- ],
- itemStyle: {
- normal: {
- borderRadius: "5",
- borderWidth:0,
- borderType:"solid",
- borderCap:"round",
- borderJoin:"round",
- borderColor:"#064258",
- borderMiterLimit:"20",
- color: function(params) {
- return {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 1,
- y2: 1,
- colorStops: [{
- offset: 0,
- color: color[params.dataIndex] // 0% 处的颜色
- },
- {
- offset: 1,
- color: colorend[params.dataIndex] // 100% 处的颜色
- }
- ],
- globalCoord: false // 缺省为 false
- }
- }
+ },
+ data: [
+ { value: 2290, name: "客车\n" },
+ { value: 1020, name: "货车\n" },
+ { value: 3000, name: "专项车\n" },
+ ],
+ color: ["#708FFF", "#FB9434", "#219F73"],
+ },
+ {
+ name: "",
+ type: "pie",
+ radius: ["60%", "70%"],
+ center: ["25%", "50%"],
+ label: {
+ position: "inner",
+ show: false,
+ },
+ data: [
+ { value: 13456, name: "客1" },
+ { value: 13456, name: "客2" },
+ { value: 13456, name: "客3" },
+ { value: 13456, name: "货1" },
+ { value: 13456, name: "货2" },
+ { value: 13456, name: "专1" },
+ { value: 13456, name: "专2" },
+ { value: 13456, name: "专3" },
+ ],
+ itemStyle: {
+ normal: {
+ borderRadius: "5",
+ borderWidth: 2,
+ borderType: "solid",
+ borderCap: "round",
+ borderJoin: "round",
+ borderColor: "#064258",
+ borderMiterLimit: "20",
+ color: function (params) {
+ return {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 1,
+ y2: 1,
+ colorStops: [
+ {
+ offset: 0,
+ color: color[params.dataIndex], // 0% 处的颜色
},
- },
- color:['#009688','#63BA79','#FFB800','#F7ED46','#666666']
- }
- ]
-}
-
+ {
+ offset: 1,
+ color: colorend[params.dataIndex], // 100% 处的颜色
+ },
+ ],
+ globalCoord: false, // 缺省为 false
+ };
+ },
+ },
+ },
+ // color: ["#009688", "#63BA79", "#FFB800", "#F7ED46", "#666666"],
+ },
+ ],
+};
export default options;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/congestion/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/congestion/assets/charts.js
index d7c486c9..46e65aa3 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/congestion/assets/charts.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/congestion/assets/charts.js
@@ -75,8 +75,8 @@ var options = {
},
axisLabel: {
show: true,
- color: "#B6E6FF",
- fontSize: 13,
+ color: "#fff",
+ fontSize: 12,
fontFamily: "Source Han Sans CN-Regular",
},
},
@@ -88,15 +88,15 @@ var options = {
min: 0,
splitNumber: 4,
nameTextStyle: {
- color: "#B6E6FF",
- fontSize: 13,
+ color: "#fff",
+ fontSize: 12,
fontFamily: "Source Han Sans CN-Regular",
align: "left",
verticalAlign: "center",
},
axisLabel: {
- fontSize: 13,
- color: "#B6E6FF",
+ fontSize: 12,
+ color: "#fff",
fontFamily: "HarmonyOS Sans-Regular",
formatter: function (value, index) {
return yList[index];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue
index b9fa03dc..387c2a8c 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/heightway/index.vue
@@ -1,188 +1,256 @@
-
+
-
-
起始桩号:k
-
-
-
结束桩号:k
-
-
-
路段方向:
-
-
-
-
-
搜索
-
重置
+
+
起始桩号:k
+
+
+
+
+
结束桩号:k
+
+
+
+
+
路段方向:
+
+
+
+
+
搜索
+
重置
+
+
+
+
路段名称
+
方向
+
状态
+
平均车速
+
总车流量
-
-
-
路段名称
-
方向
-
状态
-
平均车速
-
总车流量
-
-
-
{{ item.name }}
-
{{ item.direction }}
-
{{ item.state }}
-
{{ item.speed }}
-
{{ item.follow }}
-
+
+
{{ item.name }}
+
{{ item.direction }}
+
{{ item.state }}
+
{{ item.speed }}
+
{{ item.follow }}
-
+
+
-
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/assets/charts.js
index 90565066..30676b00 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/assets/charts.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/assets/charts.js
@@ -1,125 +1,137 @@
let chartIcon = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAC4jAAAuIwF4pT92AAAFw2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4wLWMwMDAgNzkuMTcxYzI3ZmFiLCAyMDIyLzA4LzE2LTIyOjM1OjQxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRhe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erxOJYS2JSSngX4lrsNeREfnUg9dRG+o3JEWniDF1Lpd6U2KEdkHoyuwvkM36TmPCxy4+rQdvDKoss7FhugzM8kIjiPED8UuSH310jLYkRaUl9V18gswD7ha5Ebl77ZA4utLY1MOT4sRmKI0fJi+wM9v6Q1QC+Y6wAAAABJRU5ErkJggg==`;
let xdata = {
- value: ['大学城-长清', '长清-孝里', '孝里-平阴北', '平阴北-平阴', '平阴-东平', '东平-梁山东', '梁山东-嘉祥']
+ value: [
+ "大学城-长清",
+ "长清-孝里",
+ "孝里-平阴北",
+ "平阴北-平阴",
+ "平阴-东平",
+ "东平-梁山东",
+ "梁山东-嘉祥",
+ "平阴2-东平",
+ "东平2-梁山东",
+ "梁山东2-嘉祥",
+ ],
};
+let ind = -30;
let sdata = {
- value: [32774, 30067, 28774, 30067, 30021, 30067, 32774]
-}
+ value: [32774, 30067, 28774, 30067, 30021, 30067, 32774, 30021, 30067, 32774],
+};
let dataZoomMove = {
- start: 0,
- end: 4
-}
+ start: 0,
+ end: 4,
+};
var options = {
-
- grid: {
- containLabel: true,
- // 边距自行修改
- bottom: '0%',
- left: '0%',
- top: '20%',
- right: '10%',
+ grid: {
+ containLabel: true,
+ // 边距自行修改
+ bottom: "0%",
+ left: "0%",
+ top: "8%",
+ right: "10%",
+ },
+ xAxis: {
+ type: "value",
+ axisLabel: {
+ show: false,
+ },
+ axisLine: {
+ show: false,
+ },
+ axisTick: {
+ show: false,
+ },
+ splitLine: {
+ show: false,
+ },
+ },
+ yAxis: [
+ {
+ type: "category",
+ data: xdata.value,
+ inverse: true,
+ axisLabel: {
+ fontSize: "14px",
+ inside: true,
+ verticalAlign: "bottom",
+ color: "#fff",
+ padding: 10,
+ margin: -5,
+ formatter: function (value) {
+ let index = xdata.value.indexOf(value);
+ return `{a|Top${(ind += 1)}} {b|${value}}`;
+ },
+ rich: {
+ a: {
+ fontSize: "10px",
+ },
+
+ b: {
+ fontSize: "12px",
+ padding: [0, 0, 0, 70],
+ },
+ },
+ },
+ axisLine: {
+ show: false,
},
- xAxis: {
- type: 'value',
- axisLabel: {
- show: false
- },
- axisLine: {
- show: false,
- },
- axisTick: {
- show: false,
- },
- splitLine: {
- show: false,
- },
+ axisTick: {
+ show: false,
},
- yAxis: [
- {
- type: 'category',
- data: xdata.value,
- inverse: true,
- axisLabel: {
- fontSize: '14px',
- inside: true,
- verticalAlign: 'bottom',
- color:'#fff',
- padding:10,
- margin:-5,
- formatter: function (value) {
- let index = xdata.value.indexOf(value);
- return `{a|Top${index+1}} {b|${value}}`
- },
- rich: {
- a: {
- fontSize: '14px',
- },
-
- b: {
- fontSize: '14px',
- padding: [0, 0, 0, 70],
- }
- },
+ },
+ ],
+ series: [
+ {
+ realtimeSort: true,
+ data: sdata.value,
+ type: "bar",
+ barWidth: 8,
+ itemStyle: {
+ borderRadius: 40,
+ color: {
+ type: "linear",
+ x: 0,
+ y: 0,
+ x2: 1,
+ y2: 0,
+ colorStops: [
+ {
+ offset: 0,
+ color: "#1cd0f000", // 0% 处的颜色
},
- axisLine: {
- show: false,
+ {
+ offset: 1,
+ color: "#1cd0f0", // 100% 处的颜色
},
- axisTick: {
- show: false,
- }
- }
- ],
- series: [
- {
- data: sdata.value,
- type: 'bar',
- barWidth: 8,
- itemStyle: {
- borderRadius: 40,
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 1,
- y2: 0,
- colorStops: [
- {
- offset: 0,
- color: '#1cd0f000', // 0% 处的颜色
- },
- {
- offset: 1,
- color: '#1cd0f0', // 100% 处的颜色
- },
- ],
- global: false, // 缺省为 false
- }
+ ],
+ global: false, // 缺省为 false
+ },
+ },
+ label: {
+ show: true,
+ position: "right",
+ distance: -10,
+ data: sdata,
+ color: "#fff",
+ formatter: (c) => {
+ return `{a|}{b|${c.value}辆}`;
+ },
+ rich: {
+ a: {
+ widht: 20,
+ height: 20,
+ backgroundColor: {
+ image: chartIcon,
},
- label: {
- show: true,
- position: 'right',
- distance: -10,
- data: sdata,
- color:'#fff',
- formatter: (c) => {
- return `{a|}{b|${c.value}辆}`
- },
- rich: {
- a: {
- widht: 20,
- height: 20,
- backgroundColor: {
- image: chartIcon
- },
- },
- b:{
- padding:[0,0,0,10]
- }
- }
- }
- }
- ]
-}
+ },
+ b: {
+ padding: [0, 0, 0, 10],
+ },
+ },
+ },
+ },
+ ],
+};
export default options;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/index.vue
index 86816291..0a55d39a 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/situation/index.vue
@@ -1,87 +1,98 @@
-
+
-
路段车流量Top10
-
断面交通量Top10
+
+ 路段车流量Top10
+
+
+ 断面交通量Top10
+
-
-
+
+
-