From b86d97b09d1aca57291004c1a2bc014f90702918 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 26 一月 2024 16:14:39 +0800
Subject: [PATCH] 提交代码

---
 Source/UBCS-WEB/src/views/statistic/statisticPage.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
index e3f96f3..f896de9 100644
--- a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
+++ b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
@@ -7,7 +7,7 @@
     <!--鏂板瀵硅瘽妗�-->
     <el-dialog :visible.sync="addVisible" append-to-body class="avue-dialog avue-dialog--top" title="閰嶇疆鏁版嵁缁熻鍒嗘瀽"
                top="-50px">
-      <el-table ref="table" :data="tableData" border style="width: 100%" @selection-change="selectChange">
+      <el-table ref="table" :data="tableData" border style="width: 100%" @selection-change="selectChange" @row-click="rowHandlerClick">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column align="center" label="涓绘暟鎹簱鍚�" prop="menuName" width="300"></el-table-column>
         <el-table-column align="center" label="绫诲瀷" prop="codeType">
@@ -63,7 +63,8 @@
 import pieChart from "../../components/StatisticsComponent/pieChart"
 import ColumnarChart from "../../components/StatisticsComponent/ColumnarChart"
 import mixCart from "../../components/StatisticsComponent/mixCart"
-import {getStatisticAnalysis, getBtmAndChart, saveStatisticAnalysis, deleteChartId} from "@/api/statistic/chart"
+import {getStatisticAnalysis, getBtmAndChart, saveStatisticAnalysis} from "@/api/statistic/chart"
+//閰嶇疆琛ㄥ崟涓绘暟鎹垪琛ㄦ帴鍙�
 import {getList} from "@/api/system/statistic";
 
 export default {
@@ -149,7 +150,7 @@
         this.loading = false;
       } catch (error) {
         this.loading = false;
-        console.error('Error:', error);
+        // console.error('Error:', error);
       }
     },
     async handleStatisticAnalysis(btmNames, firstResponse) {
@@ -271,6 +272,10 @@
     selectChange(selection) {
       this.selectData = selection;
     },
+    rowHandlerClick(row){
+      this.selectData = row;
+      this.$refs.table.toggleRowSelection(row);
+    }
   }
 }
 

--
Gitblit v1.9.3