Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
刘朋 9 months ago
parent
commit
805d5fc370
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js
  2. 159
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/index.vue
  3. 46
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js
  4. 48
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js
  5. 48
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js

@ -36,7 +36,7 @@ let options = {
grid: { grid: {
left: 0, left: 0,
right: 0, right: 0,
top: "13%", top: "15%",
bottom: "6%", bottom: "6%",
containLabel: true, containLabel: true,
}, },

159
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/index.vue

@ -1,106 +1,114 @@
<template> <template>
<div class='congestion'> <div class="congestion">
<WgtTitle :title="'指标变化情况'"></WgtTitle> <WgtTitle :title="'指标变化情况'"></WgtTitle>
<div class="board"> <div class="board">
<div id="ChangesIndictors" class="keep-ratio"> <div id="ChangesIndictors" class="keep-ratio"></div>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import WgtTitle from '../../../../../widgets/title' import WgtTitle from "../../../../../widgets/title";
import * as echarts from "echarts"; import * as echarts from "echarts";
import chartsStatistics from './assets/charts3'; import chartsStatistics from "./assets/charts3";
export default { export default {
name: 'ChangesIndictors', name: "ChangesIndictors",
components: { components: {
WgtTitle WgtTitle,
}, },
data() { data() {
return { return {
tableData: [{ tableData: [
date: '2023-12-31 13:00:00', {
name: '2640.78m', date: "2023-12-31 13:00:00",
address: 'K100+000-K110+000' name: "2640.78m",
}, { address: "K100+000-K110+000",
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
}, {
date: '2023-12-31 13:00:00',
name: '2640.78m',
address: 'K100+000-K110+000'
},
]
}
}, },
{
created() { date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
}, },
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
{
date: "2023-12-31 13:00:00",
name: "2640.78m",
address: "K100+000-K110+000",
},
],
};
},
created() {},
methods: { methods: {
selectItem(index) { selectItem(index) {
this.selectIndex = index; this.selectIndex = index;
}, },
}, },
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
var myChart = echarts.init(document.getElementById('ChangesIndictors')); var myChart = echarts.init(document.getElementById("ChangesIndictors"));
myChart.setOption(chartsStatistics); myChart.setOption(chartsStatistics);
}); });
}); });
}, },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.showClass { .showClass {
color: #00EBC1; color: #00ebc1;
} }
::v-deep .el-table .cell { ::v-deep .el-table .cell {
@ -109,7 +117,7 @@ export default {
::v-deep .el-table .el-table__header-wrapper th { ::v-deep .el-table .el-table__header-wrapper th {
background-color: #064258 !important; background-color: #064258 !important;
color: #00D1FF; color: #00d1ff;
border-color: #064258 !important; border-color: #064258 !important;
border: 0px !important; border: 0px !important;
font-size: 12px !important; font-size: 12px !important;
@ -128,11 +136,11 @@ export default {
::v-deep .el-table tr:hover td { ::v-deep .el-table tr:hover td {
background: #1b2528 !important; background: #1b2528 !important;
color: #00D1FF; color: #00d1ff;
} }
::v-deep .el-table tr:nth-child(odd) td { ::v-deep .el-table tr:nth-child(odd) td {
background-color: #13272F; background-color: #13272f;
border: 0px !important; border: 0px !important;
} }
@ -168,7 +176,7 @@ export default {
#ChangesIndictors { #ChangesIndictors {
display: inline-flex; display: inline-flex;
height: 240px; height: 280px;
width: 100%; width: 100%;
} }
} }
@ -179,4 +187,3 @@ export default {
width: 100%; width: 100%;
} }
</style> </style>

46
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js

@ -1,20 +1,19 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
var options = { var options = {
color: ["#07A3FB"], color: ["#07A3FB"],
grid: { grid: {
left: "2%", left: "0%",
right: "5%", right: "0%",
bottom: "10%", bottom: "0%",
top: "10%", top: "10%",
containLabel: true, containLabel: true,
}, },
legend: { legend: {
show: false, show: false,
icon: 'rect', icon: "rect",
top: '0%', top: "0%",
right: '5%', right: "5%",
data: ['实时数据'], data: ["实时数据"],
itemWidth: 18, itemWidth: 18,
itemHeight: 5, itemHeight: 5,
itemGap: 30, itemGap: 30,
@ -22,8 +21,8 @@ var options = {
color: "#FFD15C", color: "#FFD15C",
}, },
textStyle: { textStyle: {
fontSize: 12, fontSize: 10,
color: '#fff', color: "#fff",
padding: [0, 0, 0, 10], padding: [0, 0, 0, 10],
}, },
}, },
@ -32,13 +31,13 @@ var options = {
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "#07A3FB", color: "#07A3FB",
fontSize: 12, fontSize: 10,
}, },
}, },
axisLabel: { axisLabel: {
// interval:0, // interval:0,
color: "#BDD8FB", color: "#fff",
fontSize: 12, fontSize: 10,
}, },
axisTick: { axisTick: {
show: false, show: false,
@ -64,8 +63,8 @@ var options = {
max: 800, max: 800,
minInterval: 100, minInterval: 100,
nameTextStyle: { nameTextStyle: {
fontSize: 12, fontSize: 10,
color: "#BDD8FB", color: "#fff",
align: "center", align: "center",
}, },
splitLine: { splitLine: {
@ -82,9 +81,9 @@ var options = {
show: false, show: false,
}, },
axisLabel: { axisLabel: {
fontSize: 12, fontSize: 10,
fontFamily: "Bebas", fontFamily: "Bebas",
color: "#BDD8FB", color: "#fff",
}, },
}, },
series: [ series: [
@ -96,7 +95,7 @@ var options = {
name: "实时数据", // 图例对应类别 name: "实时数据", // 图例对应类别
data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据
lineStyle: { lineStyle: {
color:"#07A3FB" color: "#07A3FB",
}, },
areaStyle: { areaStyle: {
// 区域颜色 // 区域颜色
@ -111,7 +110,7 @@ var options = {
// }, // },
// ]), // ]),
color: { color: {
type: 'linear', type: "linear",
x: 0, //右 x: 0, //右
y: 0, //下 y: 0, //下
x2: 0, //左 x2: 0, //左
@ -119,18 +118,17 @@ var options = {
colorStops: [ colorStops: [
{ {
offset: 0.1, offset: 0.1,
color: '#07A3FB99' // 0% 处的颜色 color: "#07A3FB99", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,
opacity: 0.01, opacity: 0.01,
color: '#07A3FB00' // 100% 处的颜色 color: "#07A3FB00", // 100% 处的颜色
} },
] ],
}, },
}, },
}, },
], ],
}; };

48
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js

@ -1,20 +1,19 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
var options = { var options = {
color: ["#E29E37"], color: ["#E29E37"],
grid: { grid: {
left: "2%", left: "0%",
right: "5%", right: "0%",
bottom: "10%", bottom: "0%",
top: "10%", top: "10%",
containLabel: true, containLabel: true,
}, },
legend: { legend: {
show: false, show: false,
icon: 'rect', icon: "rect",
top: '0%', top: "0%",
right: '5%', right: "5%",
data: ['实时数据'], data: ["实时数据"],
itemWidth: 18, itemWidth: 18,
itemHeight: 5, itemHeight: 5,
itemGap: 30, itemGap: 30,
@ -22,8 +21,8 @@ var options = {
color: "#FFD15C", color: "#FFD15C",
}, },
textStyle: { textStyle: {
fontSize: 12, fontSize: 10,
color: '#fff', color: "#fff",
padding: [0, 0, 0, 10], padding: [0, 0, 0, 10],
}, },
}, },
@ -31,14 +30,14 @@ var options = {
type: "category", type: "category",
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "#E29E37", color: "#fff",
fontSize: 12, fontSize: 10,
}, },
}, },
axisLabel: { axisLabel: {
// interval:0, // interval:0,
color: "#BDD8FB", color: "#fff",
fontSize: 12, fontSize: 10,
}, },
axisTick: { axisTick: {
show: false, show: false,
@ -64,8 +63,8 @@ var options = {
max: 800, max: 800,
minInterval: 100, minInterval: 100,
nameTextStyle: { nameTextStyle: {
fontSize: 12, fontSize: 10,
color: "#BDD8FB", color: "#fff",
align: "center", align: "center",
}, },
splitLine: { splitLine: {
@ -82,9 +81,9 @@ var options = {
show: false, show: false,
}, },
axisLabel: { axisLabel: {
fontSize: 12, fontSize: 10,
fontFamily: "Bebas", fontFamily: "Bebas",
color: "#BDD8FB", color: "#fff",
}, },
}, },
series: [ series: [
@ -96,7 +95,7 @@ var options = {
name: "实时数据", // 图例对应类别 name: "实时数据", // 图例对应类别
data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据
lineStyle: { lineStyle: {
color:"#E29E37" color: "#E29E37",
}, },
areaStyle: { areaStyle: {
// 区域颜色 // 区域颜色
@ -111,7 +110,7 @@ var options = {
// }, // },
// ]), // ]),
color: { color: {
type: 'linear', type: "linear",
x: 0, //右 x: 0, //右
y: 0, //下 y: 0, //下
x2: 0, //左 x2: 0, //左
@ -119,18 +118,17 @@ var options = {
colorStops: [ colorStops: [
{ {
offset: 0.1, offset: 0.1,
color: '#E29E3799' // 0% 处的颜色 color: "#E29E3799", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,
opacity: 0.01, opacity: 0.01,
color: '#E29E3700' // 100% 处的颜色 color: "#E29E3700", // 100% 处的颜色
} },
] ],
}, },
}, },
}, },
], ],
}; };

48
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js

@ -1,20 +1,19 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
var options = { var options = {
color: ["#32BB8A", "#01B3E4"], color: ["#32BB8A", "#01B3E4"],
grid: { grid: {
left: "2%", left: "0%",
right: "5%", right: "0%",
bottom: "10%", bottom: "0%",
top: "10%", top: "10%",
containLabel: true, containLabel: true,
}, },
legend: { legend: {
show: false, show: false,
icon: 'rect', icon: "rect",
top: '0%', top: "0%",
right: '5%', right: "5%",
data: ['实时数据'], data: ["实时数据"],
itemWidth: 18, itemWidth: 18,
itemHeight: 5, itemHeight: 5,
itemGap: 30, itemGap: 30,
@ -22,8 +21,8 @@ var options = {
color: "#FFD15C", color: "#FFD15C",
}, },
textStyle: { textStyle: {
fontSize: 12, fontSize: 10,
color: '#fff', color: "#fff",
padding: [0, 0, 0, 10], padding: [0, 0, 0, 10],
}, },
}, },
@ -31,14 +30,14 @@ var options = {
type: "category", type: "category",
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "#32BB8A", color: "#fff",
fontSize: 12, fontSize: 10,
}, },
}, },
axisLabel: { axisLabel: {
// interval:0, // interval:0,
color: "#BDD8FB", color: "#fff",
fontSize: 12, fontSize: 10,
}, },
axisTick: { axisTick: {
show: false, show: false,
@ -64,8 +63,8 @@ var options = {
max: 800, max: 800,
minInterval: 100, minInterval: 100,
nameTextStyle: { nameTextStyle: {
fontSize: 12, fontSize: 10,
color: "#BDD8FB", color: "#fff",
align: "center", align: "center",
}, },
splitLine: { splitLine: {
@ -82,9 +81,9 @@ var options = {
show: false, show: false,
}, },
axisLabel: { axisLabel: {
fontSize: 12, fontSize: 10,
fontFamily: "Bebas", fontFamily: "Bebas",
color: "#BDD8FB", color: "#fff",
}, },
}, },
series: [ series: [
@ -96,7 +95,7 @@ var options = {
name: "实时数据", // 图例对应类别 name: "实时数据", // 图例对应类别
data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据
lineStyle: { lineStyle: {
color:"#32BB8A" color: "#32BB8A",
}, },
areaStyle: { areaStyle: {
// 区域颜色 // 区域颜色
@ -111,7 +110,7 @@ var options = {
// }, // },
// ]), // ]),
color: { color: {
type: 'linear', type: "linear",
x: 0, //右 x: 0, //右
y: 0, //下 y: 0, //下
x2: 0, //左 x2: 0, //左
@ -119,18 +118,17 @@ var options = {
colorStops: [ colorStops: [
{ {
offset: 0.1, offset: 0.1,
color: '#32BB8A99' // 0% 处的颜色 color: "#32BB8A99", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,
opacity: 0.01, opacity: 0.01,
color: '#32BB8A01' // 100% 处的颜色 color: "#32BB8A01", // 100% 处的颜色
} },
] ],
}, },
}, },
}, },
], ],
}; };

Loading…
Cancel
Save