Browse Source

bug

wangqin
zhoule 12 months ago
parent
commit
0fc3aa6228
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDetailDialog/index.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue
  3. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js
  4. 11
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue
  5. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue
  6. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts3.js
  7. 18
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue
  8. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue
  9. 27
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue
  10. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js
  11. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js
  12. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js
  13. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js
  14. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/dispatch/EventDetailDialog/index.vue

@ -4,7 +4,7 @@
<Form :formList="formList" :dFormData="formData" label-width="100px" /> <Form :formList="formList" :dFormData="formData" label-width="100px" />
<div class="video"> <div class="video">
<Video style="height: 100%;" /> <Video style="height: 100%; width: 600px;" />
</div> </div>
<div class="pic"> <div class="pic">
<Carousel style="flex: 1;height: 80%;" /> <Carousel style="flex: 1;height: 80%;" />

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

@ -4,8 +4,8 @@
<Form :formList="formList" :dFormData="formData" label-width="100px" /> <Form :formList="formList" :dFormData="formData" label-width="100px" />
<div class="video-pic"> <div class="video-pic">
<Video style="height: 100%;" :showHeader="activeName != '-1'" /> <Video style="height: 100%; width: 380px;" :showHeader="activeName != '-1'" />
<Video v-if="activeName != '-1'" style="height: 100%;" /> <Video v-if="activeName != '-1'" style="height: 100%; width: 380px;" />
<Carousel v-else style="flex: 1" :pictures="formData.pictures" /> <Carousel v-else style="flex: 1" :pictures="formData.pictures" />
</div> </div>

4
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js

@ -98,11 +98,11 @@ export const gjSearchFormList = [
options: [ options: [
{ {
key: "1", key: "1",
label: "上行", label: "菏泽方向",
}, },
{ {
key: "3", key: "3",
label: "下行", label: "济南方向",
}, },
], ],
}, },

11
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

