Przeglądaj źródła

中图代码修改

lkk 11 miesięcy temu
rodzic
commit
bf5e7a27b8

+ 11 - 1
src/views/ConstructionApplication3D/billboard/billboardDesign.vue

@@ -98,6 +98,7 @@ import lodash from "lodash-es";
 export default {
   data() {
     return {
+      thislayers: [],
       projects: window.billboardInfoList,
       currentPage4: 1,
       total: 20,
@@ -113,6 +114,11 @@ export default {
     debugger;
     let that = this;
     var promisse11w = scene.open(window.billboardModelLT.url);
+    Cesium.when(promisse11w, function (layers) {
+      layers.forEach((element) => {
+        that.thislayers.push(element);
+      });
+    });
   },
   methods: {
     handleCurrentChange() {},
@@ -127,7 +133,7 @@ export default {
           data: {}, //props
         },
         offset: ["650", "300"], //left top  左上角(left=430px/2;top=(800px+header高)/2)
-        area: ["300px", "300px"], //宽 高
+        area: ["350px", "450px"], //宽 高
         title: "新增项目",
         maxmin: false,
         shade: false, //是否显示遮罩
@@ -439,6 +445,10 @@ export default {
   },
   beforeDestroy() {
     this.removeAllentities();
+    debugger;
+    this.thislayers.forEach((element) => {
+      scene.layers.remove(element.name);
+    });
   },
 };
 </script>

+ 0 - 14
static/Config/config.js

@@ -1374,20 +1374,6 @@ window.NightLightUrl = {
   csfgx: "static/data/fg.json",
 };
 
-window.billboardInfoList = [
-  {
-    id: 1,
-    name: "广告项目1",
-    time: "2024-01-02 12:00:00",
-  },
-  {
-    id: 2,
-    name: "广告项目2",
-    time: "2024-01-02 12:00:00",
-  },
-];
-
-
 /**
  * 灯光文件地址
  */