Browse Source

修改水量平衡

tengmingxue 2 years ago
parent
commit
5da4e8b581

+ 2 - 1
src/views/zhpt/superviseSystem/dataAnalysis/analLeakage/TableData.vue

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2023-01-17 11:25:41
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2023-03-17 14:27:24
+ * @LastEditTime: 2023-04-20 11:01:41
  * @FilePath: \psjgxt_web\src\views\zhpt\superviseSystem\dataAnalysis\analWaterBalance\RankList.vue
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEhei
 -->
@@ -212,6 +212,7 @@ export default class QueryForm extends Vue {
     if(this.formData.siteId != ''){
       this.queryPipeLeakageWarn(this.formData.siteId)
     }
+    else this.queryPipeLeakageWarn(null)
   }
 
   /**

+ 7 - 1
src/views/zhpt/superviseSystem/dataAnalysis/analWaterBalance/AnalyEchart.vue

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2023-01-17 16:11:22
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2023-04-14 23:52:38
+ * @LastEditTime: 2023-04-20 16:18:00
  * @FilePath: \psjgxt_web\src\views\zhpt\superviseSystem\dataAnalysis\analWaterBalance\AnalyEchart.vue
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -50,9 +50,15 @@ export default class AnalyEchart extends Vue {
   downloadIcon = downloadIcon
   expand = true
   showType = 'chart'
+  created(){
+    console.log('创建')
+  }
   mounted() {
     this.drawchartPie()
   }
+  destroyed(){
+    console.log('销毁')
+  }
   expandClick() {
     this.activeFun(false, this.name, this.echartData)
   }

+ 7 - 11
src/views/zhpt/superviseSystem/dataAnalysis/analWaterBalance/EchartList.vue

@@ -2,23 +2,21 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2023-01-17 11:25:41
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2023-03-19 23:02:39
+ * @LastEditTime: 2023-04-20 16:31:49
  * @FilePath: \psjgxt_web\src\views\zhpt\superviseSystem\dataAnalysis\analWaterBalance\RankList.vue
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEhei
 -->
 <template>
   <div class="echart-list">
-    <el-row :gutter="10" v-if="expand" style="height: 100%">
+    <el-row :gutter="10" v-if="expand" style="height: 100%" :key="1">
       <el-col :span="colNum" v-for="rank in rankLists" :key="rank.name" :style="'height: '+colHeight">
-        <!-- <tf-title style="width: 280px;">【{{rank.name}}】日排水总量</tf-title> -->
         <AnalyEchart :name="rank.siteName" :state="1" :echartData="rank" :activeFun="expandClick" />
       </el-col>
     </el-row>
 
-    <el-row :gutter="10" v-else style="height: 100%">
+    <el-row :gutter="10" v-else style="height: 100%" :key="2">
       <el-col :span="24" style="height: 100%">
-        <!-- <tf-title style="width: 280px;">日排水总量</tf-title> -->
-        <AnalyEchart :name="activeName" :state="0" :echartData="activeEchartData" :activeFun="expandClick" style="height: 100%" />
+        <AnalyEchart :name="activeName" :state="0" :echartData="activeEchartData" :activeFun="expandClick" style="height: 100%;width: 100%;" />
       </el-col>
     </el-row>
   </div>
@@ -74,21 +72,19 @@ export default class EchartList extends Vue {
   }
   @Watch('currCheckedKeys', { immediate: true })
   currCheckedKeysChange(val){
-    this.queryCurve()
+    
   }
   @Watch('indexList',{immediate:true})
   indexListChange(val){
     this.rankLists = val
   }
 
-  queryCurve(){
-    
-  }
 
   expandClick(state, name, echartData) {
-    this.expand = state
     this.activeName = name
     this.activeEchartData = echartData
+    this.expand = state
+    console.log('活动数据',state,name,echartData)
   }
 }
 </script>