From 5a424d54096a71eac44fa9859fab5c3f19dbb094 Mon Sep 17 00:00:00 2001
From: qiudan <1044775178@qq.com>
Date: Fri, 3 Nov 2023 14:16:02 +0800
Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/VideoWeb/index.html | 3 +-
src/components/target/typeChart.vue | 25 ++++-
src/views/index.vue | 6 +-
src/views/sensorFusion/index.vue | 137 +++++++++++++++++++++-------
4 files changed, 129 insertions(+), 42 deletions(-)
diff --git a/public/VideoWeb/index.html b/public/VideoWeb/index.html
index d826370..0285257 100644
--- a/public/VideoWeb/index.html
+++ b/public/VideoWeb/index.html
@@ -185,7 +185,8 @@
// console.log("图形类型",string)
// console.log("图形名称",string1)
// console.log("图形位置",string2)
- window.parent.getFigure(string,string1,string2);
+ // numberNew 判断2-模拟区,1-画布区
+ window.parent.getFigure(string,string1,string2,1);
}
//新增图形传图形id
function postFigureId(string){
diff --git a/src/components/target/typeChart.vue b/src/components/target/typeChart.vue
index 694ae32..7e321e2 100644
--- a/src/components/target/typeChart.vue
+++ b/src/components/target/typeChart.vue
@@ -68,9 +68,17 @@
style="font-size: 30px; font-weight: bold"
v-if="title == '流量' && dataArr && dataArr.length != 0 && dataArr != undefined"
>
- 流量
- {{
- cycleAccumulateDataArr[0].flow || cycleAccumulateDataArr[0].flow === 0 ? cycleAccumulateDataArr[0].flow : ' - '
+ 流量
+ {{
+ cycleAccumulateDataArr[0].out_flow || cycleAccumulateDataArr[0].out_flow === 0
+ ? cycleAccumulateDataArr[0].out_flow
+ : ' - '
+ }}
+ {{
+ cycleAccumulateDataArr[0].in_flow || cycleAccumulateDataArr[0].in_flow === 0
+ ? cycleAccumulateDataArr[0].in_flow
+ : ' - '
}}
辆
@@ -146,8 +154,15 @@
v-if="title == '流量' && dataArr && dataArr.length != 0 && dataArr != undefined"
>
流量
- {{
- newDataArr[0].flow || newDataArr[0].flow === 0 ? newDataArr[0].flow : ' - '
+ {{
+ newDataArr[0].out_flow || newDataArr[0].out_flow === 0
+ ? newDataArr[0].out_flow
+ : ' - '
+ }}
+ {{
+ newDataArr[0].in_flow || newDataArr[0].in_flow === 0
+ ? newDataArr[0].in_flow
+ : ' - '
}}
辆
diff --git a/src/views/index.vue b/src/views/index.vue
index 10e99f5..117a60f 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1530,7 +1530,7 @@ export default {
const temp = utf8decoder.decode(u8arr); // 将二进制数据转为字符串
var detId = [];
const msgN = JSON.parse(temp);
- //console.log('cycle_accumulate-周期统计实时累计数据主题', msgN);
+ // console.log('cycle_accumulate-周期统计实时累计数据主题', msgN);
this.cycleAccumulateData = msgN;
} catch (error) {}
break;
@@ -1908,11 +1908,13 @@ export default {
}
return type;
},
- getFigureD(item, index, indexNew) {
+ getFigureD(item, index, indexNew,numberNew) {
//console.log('图形类型', item);
//console.log('初始图形名称', index);
this.startFigureName = index;
//console.log('图形位置', indexNew);
+ // numberNew 1-画布区 2-模拟区
+ this.numberNew = numberNew
this.dialogFormVisible = true;
this.switchValue = 0;
this.typeCheckList = [
diff --git a/src/views/sensorFusion/index.vue b/src/views/sensorFusion/index.vue
index be02ef5..485f353 100644
--- a/src/views/sensorFusion/index.vue
+++ b/src/views/sensorFusion/index.vue
@@ -554,7 +554,16 @@
}}
秒
- 秒
+
+
+ {{ i.triggerData.speed > 0 || i.triggerData.speed === 0 ? 'km/h' : 'pix/s' }}
+
+
辆
- {{ node.label }}
-
-
+ {{ node.label }}
+
- {{ node.label }}
-
-
-
+
+ {{ node.label }}
+
+
+
+
+ {{ node.label }}
+
+
+ {{ node.label }}
+
+
+