From e0c0c33de3eab17a123ee4ffa7210758b5b48405 Mon Sep 17 00:00:00 2001
From: Gary Gu <garygu@Garydebijibendiannao.local>
Date: Wed, 28 May 2025 14:58:55 +0800
Subject: [PATCH] feat: 项目实况开发

---
 src/views/ProjectView.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/views/ProjectView.vue b/src/views/ProjectView.vue
index 152b5f3..4b0c819 100644
--- a/src/views/ProjectView.vue
+++ b/src/views/ProjectView.vue
@@ -209,6 +209,7 @@
       bgImage: new URL('@/assets/images/titles/title_second.png', import.meta.url).href,
       tableImage: new URL('@/assets/images/backgrounds/table_bg.png', import.meta.url).href,
       projectInfo: {
+        GrossFloorArea: '',
         ProjectName: '',
         Description: '',
         Thumbnail: '',
@@ -246,6 +247,7 @@
             this.projectInfo.ProjectName = result.ProjectName
             this.projectInfo.Description = result.Description
             this.projectInfo.Thumbnail = result.Thumbnail
+            this.projectInfo.GrossFloorArea = result.GrossFloorArea
           } 
         }
         
@@ -269,7 +271,9 @@
                 newArray.push({ text: item.Bind, value: item.Bind })
               }
             })
-            this.bindFilters = newArray
+            this.bindFilters = this.arrayFilter(newArray, 'value')
+            console.log(newArray, this.bindFilters);
+
           } else {
             this.tableData = []
           }
@@ -277,6 +281,12 @@
         }
       });
     },
+    // 数组去重
+    arrayFilter (arr, key) {
+      const res = new Map()
+      return arr.filter(arr => !res.has(arr[key]) && res.set(arr[key], 1))
+    },
+
     getParticipatingNumber() {
       const data = {
         "organizeId": this.projectId

--
Gitblit v1.9.3