Преглед изворни кода

模型添加广告的功能

gushoubang пре 3 месеци
родитељ
комит
4dfd48df6d
1 измењених фајлова са 12 додато и 11 уклоњено
  1. 12 11
      src/views/ConstructionApplication3D/billboard/addBillboardPoject.vue

+ 12 - 11
src/views/ConstructionApplication3D/billboard/addBillboardPoject.vue

@@ -265,18 +265,19 @@ export default {
      */
     async getshProjectinformations() {
       let Projectinformations = await NoAssociatedList();
+var data=[];
+            for (var index = 0; index < Projectinformations.rows.length; index++) {
+        var c = Projectinformations.rows[index];
+        if (c.ztConstructionmodelList.length > 0) {
+          c.name = c.projectname;
+          c.ztConstructionmodelList.forEach((element) => {
+            element.name = element.modelname;
+          });
+data.push(c);
+        }
+      }
 
-      let data = Projectinformations.rows.map((c) => {
-        if (c.ztConstructionmodelList.length > 0) {
-          c.name = c.projectname;
-          c.ztConstructionmodelList.forEach((element) => {
-            element.name = element.modelname;
-          });
-          return c;
-        }
-      });
-
-      return data;
+      return data;
     },
     async changeIsbjmx(val) {
       debugger;