From 35889caf6315da8f72aec921069547af462b479a Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 18 三月 2023 17:16:44 +0800
Subject: [PATCH] 数据发布页面,接口对接,空间查询,属性查询数据修改

---
 src/components/MapView/mapSpaceTop.vue |   33 +++++++++++++++++++++++++++++----
 1 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/src/components/MapView/mapSpaceTop.vue b/src/components/MapView/mapSpaceTop.vue
index 5cf19ac..26c6552 100644
--- a/src/components/MapView/mapSpaceTop.vue
+++ b/src/components/MapView/mapSpaceTop.vue
@@ -105,11 +105,36 @@
       }
       var option = data.result;
       this.layerData = option.filter((res) => {
-        if (res.rows != 0) {
-          return res;
-        }
-      });
 
+        return res;
+
+      });
+      // var val = data.result
+      // var std = [];
+      // val.filter((item) => {
+      //   if (std.indexOf(item.bak) == -1) {
+      //     std.push(item.bak);
+      //     this.layerData.push(
+      //       {
+      //         val: item.bak,
+      //         label: item.bak,
+      //         children: [],
+      //       }
+      //     )
+      //   }
+      // });
+      // for (var i in this.layerData) {
+      //   var item = this.layerData[i];
+      //   for (var j in val) {
+      //     var res = val[j];
+
+      //     if (item.val === res.bak) {
+
+      //       res.label = res.tabDesc
+      //       this.layerData[i].children.push(res)
+      //     }
+      //   }
+      // }
 
       // for (var i in option) {
       //   // console.log(option[i].tableType)

--
Gitblit v1.9.3