Browse Source

* 更改能源管理大屏的使用的模型

chen.cheng 1 month ago
parent
commit
c805e14095

BIN
ems-ui-cloud/public/models/model-road-pv.glb


+ 0 - 1
ems-ui-cloud/src/views/adapter/cdz/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/gcc/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/gczr/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/hm/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/ljcy/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/nhjc/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/pv/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/adapter/zm/index.vue

@@ -1135,7 +1135,6 @@ export default {
   padding: 10px;
   font-size: 14px;
   height: 200px;
-  width: 350px;
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;

+ 0 - 1
ems-ui-cloud/src/views/largeScreen/device/right.vue

@@ -284,7 +284,6 @@ export default {
     async getDateAlarmType() {
       const {data} = await fetchCntDateAlarmType(
           {
-            startRecTime: DateTool.now(),
             areaCode: this.areaType,
           }
       )

+ 14 - 14
ems-ui-cloud/src/views/largeScreen/three/renderModel.js

@@ -68,10 +68,10 @@ class renderModel {
     this.sharedOutlinePass.edgeStrength = 5.0; // 边框的亮度
     this.sharedOutlinePass.edgeGlow = 0.3; // 光晕[0,1]
     this.sharedOutlinePass.edgeThickness = 1.0; // 边框宽度
-    this.sharedOutlinePass.pulsePeriod = 3; // 呼吸闪烁的速度
-    this.sharedOutlinePass.visibleEdgeColor.set(0x00ff00); // 呼吸显示的颜色
-    this.sharedOutlinePass.hiddenEdgeColor.set(0x000000); // 呼吸消失的颜色
-    this.sharedOutlinePass.clear = true;
+    // this.sharedOutlinePass.pulsePeriod = 3; // 呼吸闪烁的速度
+    // this.sharedOutlinePass.visibleEdgeColor.set(0x00ff00); // 呼吸显示的颜色
+    // this.sharedOutlinePass.hiddenEdgeColor.set(0x000000); // 呼吸消失的颜色
+    // this.sharedOutlinePass.clear = true;
     this.sharedComposer.addPass(this.sharedOutlinePass);
 
     // 创建共享的UnrealBloomPass
@@ -278,9 +278,9 @@ class renderModel {
     TWEEN.update();
 
     // 使用共享的composer进行后处理渲染
-    if (this.isComposerInitialized && this.sharedComposer) {
-      this.sharedComposer.render();
-    }
+    // if (this.isComposerInitialized && this.sharedComposer) {
+    //   this.sharedComposer.render();
+    // }
   }
 
   // 使用动画器不断更新场景
@@ -371,10 +371,10 @@ class renderModel {
           child.material.emissive = child.material.color;
           child.material.emissiveMap = child.material.map;
         }
-        console.log(child.name)
-        if (["solar_cell097001", "solar_cell097002", "solar_cell097003", "solar_cell097004"].includes(child.name)) {
-          selectedObjects.push(child);
-        }
+        // console.log(child.name)
+        // if (["solar_cell097001", "solar_cell097002", "solar_cell097003", "solar_cell097004"].includes(child.name)) {
+        //   selectedObjects.push(child);
+        // }
       });
 
       // 设置相机位置
@@ -386,9 +386,9 @@ class renderModel {
       // 将模型添加到场景中去
       this.scene.add(this.model);
       // 高亮收集的对象
-      if (selectedObjects.length > 0) {
-        this.outlineObj(selectedObjects);
-      }
+      // if (selectedObjects.length > 0) {
+      //   this.outlineObj(selectedObjects);
+      // }
     });
   }