Browse Source

感知事件检测

wangqin
zhoule 10 months ago
parent
commit
36e706bdad
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue
  2. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/progressBar.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/assets/charts.js

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

@ -169,14 +169,14 @@ export default {
}, },
methods: { methods: {
selectProgress(item) { selectProgress(item, index) {
this.selectId = item.id; this.selectId = index;
}, },
onReset() { onReset() {
this.area = '1'; this.area = '1';
this.year = "year"; this.year = "year";
this.dateTime = '2024'; this.dateTime = '2024';
this.selectId = 1; this.selectId = 0;
}, },
searchQuery() { searchQuery() {
let dateTime = this.dateTime; let dateTime = this.dateTime;

10
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/progressBar.vue

@ -1,12 +1,18 @@
<template> <template>
<div class='congestion'> <div class='congestion'>
<div :style="{ width: dataList.length * 300 }"> <div :style="{ width: dataList.length * 300 }">
<div :class="selectIndex == index ? selectLine < 1 ? 'item action Abefore' : 'item action Aafter' : selectIndex + selectLine == index ? selectLine < 1 ? 'item action Aafter' : 'item action Abefore' : 'item'"
<div :class="selectIndex == index ?
(selectLine < 1 ? 'item action Abefore' : 'item action Aafter') :
(selectIndex + selectLine == index ?
(selectLine < 1 ? 'item action Aafter' : 'item action Abefore') : 'item')"
v-for="(item, index) in dataList" :key="index"> v-for="(item, index) in dataList" :key="index">
<i class="after" @click="selectItem(index, -1, dataList[index - 1])"></i> <i class="after" @click="selectItem(index, -1, dataList[index - 1])"></i>
<i class="before" @click="selectItem(index, +1, item)"></i> <i class="before" @click="selectItem(index, +1, item)"></i>
<span></span> <span></span>
<div>{{ item.title }}</div> <div>{{ item.title }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -44,7 +50,7 @@ export default {
this.selectIndex = index; this.selectIndex = index;
this.selectLine = num; this.selectLine = num;
if (item) if (item)
this.$emit("selectItem", item); this.$emit("selectItem", item, index);
} }
}, },
mounted() { mounted() {

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/assets/charts.js

@ -70,7 +70,7 @@ var options = {
backgroundColor: "#ffffff", backgroundColor: "#ffffff",
}, },
title: { //圆环中间内容 title: { //圆环中间内容
text: '{tb|1}', text: '{tb|100}',
subtext: '{zb|总数}', subtext: '{zb|总数}',
left: "22%", left: "22%",
top: "40%", top: "40%",

Loading…
Cancel
Save