@ -84,11 +84,6 @@ const warningSourceMapping = {
6: '非机预警', 6: '非机预警',
7: '气象监测器' 7: '气象监测器'
} }
const directionMapping = {
'1': '上行',
'2': '中',
'3': '下行'
}
const gzDirectionMapping = { const gzDirectionMapping = {
'1': '菏泽方向', '1': '菏泽方向',
'2': '双向', '2': '双向',
@ -195,7 +190,7 @@ export default {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
result.rows.forEach(it => { result.rows.forEach(it => {
it.stringEventSource = it?.warningSource ? warningSourceMapping[it?.warningSource] : ''; it.stringEventSource = it?.warningSource ? warningSourceMapping[it?.warningSource] : '';
it.stringDirection = directionMapping[it.direction] || it.direction; it.stringDirection = gzDirectionMapping[it.direction] || it.direction;
it.startTime = it.warningTime; it.startTime = it.warningTime;
if (it.otherConfig) { if (it.otherConfig) {
@ -309,7 +304,7 @@ export default {
let data = result.data; let data = result.data;
data.stringEventSource = data?.warningSource ? warningSourceMapping[data.warningSource] : ''; data.stringEventSource = data?.warningSource ? warningSourceMapping[data.warningSource] : '';
data.direction = directionMapping[data.direction] || data.direction; data.direction = gzDirectionMapping[data.direction] || data.direction;
data.startTime = data.warningTime; data.startTime = data.warningTime;
data.stringEventState = warningStateMapping[data.warningState]; data.stringEventState = warningStateMapping[data.warningState];
data.stringEventType = warningTypeMapping[data.warningType]; data.stringEventType = warningTypeMapping[data.warningType];
@ -330,7 +325,7 @@ export default {
}).then((result) => { }).then((result) => {
if (result.code != 200) return Message.error(result?.msg); if (result.code != 200) return Message.error(result?.msg);
let data = result.data; let data = result.data;
data.stringDirection = directionMapping[data.direction] || data.direction; data.stringDirection = gzDirectionMapping[data.direction] || data.direction;
this.detailDialogFormData = data; this.detailDialogFormData = data;

6
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue

@ -142,10 +142,10 @@ export default {
context.lineWidth = 1; // 线 context.lineWidth = 1; // 线
// //
drawRoundRect(context, 230, 36, 180, 24, 12, gr); drawRoundRect(context, 230, 35, 180, 24, 12, gr);
drawRoundRect(context, 230, 63, 180, 24, 12, gr); drawRoundRect(context, 230, 63, 180, 24, 12, gr);
drawRoundRect(context, 230, 90, 180, 24, 12, gr); drawRoundRect(context, 230, 91, 180, 24, 12, gr);
drawRoundRect(context, 230, 117, 180, 24, 12, gr); drawRoundRect(context, 230, 119, 180, 24, 12, gr);
}); });
}); });
}, },

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts3.js

@ -39,7 +39,7 @@ let options = {
}, },
}, },
axisLabel: { axisLabel: {
interval: 0, interval: 'auto',
align: "center", align: "center",
rotate: "1", rotate: "1",
margin: "20", margin: "20",

18
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

@ -451,7 +451,7 @@ export default {
this.chart3List = res.data; this.chart3List = res.data;
let data = res.data; let data = res.data;
const maxObject = data const maxObject = data
.filter((it) => it.sectionNumber > 0) .filter((it) => it.sectionNumber >= 0)
.reduce((prev, current) => .reduce((prev, current) =>
current.sectionNumber > prev.sectionNumber ? current : prev current.sectionNumber > prev.sectionNumber ? current : prev
); );
@ -460,7 +460,7 @@ export default {
let values2 = []; let values2 = [];
data.forEach((it) => { data.forEach((it) => {
if (it.sectionNumber > 0) { if (it.sectionNumber >= 0) {
values2.push(it.sectionNumber); values2.push(it.sectionNumber);
zhs.push(it.stakeMarkId); zhs.push(it.stakeMarkId);
@ -530,14 +530,14 @@ export default {
id: it.id, id: it.id,
}); });
}); });
//
if (rows.length > 1) {
this.dataList.push({
title: rows[rows.length - 1].sectionName.split("-")[1],
id: rows[rows.length - 1].id,
});
}
console.log("dataList", this.dataList); console.log("dataList", this.dataList);
// if (rows.length > 0) {
// let lastRoad = rows[rows.length - 1].sectionName.split("-")[1];
// this.dataList.push({
// title: lastRoad,
// id: rows[rows.length - 1].id,
// });
// }
} }
this.searchQuery(); this.searchQuery();
}); });

14
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

@ -216,13 +216,13 @@ export default {
let gr = context.createLinearGradient(230, 0, 360, 0); let gr = context.createLinearGradient(230, 0, 360, 0);
gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.3)"); gr.addColorStop(0, "rgba(92,197,255,0.3)");
drawRoundRect(context, 206, 16, 134, 18, 12, gr); drawRoundRect(context, 202, 16, 134, 18, 10, gr);
drawRoundRect(context, 206, 39, 134, 18, 12, gr); drawRoundRect(context, 202, 39, 134, 18, 10, gr);
drawRoundRect(context, 206, 61, 134, 18, 12, gr); drawRoundRect(context, 202, 61, 134, 18, 10, gr);
drawRoundRect(context, 206, 83, 134, 18, 12, gr); drawRoundRect(context, 202, 83, 134, 18, 10, gr);
drawRoundRect(context, 206, 105, 134, 18, 12, gr); drawRoundRect(context, 202, 105, 134, 18, 10, gr);
drawRoundRect(context, 206, 127, 134, 18, 12, gr); drawRoundRect(context, 202, 127, 134, 18, 10, gr);
drawRoundRect(context, 206, 149, 134, 18, 12, gr); drawRoundRect(context, 202, 149, 134, 18, 10, gr);
context.lineWidth = 1; // 线 context.lineWidth = 1; // 线

27
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/typeAnalysis/index.vue

