Browse Source

查看教室设备信息消失

zy1125 1 year ago
parent
commit
d74ee00069
2 changed files with 22 additions and 2 deletions
  1. 14 1
      src/components/home.vue
  2. 8 1
      src/components/left.vue

+ 14 - 1
src/components/home.vue

@@ -4,7 +4,7 @@
4
             <img :src="headImg" alt="" />
4
             <img :src="headImg" alt="" />
5
         </div>
5
         </div>
6
         <el-container>
6
         <el-container>
7
-            <Left></Left>
7
+            <Left  @childMethod="childMethod"></Left>
8
             <right></right>
8
             <right></right>
9
             <div ref="linedomRef" style="width:1px;height:1px;position: absolute;z-index: 228;background:#ccc;">
9
             <div ref="linedomRef" style="width:1px;height:1px;position: absolute;z-index: 228;background:#ccc;">
10
             </div>
10
             </div>
@@ -194,6 +194,18 @@ export default ({
194
             clickData1.value.y = e.clientY;
194
             clickData1.value.y = e.clientY;
195
         }
195
         }
196
 
196
 
197
+
198
+        //消失线的方法
199
+        const childMethod =()=>{
200
+            
201
+            if (lineContainer.value) {
202
+                    lineContainer.value.remove()
203
+                    lineContainer.value = null
204
+                }
205
+        }
206
+
207
+
208
+
197
         const handleResponseFunction = (data) => {
209
         const handleResponseFunction = (data) => {
198
             console.log("从UE返回过来的值", data)
210
             console.log("从UE返回过来的值", data)
199
             if (data == "{isrotate}") {
211
             if (data == "{isrotate}") {
@@ -334,6 +346,7 @@ export default ({
334
             headImg,
346
             headImg,
335
             titleDialog,
347
             titleDialog,
336
             orientation,
348
             orientation,
349
+            childMethod
337
     
350
     
338
         }
351
         }
339
     },
352
     },

+ 8 - 1
src/components/left.vue

@@ -103,7 +103,7 @@ export default ({
103
 
103
 
104
     name: 'Histogram',
104
     name: 'Histogram',
105
     components: { ElScrollbar, ElPagination, ElDialog, ElCarousel, ElCarouselItem, CircleProgress },
105
     components: { ElScrollbar, ElPagination, ElDialog, ElCarousel, ElCarouselItem, CircleProgress },
106
-    setup() {
106
+    setup(_, { emit }) {
107
         // 教室分类统计
107
         // 教室分类统计
108
         const classRoomCount = ref([])
108
         const classRoomCount = ref([])
109
 
109
 
@@ -189,6 +189,13 @@ export default ({
189
         let classInfo = ref({})
189
         let classInfo = ref({})
190
         const handleRoom = function (item) {
190
         const handleRoom = function (item) {
191
 
191
 
192
+
193
+            //查看前隐藏
194
+            let a1=document.getElementById('popoverRef')
195
+            a1.style.display = "none"
196
+
197
+            emit('childMethod');
198
+
192
         console.log('kankanitem',item);
199
         console.log('kankanitem',item);
193
        setTimeout(() => {
200
        setTimeout(() => {
194
         roomVisible.value = true;
201
         roomVisible.value = true;