From 23412e0effa27d5d0f79f5796bc4e738cf8cd1fc Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期五, 03 三月 2023 16:08:49 +0800
Subject: [PATCH] 更新

---
 src/views/intellectInspect/intelligentLine/index.vue |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/views/intellectInspect/intelligentLine/index.vue b/src/views/intellectInspect/intelligentLine/index.vue
index f1d8fe8..ae41abf 100644
--- a/src/views/intellectInspect/intelligentLine/index.vue
+++ b/src/views/intellectInspect/intelligentLine/index.vue
@@ -68,7 +68,7 @@
                                     <span>参数:</span><span class="target">{{ t.secondReferenceResult + t.quotaUnit }}</span>
                                 </div>
                                 <div>
-                                    <span>巡检结果:</span><span class="target">{{ t.reportResult == null ? '--' : t.reportResult == 0 ? '正常' : '异常' }}</span>
+                                    <span>巡检结果:</span><span class="target">{{ t.reportResult == null ? '--' : t.reportResult == 0 ? '正常' : t.reportResult == 1 ? '异常' : '备' }}</span>
                                 </div>
                             </div>
                         </div>
@@ -92,7 +92,7 @@
 <script lang="ts">
 import screenfull from 'screenfull';
 import { lineApi } from '/@/api/intelligentLine';
-import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick} from 'vue';
+import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick, onActivated} from 'vue';
 import {useRoute} from 'vue-router';
 import { storeToRefs } from 'pinia';
 import { initBackEndControlRoutes } from '/@/router/backEnd';
@@ -137,8 +137,10 @@
             state.id = curId.toString()
             getLine(state.id)
             getUrl(state.id)
-            onScreenfullClick();
         });
+      onActivated(()=>{
+        onScreenfullClick();
+      })
 
         const dataList = computed(() => {
             return userInfos.value.dataList;
@@ -191,7 +193,7 @@
         const getLine = async (id:string) => {
             let res = await lineApi().getLine({ id: id });
             if (res.data.code === '200') {
-                userInfos.value.dataList = res.data.data;
+                userInfos.value.dataList = res.data.data
             } else {
                 ElMessage({
                     type: 'warning',
@@ -208,7 +210,6 @@
                 return false;
             }
             screenfull.toggle(element);
-            console.log(111111111111111)
         };
 
         // 返回
@@ -1000,11 +1001,11 @@
                 width: 100%;
                 height: 100%;
                 display: flex;
-                justify-content: center;
+                justify-content: left;
                 align-items: flex-start;
+                overflow-y: hidden;
+                overflow-x: hidden;
                 overflow: auto;
-                &::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
-                &::scrollbar { width: 0; height: 0; color: transparent; }
             }
 
             .line-map {

--
Gitblit v1.9.2