From 92e4c0f5deeba69d52603da02bea2ab7836bb9f6 Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期一, 05 五月 2025 17:21:08 +0800
Subject: [PATCH] fix:修改水温深度选择

---
 src/views/screen/flow/graphic/index.vue |   54 ++++++++++++++++++++++++++----------------------------
 1 files changed, 26 insertions(+), 28 deletions(-)

diff --git a/src/views/screen/flow/graphic/index.vue b/src/views/screen/flow/graphic/index.vue
index 2c48386..e3d6668 100644
--- a/src/views/screen/flow/graphic/index.vue
+++ b/src/views/screen/flow/graphic/index.vue
@@ -4,10 +4,11 @@
 import {getFlowPointList} from '@/api/screen/index'
 import {getFlowVideoData} from '@/api/screen/graphic/index.js'
 import EZUIKit from 'ezuikit-js';
-import {useRoute} from "vue-router";
+import {useRoute, useRouter} from "vue-router";
 import FullScreenVideo from "./components/FullScreenVideo.vue";
 
 const route = useRoute();
+const router = useRouter();
 
 const menuList = ref([])
 const userType = ref(getUserType())
@@ -32,7 +33,7 @@
 
 // 抓拍
 const handleSnap = (index) => {
-    ezKitList[index].capturePicture(`capture-${new Date().getTime()}`, 0.8); // 参数:回调函数,图片格式,质量(0-1)
+    ezKitList[index].capturePicture(`capture-${new Date().getTime()}`, 0.8);
 }
 
 // 获取监控点菜单
@@ -136,7 +137,7 @@
                         </el-icon>
                         搜索
                     </el-button>
-                    <el-button style="margin-left: 0" v-if="userType === '1'">
+                    <el-button style="margin-left: 0" v-if="userType === '1'" @click="router.push('/monitorList')">
                         <el-icon>
                             <Plus/>
                         </el-icon>
@@ -167,9 +168,17 @@
                                     <div class="name">累计流量:</div>
                                     <div class="val"><span>{{ item.totalFlow }}</span>m³</div>
                                 </div>
+                                <div class="info-item">
+                                    <div class="name">水面宽度:</div>
+                                    <div class="val"><span>{{ item.waterWidth }}</span>m</div>
+                                </div>
+                                <div class="info-item">
+                                    <div class="name">过水面积:</div>
+                                    <div class="val"><span>{{ item.waterArea }}</span>m³</div>
+                                </div>
                             </div>
                             <div class="info-btn">
-                                <div class="fullScreen" @click="handleFullScreen(index)">
+                                <div class="fullScreen" v-if="item.url" @click="handleFullScreen(index)">
                                     <img src="@/assets/images/flow/screenIconWhite.png" alt="" />
                                     全屏
                                 </div>
@@ -314,9 +323,16 @@
                                     width: 100px;
                                 }
 
-                                .val span {
-                                    display: inline-block;
-                                    padding: 0 20px;
+                                .val{
+                                    display: flex;
+                                    align-items: center;
+                                    span {
+                                        display: inline-block;
+                                        width: 6rem;
+                                        overflow: hidden;
+                                        text-overflow: ellipsis;
+                                        white-space: nowrap;
+                                    }
                                 }
                             }
                         }
@@ -324,15 +340,14 @@
                         .info-btn {
                             width: 15%;
                             padding: 1rem 0;
-                            display: flex;
-                            align-items: flex-end;
-                            flex-direction: column;
-                            justify-content: space-between;
+                            position: relative;
                             :deep(.el-button) {
                                 color: #fff;
                                 background: rgba(94, 229, 92, 0.6);
                                 border-radius: 4px 4px 4px 4px;
                                 border: 1px solid rgba(94, 229, 92, 0.6);
+                                position: absolute;
+                                bottom: 1rem;
                             }
                             .fullScreen{
                                 width: 100%;
@@ -350,23 +365,6 @@
                     }
                 }
             }
-        }
-    }
-
-    .mask{
-        position: absolute;
-        left: 0;
-        top: 0;
-        z-index: 100;
-        width: 100vw;
-        height: 100vh;
-        .mask-item{
-            position: absolute;
-            left: 5%;
-            bottom: 10%;
-            height: 400px;
-            width: 300px;
-            background-color: rgba(0, 0, 0, 0.4);
         }
     }
 }

--
Gitblit v1.9.3