@ -49,7 +49,7 @@ export default {
data() { data() {
return {}; return {};
}, },
created() {}, created() { },
methods: {}, methods: {},
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
@ -176,11 +176,11 @@ export default {
context.lineWidth = 1; // 线 context.lineWidth = 1; // 线
// //
drawRoundRect(context, 260, 6, 120, 24, 12, gr); drawRoundRect(context, 258, 8, 120, 24, 12, gr);
drawRoundRect(context, 260, 36, 120, 24, 12, gr); drawRoundRect(context, 258, 36, 120, 24, 12, gr);
drawRoundRect(context, 260, 64, 120, 24, 12, gr); drawRoundRect(context, 258, 64, 120, 24, 12, gr);
drawRoundRect(context, 260, 92, 120, 24, 12, gr); drawRoundRect(context, 258, 92, 120, 24, 12, gr);
drawRoundRect(context, 260, 120, 120, 24, 12, gr); drawRoundRect(context, 258, 120, 120, 24, 12, gr);
}); });
}); });
}, },
@ -195,20 +195,15 @@ export default {
height: 200px; height: 200px;
width: 100%; width: 100%;
padding: 0px 20px; padding: 0px 20px;
background: linear-gradient( background: linear-gradient(180deg,
180deg, rgba(6, 66, 88, 0.2) 0%,
rgba(6, 66, 88, 0.2) 0%, #06425888 100%);
#06425888 100%
);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient( border-image: linear-gradient(360deg,
360deg,
rgba(55, 231, 255, 0.1), rgba(55, 231, 255, 0.1),
rgba(55, 231, 255, 0) rgba(55, 231, 255, 0)) 1 1;
)
1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;

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

@ -57,6 +57,12 @@ let options = {
yAxis: [ yAxis: [
{ {
min: 0, min: 0,
name: '(指标)',
nameTextStyle: {
color: "#fff",
fontSize: 10,
align: "right",
},
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "#27B5D7", color: "#27B5D7",

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

@ -5,7 +5,7 @@ var options = {
left: "0%", left: "0%",
right: "8%", right: "8%",
bottom: "0%", bottom: "0%",
top: "10%", top: "20%",
containLabel: true, containLabel: true,
}, },
tooltip: { tooltip: {
@ -44,10 +44,11 @@ var options = {
}, },
yAxis: { yAxis: {
type: "value", type: "value",
name: '(指标)',
nameTextStyle: { nameTextStyle: {
fontSize: 10,
color: "#fff", color: "#fff",
align: "center", fontSize: 10,
align: "right",
}, },
splitLine: { splitLine: {
lineStyle: { lineStyle: {

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

@ -5,7 +5,7 @@ var options = {
left: "0%", left: "0%",
right: "0%", right: "0%",
bottom: "0%", bottom: "0%",
top: "10%", top: "20%",
containLabel: true, containLabel: true,
}, },
tooltip: { tooltip: {
@ -44,10 +44,11 @@ var options = {
}, },
yAxis: { yAxis: {
type: "value", type: "value",
name: '(指标)',
nameTextStyle: { nameTextStyle: {
fontSize: 10,
color: "#fff", color: "#fff",
align: "center", fontSize: 10,
align: "right",
}, },
splitLine: { splitLine: {
lineStyle: { lineStyle: {

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

@ -9,7 +9,7 @@ var options = {
left: "0%", left: "0%",
right: "0%", right: "0%",
bottom: "0%", bottom: "0%",
top: "10%", top: "20%",
containLabel: true, containLabel: true,
}, },
@ -45,6 +45,12 @@ var options = {
}, },
yAxis: { yAxis: {
type: "value", type: "value",
name: '(指标)',
nameTextStyle: {
color: "#fff",
fontSize: 10,
align: "right",
},
splitLine: { splitLine: {
lineStyle: { lineStyle: {
color: "#32BB8A", color: "#32BB8A",

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

@ -101,12 +101,12 @@ var options = {
yAxis: [ yAxis: [
{ {
type: "value", type: "value",
name: "", name: "(指标)",
nameTextStyle: { nameTextStyle: {
color: "#fff", color: "#fff",
fontSize: 10, fontSize: 10,
fontFamily: "Source Han Sans CN-Regular", fontFamily: "Source Han Sans CN-Regular",
align: "left", align: "right",
verticalAlign: "center", verticalAlign: "center",
}, },
axisLabel: { axisLabel: {

Loading…
Cancel
Save