From c4dfc001d0914774ca9ec4b49823c12c65cd74ef Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期二, 03 六月 2025 11:06:12 +0800
Subject: [PATCH] fix:修改视频设置参数

---
 src/views/screen/temperature/graphic/index.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/views/screen/temperature/graphic/index.vue b/src/views/screen/temperature/graphic/index.vue
index 8d8d853..3056f19 100644
--- a/src/views/screen/temperature/graphic/index.vue
+++ b/src/views/screen/temperature/graphic/index.vue
@@ -6,13 +6,14 @@
 import moment from "moment";
 import { getGraphicData } from '@/api/screen/graphic/index.js'
 import { debounce } from '@/utils/tool.js'
-
+import {deepCOnfig} from '@/config/index.js'
 
 const menuList = ref([])
 const timeType = ref(1) //时间类型 1日 2周 3月 4季 5年
 const showTime = ref(moment().format('YYYY-MM-DD')); //展示时间
 const timeValue = ref(moment().format('YYYY-MM-DD'))  //处理后得时间
 const searchVal = ref()
+const tempDeep = ref(50)
 const graphicRef = ref(null)
 const chartsRef = ref([])  //动态生成图表ref
 const chartData = ref([])
@@ -77,8 +78,6 @@
         yAxis: {
             type: 'value',
             name: unit,
-            max: 40,
-            min: 0,
             nameTextStyle: {
                 color: '#fff',
                 fontSize: '1rem'
@@ -240,6 +239,7 @@
         pointId: point,
         pointName: searchVal.value,
         dataTime: timeValue.value,
+        waterLevel: tempDeep.value
     }
     getGraphicData(data).then(async res => {
         chartData.value = res.data
@@ -298,7 +298,7 @@
                         v-model="showTime"
                         type="date"
                         placeholder="选择时间"
-                        style="width: 15rem"
+                        style="width: 12rem"
                         @change="getTime"
                     />
                     <el-date-picker
@@ -307,7 +307,7 @@
                         type="week"
                         format="YYYY年 ww[周]"
                         placeholder="选择时间"
-                        style="width: 15rem"
+                        style="width: 12rem"
                         @change="getTime"
                     />
                     <el-date-picker
@@ -315,7 +315,7 @@
                         v-model="showTime"
                         type="month"
                         placeholder="选择时间"
-                        style="width: 15rem"
+                        style="width: 12rem"
                         @change="getTime"
                     />
                     <Quarter
@@ -323,7 +323,7 @@
                         placeholder="选择时间"
                         :default-value="showTime"
                         clearable
-                        style="width: 15rem"
+                        style="width: 12rem"
                         @change="getTime"
                     />
                     <el-date-picker
@@ -331,9 +331,18 @@
                         v-model="showTime"
                         type="year"
                         placeholder="选择时间"
-                        style="width: 15rem"
+                        style="width: 12rem"
                         @change="getTime"
                     />
+                    <div class="name">深度</div>
+                    <el-select v-model="tempDeep" style="width: 10rem">
+                        <el-option
+                            v-for="item in deepCOnfig"
+                            :key="item.value"
+                            :label="item.label"
+                            :value="item.value"
+                        />
+                    </el-select>
                     <el-input v-model="searchVal" style="width: 15rem" clearable placeholder="请输入监测点名称"/>
                     <el-button @click="() => getChartData()">
                         <el-icon>

--
Gitblit v1.9.3