zhangyu před 5 roky
rodič
revize
9e96098487

+ 5 - 1
src/components/point/report/tabFunNumOverview.vue

@@ -11,7 +11,7 @@
     </div>
     <!-- 数据表格 -->
     <div class="table-area">
-      <el-table :data="tableData" style="width: 100%" height="calc(100% - 32px)" v-loading="loading" :header-cell-style="headerStyle" >
+      <el-table :data="tableData" style="width: 100%" height="calc(100% - 32px)" v-loading="loading" :header-cell-style="headerStyle" @row-click="handleClickRow">
         <el-table-column prop='' label='' show-overflow-tooltip width="35" header-align='center'>
           <template slot-scope="scope">
             <el-tooltip v-if="scope.row.DataQuality!=0" content="已断数,请检查" effect="dark" placement="top">
@@ -86,6 +86,7 @@ import historyChart from './historyChart'
 import dataSource from './dataSource'
 import objectInstance from './objectInstance'
 import addTabFunNum from './addTabFunNum'
+import lStorage from '@/utils/localStorage'
 export default {
   data() {
     return {
@@ -127,6 +128,9 @@ export default {
         this.drawers[index].drawer = true;
       }
     },
+    handleClickRow(row,column,event){//点击表格行
+      lStorage.set('screen_data', {path: this.$route.path, data: {MeterFunc: row.MeterFunc}})
+    },
     //获取统计数据
     getOverViewList() {
       this.loading = true;