From da42dea3ebb81daefad8741d618d5be10d3dcb84 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 27 十二月 2023 09:19:27 +0800
Subject: [PATCH] 主题库定义分类授权样式修改

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

diff --git a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
index ad00025..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 {
@@ -129,8 +130,6 @@
     async getEcharts() {
       try {
         const firstResponse = await getBtmAndChart();
-        this.ResponseData = await getBtmAndChart();
-        console.log(firstResponse)
         const btmNames = Object.keys(firstResponse.data.data).join(',');
         const btmValue = Object.values(firstResponse.data.data);
         if (!btmNames) {
@@ -151,7 +150,7 @@
         this.loading = false;
       } catch (error) {
         this.loading = false;
-        console.error('Error:', error);
+        // console.error('Error:', error);
       }
     },
     async handleStatisticAnalysis(btmNames, firstResponse) {
@@ -189,8 +188,6 @@
               });
             });
           }
-        } else {
-          console.log('else')
         }
       });
     },
@@ -273,9 +270,12 @@
     },
     //琛ㄦ牸澶氶��
     selectChange(selection) {
-      console.log('selection', selection)
       this.selectData = selection;
     },
+    rowHandlerClick(row){
+      this.selectData = row;
+      this.$refs.table.toggleRowSelection(row);
+    }
   }
 }
 

--
Gitblit v1.9.3