From c28eba6e1f32eee7f55904d35739f0f33a5d2ded Mon Sep 17 00:00:00 2001 From: hzz Date: Thu, 23 Jan 2025 16:51:17 +0800 Subject: [PATCH] update --- src/router/index.js | 12 +- src/utils/threejs.ts | 2 +- .../screen/R_D_Environment1/component/Lr3.vue | 13 +- .../screen/R_D_Environment1/component/Lr4.vue | 1 + .../R_D_Environment1/component/proge.vue | 121 ++++++++++++++++++ src/views/screen/R_D_Environment1/index.vue | 6 +- 6 files changed, 143 insertions(+), 12 deletions(-) create mode 100644 src/views/screen/R_D_Environment1/component/proge.vue diff --git a/src/router/index.js b/src/router/index.js index 6da0ad3..a659dd6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -77,12 +77,12 @@ export const constantRoutes = [ hidden: true, redirect: 'noredirect', children: [ - { - path: "/screen/R_D_Environment", - name: "R_D_Environment", - component: () => import("../views/screen/R_D_Environment/index.vue"), - hidden: true - }, + // { + // path: "/screen/R_D_Environment", + // name: "R_D_Environment", + // component: () => import("../views/screen/R_D_Environment/index.vue"), + // hidden: true + // }, { path: "/screen/R_D_Environment1", name: "R_D_Environment1", diff --git a/src/utils/threejs.ts b/src/utils/threejs.ts index 6302f1b..ddc607d 100644 --- a/src/utils/threejs.ts +++ b/src/utils/threejs.ts @@ -32,7 +32,7 @@ export function findChildren (object3D: Object3D, callback: (obj: Object3D) => b export function checkNameIncludes (obj: Object3D, str: string): boolean { if (obj.name.includes(str)) { - console.log(obj.name); + // console.log(obj.name); return true; } else { diff --git a/src/views/screen/R_D_Environment1/component/Lr3.vue b/src/views/screen/R_D_Environment1/component/Lr3.vue index 7e50203..6bcd3b4 100644 --- a/src/views/screen/R_D_Environment1/component/Lr3.vue +++ b/src/views/screen/R_D_Environment1/component/Lr3.vue @@ -14,7 +14,8 @@
{{ prop.public_list.devName }}
-
{{ prop.public_list.data }} dB
+
{{ + prop.public_list.data }} dB
@@ -56,7 +57,14 @@ const prop = defineProps({ }, }); - +//检测是否超标 +function checkCb(item) { + if (item.data > 85) { + return '#FF0000' + } else { + return '#2affff' + } +} @@ -103,6 +111,7 @@ const prop = defineProps({ .label-right { color: #2affff; + .value { //color: #fff; } diff --git a/src/views/screen/R_D_Environment1/component/Lr4.vue b/src/views/screen/R_D_Environment1/component/Lr4.vue index 8371195..1de9c2e 100644 --- a/src/views/screen/R_D_Environment1/component/Lr4.vue +++ b/src/views/screen/R_D_Environment1/component/Lr4.vue @@ -40,6 +40,7 @@ const options = computed(() => { bottom: '3%', containLabel: true }, + backgroundColor: 'transparent', xAxis: { type: 'category', boundaryGap: false, diff --git a/src/views/screen/R_D_Environment1/component/proge.vue b/src/views/screen/R_D_Environment1/component/proge.vue new file mode 100644 index 0000000..e2bd78d --- /dev/null +++ b/src/views/screen/R_D_Environment1/component/proge.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/src/views/screen/R_D_Environment1/index.vue b/src/views/screen/R_D_Environment1/index.vue index 2476d7d..a6c2b8a 100644 --- a/src/views/screen/R_D_Environment1/index.vue +++ b/src/views/screen/R_D_Environment1/index.vue @@ -427,9 +427,9 @@ onMounted(() => { } - if (deltaY.value >= 0) { - deltaY.value = 0 - } + // if (deltaY.value >= 0) { + // deltaY.value = 0 + // } }, { passive: false }); });