From 11f6acee504c77a8919a4e0ddfe3e70a746e3522 Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期五, 18 四月 2025 17:39:33 +0800
Subject: [PATCH] 4.18更新v2.1.5

---
 src/views/dpdv/dpdv.vue |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/views/dpdv/dpdv.vue b/src/views/dpdv/dpdv.vue
index d0eb566..3b42a2c 100644
--- a/src/views/dpdv/dpdv.vue
+++ b/src/views/dpdv/dpdv.vue
@@ -38,9 +38,11 @@
     <el-radio class="title_left_ndmm" :label="4" >鍖椾綅绉�</el-radio>
     <el-radio class="title_left_tdmm" :label="8" >澶╀綅绉�</el-radio>
   </el-radio-group> -->
-
-                <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''"
-                    style="position: absolute;top: 70px;" />
+  <div class="chart-container" style="position: absolute;top: 70px;height: 870px; overflow-y: auto;">
+    <BarChart :chart-data="barChartData" width="530px" height="200%" v-if="barChartData.tagid != ''" />
+  </div>
+                <!-- <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''"
+                    style="position: absolute;top: 70px;overflow-y: auto;" /> -->
                 <!-- <BarChart /> -->
                 <!-- <span class="title_left_edmm">涓滀綅绉�</span>
                 <span >鍖椾綅绉�</span>
@@ -513,6 +515,7 @@
     },
     data() {
         return {
+            height:'900px',
             month: '',
             barChartData: {
                 tagid: '',
@@ -588,8 +591,6 @@
 
     },
     created() {
-        console.log(333333333);
-
         this.fetchData()
         this.monitordata()
     },
@@ -597,8 +598,6 @@
         this.timeFn();
         const params = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
         alldevice(params).then(response => {
-            console.log(response.data.dataList);
-
             this.initMap(response.data.dataList, response.data.view)
         })
 
@@ -729,17 +728,13 @@
             this.listLoading = true
             const params1 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
             getEquipmentmonitor(params1).then(response => {
-                console.log(4444444);
                 this.list = response.data
-                console.log(response);
                 this.listLoading = false
 
             })
             const params2 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
             getEquipmenttwo(params2).then(response => {
-                console.log(5555555555);
                 this.processBarModel = []
-                // this.list = response.data
                 var json = {
                     edmm: [],
                     ndmm: [],
@@ -760,8 +755,14 @@
                     json.winmax = response.data[index].winmax
                     json.winmin = response.data[index].winmin
                 }
-                this.barChartData = json
-                console.log(response);
+                // setTimeout(() => {
+                    // this.height= '100%'
+                    this.barChartData = json
+            // }, 3000);
+            setTimeout(() => {
+                    this.height= '100%'
+                    // this.barChartData = json
+            }, 3000);
 
             })
             // getList(this.listQuery).then(response => {
@@ -835,11 +836,8 @@
             //鑾峰彇褰撳墠骞存湀鏃�
             const dateYear = formatTime1(new Date(), "yyyy-MM-dd");
             const params = { date1: dateYear, date2: newDate, username: localStorage.getItem('username') || '', tagid: scope.row.tagid };
-            console.log(params);
-
             handlechartupdate3(params).then(response => {
                 this.lineChartData = response.data
-                console.log(response.data);
                 this.dialogVisible = true
             })
             this.resetTemp()

--
Gitblit v1.9.3