From a3de2600c11922ce0fa454b452df4b8939828b55 Mon Sep 17 00:00:00 2001
From: zhangzhang <1747194829@qq.com>
Date: Fri, 22 Mar 2024 16:47:48 +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
---
ruoyi-ui/src/api/manualWarning/index.js | 27 ++
.../components/channelAnalytics/index.vue | 4 -
.../eventTypeAnalysis/assets/charts.js | 28 +-
.../pages/control/manual/events/index.vue | 1 -
.../components/Eventfiltering/index.vue | 243 ++++++++++++++++++
.../Eventfiltering/trafficIncidentsCharts.js | 95 +++++++
.../trafficIncidentsChartsPie.js | 230 +++++++++++++++++
.../components/Sitefiltering/index.vue | 46 ++++
.../components/Timefiltering/index.vue | 46 ++++
.../pages/control/manual/statistic/index.vue | 69 +++--
10 files changed, 751 insertions(+), 38 deletions(-)
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsChartsPie.js
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue
diff --git a/ruoyi-ui/src/api/manualWarning/index.js b/ruoyi-ui/src/api/manualWarning/index.js
index 89af92ca..59e8dc4c 100644
--- a/ruoyi-ui/src/api/manualWarning/index.js
+++ b/ruoyi-ui/src/api/manualWarning/index.js
@@ -8,3 +8,30 @@ export function perceivedEventsList(data) {
data,
});
}
+
+// 非机预警类型查询
+export function nonAutomaticWarningType(data) {
+ return request({
+ url: "/perceivedEvents/warning/nonAutomaticWarningType",
+ method: "post",
+ data,
+ });
+}
+
+// 非机预警收费站统计
+export function nonAutomaticWarningFacility(data) {
+ return request({
+ url: "/perceivedEvents/warning/nonAutomaticWarningFacility",
+ method: "post",
+ data,
+ });
+}
+
+// 非机预警时间统计
+export function nonAutomaticWarningTimeType(data) {
+ return request({
+ url: "/perceivedEvents/warning/nonAutomaticWarningTimeType",
+ method: "post",
+ data,
+ });
+}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue
index d1f91e4e..c5cbc548 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/channelAnalytics/index.vue
@@ -39,14 +39,10 @@ export default {
}
console.log("total", total);
for (let i = 0; i < data.length; i++) {
- // if (i % 2 === 0) {
- // data.splice(i + 1, 0, newObj)
- // }
if (data[i].name != "") {
nameData.push(data[i].name);
}
}
- console.log(6666, data, nameData);
chartsStatistics.legend.formatter = function (name) {
let tarValue = 0;
for (let i = 0; i < response.data.length; i++) {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js
index 71eb3844..84bca3e3 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/eventTypeAnalysis/assets/charts.js
@@ -12,20 +12,20 @@ let colors = [
"#219F73",
"#7CEDD5",
];
-let colorend = [
- "#4278F8",
- "#5372C4",
- "#0046FF",
- "#FB9434",
- "#854101",
- "#05E599",
- "#219F73",
- "#7CEDD5",
- "#854101",
- "#05E599",
- "#219F73",
- "#7CEDD5",
-];
+// let colorend = [
+// "#4278F8",
+// "#5372C4",
+// "#0046FF",
+// "#FB9434",
+// "#854101",
+// "#05E599",
+// "#219F73",
+// "#7CEDD5",
+// "#854101",
+// "#05E599",
+// "#219F73",
+// "#7CEDD5",
+// ];
let legendData = [];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue
index 6c7c7e3f..f5896c15 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/events/index.vue
@@ -102,7 +102,6 @@ export default {
onRefresh() {},
initData() {
perceivedEventsList(this.searchData).then((res) => {
- console.log("res", res);
if (res.code != 200) return Message.error(res?.msg);
this.total = res.total;
res.rows.forEach((it) => {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue
new file mode 100644
index 00000000..69eeab38
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js
new file mode 100644
index 00000000..215c85d8
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js
@@ -0,0 +1,95 @@
+var options = {
+ title: {
+ // text: '单位/%',
+ top: "0%",
+ left: "0%",
+ textStyle: {
+ fontSize: "10px",
+ fontWeight: 300,
+ color: "#B5C5D4",
+ opacity: 0.8,
+ },
+ },
+ tooltip: {
+ valueFormatter: function (value) {
+ return value + " 起";
+ },
+ },
+ grid: {
+ left: "30px",
+ right: "0%",
+ top: "50px",
+ bottom: "5%",
+ containLabel: true,
+ },
+ xAxis: {
+ type: "category",
+ data: [],
+ axisLine: {
+ lineStyle: {
+ color: "rgba(49, 217, 255, 0.8)",
+ },
+ },
+ axisTick: {
+ show: false,
+ },
+ axisLabel: {
+ color: "#fff",
+ fontSize: "18px",
+ },
+ },
+ yAxis: [
+ {
+ // type: 'value',
+ // min: function (value) {
+ // return value.min*0.9;
+ // },
+ name: "交通事件(起)",
+ nameTextStyle: {
+ color: "#fff",
+ fontSize: 18,
+ align: "center",
+ },
+ type: "value",
+ axisLine: {
+ show: false,
+ lineStyle: {
+ width: 1,
+ color: "#545454",
+ },
+ },
+ splitLine: {
+ lineStyle: {
+ color: "rgba(49, 217, 255, 0.5)",
+ },
+ },
+ axisTick: {
+ show: false,
+ },
+ axisLabel: {
+ color: "#fff",
+ fontSize: "18px",
+ formatter: (value) => {
+ return value;
+ },
+ },
+ },
+ ],
+ series: [
+ {
+ // name: '审限内结案率',
+ data: [5, 10, 20, 30],
+ type: "pictorialBar",
+ symbol: "roundRect",
+ symbolRepeat: true,
+ symbolSize: [13, 4],
+ // symbolOffset: symbolOffset,
+ // barWidth:'40%',
+ itemStyle: {
+ color: "#20E7FF",
+ },
+ },
+ ],
+};
+
+export default options;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsChartsPie.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsChartsPie.js
new file mode 100644
index 00000000..6e352490
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsChartsPie.js
@@ -0,0 +1,230 @@
+let colors = [
+ "#4278F8",
+ "#5372C4",
+ "#0046FF",
+ "#FB9434",
+ "#854101",
+ "#05E599",
+ "#219F73",
+ "#7CEDD5",
+ "#854101",
+ "#05E599",
+ "#219F73",
+ "#7CEDD5",
+];
+var legendData = [];
+
+var options = {
+ title: [
+ {
+ text: "999",
+ top: "25%",
+ textAlign: "center",
+ left: "48%",
+ textStyle: {
+ color: "#ffffff",
+ fontSize: 30,
+ fontFamily: "SourceHanSansCN",
+ },
+ },
+ {
+ text: "总数",
+ top: "38%",
+ textAlign: "center",
+ left: "48%",
+ textStyle: {
+ color: "rgba(242, 252, 253, 0.84)",
+ fontSize: 16,
+ fontFamily: "SourceHanSansCN",
+ },
+ },
+ ],
+ grid: {
+ top: "38%",
+ left: "6%",
+ right: "6%",
+ bottom: "3%",
+ containLabel: true,
+ },
+ tooltip: {
+ show: true,
+ valueFormatter: function (value) {
+ return value + " 起";
+ },
+ },
+ legend: {
+ width: "300px",
+ height: "120px",
+ orient: "vertical",
+ icon: "circle",
+ top: "60%",
+ itemWidth: 10,
+ itemHeight: 10,
+ textStyle: {
+ color: "#ffffff",
+ fontSize: 14,
+ lineHeight: 22,
+ rich: {
+ text: {
+ width: 100,
+ marginLeft: 32,
+ fontSize: 14,
+ },
+ number: {
+ fontSize: 14,
+ color: "#37E7FF",
+ marginLeft: 32,
+ fontWeight: "bold",
+ },
+ unit: {
+ fontSize: 14,
+ },
+ },
+ },
+ data: legendData,
+ pageIconColor: "#fff",
+ pageIconSize: 10,
+ pageTextStyle: {
+ color: "#fff",
+ },
+ type: "scroll",
+ pageButtonPosition: "end",
+ },
+ series: [
+ /** 饼图上刻度 */
+ {
+ type: "gauge",
+ center: ["50%", "35%"],
+ radius: "46%", // 错位调整此处
+ startAngle: 0,
+ endAngle: 360,
+ splitNumber: 52,
+ axisLine: { show: false },
+ splitLine: {
+ // length: 39,
+ length: "2",
+ lineStyle: {
+ width: 5,
+ color: "#5CC5FF",
+ },
+ },
+ axisTick: { show: false },
+ axisLabel: { show: false },
+ },
+ {
+ name: "总数",
+ tooltip: false,
+ type: "gauge",
+ radius: "30%",
+ center: ["50%", "35%"],
+ startAngle: 0,
+ endAngle: 360,
+ axisLine: {
+ lineStyle: {
+ color: [[1, "#0AFFE950"]],
+ width: 1,
+ },
+ },
+ axisTick: {
+ show: false,
+ },
+ splitLine: {
+ show: false,
+ },
+ axisLabel: {
+ show: false,
+ },
+ detail: {
+ show: false,
+ },
+ pointer: {
+ show: false,
+ },
+ progress: {
+ show: true,
+ width: 80,
+ itemStyle: {
+ color: {
+ type: "radial",
+ x: 0.5,
+ y: 0.5,
+ r: 0.5,
+ colorStops: [
+ {
+ offset: 0,
+ color: "rgb(0, 224, 205, 0)",
+ },
+ {
+ offset: 0.7,
+ color: "rgba(0, 224, 205, 0)",
+ },
+ {
+ offset: 1,
+ color: "rgba(10, 255, 233, 0.5)",
+ },
+ ],
+ },
+ },
+ },
+ data: [
+ {
+ value: 100,
+ },
+ ],
+ tooltip: {
+ backgroundColor: "rgba(50,50,50,0)",
+ formatter: " ",
+ borderWidth: 0,
+ textStyle: {
+ textShadowColor: "rgba(50,50,50,0)",
+ },
+ },
+ },
+ {
+ type: "pie",
+ radius: ["40%", "50%"],
+ center: ["50%", "35%"],
+ z: 10,
+ label: {
+ show: false,
+ },
+ data: [],
+ labelLine: {
+ show: false,
+ },
+ 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: colors[params.dataIndex], // 0% 处的颜色
+ },
+ {
+ offset: 1,
+ color: colors[params.dataIndex], // 100% 处的颜色
+ },
+ ],
+ globalCoord: false, // 缺省为 false
+ };
+ },
+ },
+ },
+ },
+ ],
+};
+
+export default options;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue
new file mode 100644
index 00000000..0a48f804
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue
new file mode 100644
index 00000000..0a48f804
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/index.vue
index a8787fbb..6ac52b5e 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/index.vue
@@ -1,42 +1,73 @@
-
-

+
+
-