Browse Source

通知公告查看树问题

Shannon_mu 3 years ago
parent
commit
c5d0117c26

+ 17 - 6
operationSupport/src/views/propertyManagement/common/previeInform.vue

@@ -18,7 +18,7 @@
                         </div>
                         <div class="prev-obj-right">
                             <div class="prev-obj-text">
-                                社区员工/{{ '指定员工' }}/{{!!peopleData[0]?peopleData[0].value:'' }}/
+                                社区员工/{{ '指定员工' }}/{{ !!peopleData[0] ? peopleData[0].value : '' }}/
                                 {{ houseDataNamesPeople }}
                             </div>
                             <div @click="clickDetailPeople()" class="click-prev">{{ showTreePeople ? '关闭详情' : '查看详情' }}</div>
@@ -241,9 +241,10 @@ export default {
         // 关闭节点事件
         closeTree(e) {
             console.log('e', e);
-            if (e.type == 'community') {
-                this.showTree = false;
-            }
+            // 这里不知道什么原因
+            // if (e.type == 'community') {
+            //     this.showTree = false;
+            // }
         },
         // 点击显示发布对象详情
         clickDetail(val) {
@@ -252,11 +253,21 @@ export default {
             this.showTreePeople = !this.showTreePeople;
         },
         clickDetailHouse(val) {
-            this.showTree = !this.showTree;
+            if (this.showTreePeople) {
+                this.showTreePeople = false;
+            } else {
+                this.showTree = !this.showTree;
+            }
+
             this.showTreeHouse = !this.showTreeHouse;
         },
         clickDetailPeople() {
-            this.showTree = !this.showTree;
+            if (this.showTreeHouse) {
+                this.showTreeHouse = false;
+            } else {
+                this.showTree = !this.showTree;
+            }
+
             this.showTreePeople = !this.showTreePeople;
             // this.showTreeHouse = false;
         },