瀏覽代碼

1. 补连塔风窗模型双道模型替换
2. 安全监控修改跳转按钮文字

hongrunxia 1 月之前
父節點
當前提交
db6b7c8e63

+ 1 - 1
src/views/vent/monitorManager/safetyMonitor/index.vue

@@ -181,7 +181,7 @@
       </div>
       <div class="export-btn"><div class="btn btn1" @click="exportData">一键导出</div></div>
       <div class="export-btn m-l-20px"
-        ><div class="btn btn2" @click="goSystem"><send-outlined />安全控系统</div></div
+        ><div class="btn btn2" @click="goSystem"><send-outlined />安全控系统</div></div
       >
     </div>
   </div>

+ 10 - 8
src/views/vent/monitorManager/windowMonitor/shuangdaoFcBlt.threejs.ts

@@ -155,19 +155,21 @@ class doubleWindow {
   initAnimation() {
     const meshArr01: THREE.Object3D[] = [];
     const meshArr02: THREE.Object3D[] = [];
-    const fcObj = this.group.getObjectByName('sdFc')?.getObjectByName('FengChuang_2')?.getObjectByName('FengChuang');
-    const leftObjNames = ['FCshanye03', 'FCshanye04'];
-    const rightObjNames = ['FCshanye05', 'FCshanye06'];
+    const fc = this.group.getObjectByName('sdFc')?.getObjectByName('FengChuang_2_ShuangDao');
+    const fcObj1 = fc?.getObjectByName('FengChuang_1_1');
+    const fcObj2 = fc?.getObjectByName('FengChuang_2_1');
+    const frontObjNames = ['FengChuang_1_2', 'FengChuang_1_3', 'FengChuang_1_4', 'FengChuang_1_5'];
+    const backObjNames = ['FengChuang_2_2', 'FengChuang_2_3', 'FengChuang_2_4', 'FengChuang_2_5'];
     debugger;
-    leftObjNames.filter((name) => {
-      const obj = fcObj?.getObjectByName(name);
+    frontObjNames.filter((name) => {
+      const obj = fcObj1?.getObjectByName(name);
       if (obj) {
         obj.rotateOnAxis(new THREE.Vector3(0, 1, 0), 0);
         meshArr01.push(obj);
       }
     });
-    rightObjNames.filter((name) => {
-      const obj = fcObj?.getObjectByName(name);
+    backObjNames.filter((name) => {
+      const obj = fcObj2?.getObjectByName(name);
       if (obj) {
         obj.rotateOnAxis(new THREE.Vector3(0, 1, 0), 0);
         meshArr02.push(obj);
@@ -261,7 +263,7 @@ class doubleWindow {
 
   mountedThree(playerDom) {
     return new Promise((resolve) => {
-      this.model.setGLTFModel('sdFc-d').then((gltf) => {
+      this.model.setGLTFModel('sdFc-dm').then((gltf) => {
         const fcModal = gltf[0];
         fcModal.name = 'sdFc';
         this.group?.add(fcModal);

+ 2 - 2
src/views/vent/monitorManager/windowMonitor/window.threejs.ts

@@ -233,8 +233,8 @@ export const setModelType = (type) => {
 };
 
 export const mountedThree = (playerDom) => {
-  const { sysOrgCode } = useGlobSetting();
-  // const sysOrgCode = 'sdmtjtswmk';
+  // const { sysOrgCode } = useGlobSetting();
+  const sysOrgCode = 'sdmtjtbltmk';
   return new Promise(async (resolve) => {
     model = new UseThree('#window3D');
     if (!model || !model.renderer || !model.camera) return;