From ccf28d1fed1aa2e5437dbe64b5133ba1cbde6ec7 Mon Sep 17 00:00:00 2001
From: renkang <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 03 一月 2025 15:30:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin/src/views/project/components/OperaYwRoomWindow.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/admin/src/views/project/components/OperaYwRoomWindow.vue b/admin/src/views/project/components/OperaYwRoomWindow.vue
index dc0c159..1ed0a57 100644
--- a/admin/src/views/project/components/OperaYwRoomWindow.vue
+++ b/admin/src/views/project/components/OperaYwRoomWindow.vue
@@ -101,6 +101,8 @@
       this.title = title
       this.visible = true
       this.getProject()
+      this.buildList = []
+      this.floorList = []
       // 鏂板缓缁勭粐
       if (target == null) {
         this.$nextTick(() => {
@@ -115,8 +117,8 @@
         this.getDetail(target.id)
       })
     },
-    confirm () {
-      if(!this.form.feeArea){
+    confirm() {
+      if (!this.form.feeArea) {
         this.form.feeArea = this.form.rentArea
       }
       if (this.form.id == null || this.form.id === '') {
@@ -143,6 +145,10 @@
     getProject() {
       getProjectList({}).then(res => {
         this.projectList = res || []
+        if (this.projectList.length > 0) {
+          this.$set(this.form, 'projectId', this.projectList[0].id)
+          this.changeProject(this.projectList[0].id)
+        }
       })
 
     },
@@ -150,6 +156,9 @@
       this.form.buildingId = ''
       getBuildList({ projectId: e }).then(res => {
         this.buildList = res || []
+        // if(this.buildList.length > 0){
+        //   this.form.buildingId = this.buildList[0].id
+        // }
       })
     },
     changeBuild(e) {

--
Gitblit v1.9.3