From e8acf56b807be105702321a0be2119963fa69e03 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期四, 24 四月 2025 17:27:10 +0800 Subject: [PATCH] fix:修改水温监控参数 --- src/views/screen/flow/graphic/index.vue | 43 +++++++++++++++++++++---------------------- 1 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/views/screen/flow/graphic/index.vue b/src/views/screen/flow/graphic/index.vue index 2c48386..c3c3016 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()) @@ -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> @@ -166,6 +167,14 @@ <div class="info-item"> <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"> @@ -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; + } } } } @@ -350,23 +366,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