From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 03 四月 2025 14:35:02 +0800
Subject: [PATCH] 添加非密字段显示

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

diff --git a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
index e3f96f3..6df37e1 100644
--- a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
+++ b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue
@@ -2,12 +2,12 @@
   <!--  鏂板鍙充晶鎸夐挳-->
   <div v-loading="loading">
     <div style=" display: flex; justify-content: flex-end;">
-      <el-button plain type="primary" @click="addHandler">閰嶇疆</el-button>
+      <el-button plain type="primary" @click="addHandler" size="small">閰嶇疆</el-button>
     </div>
     <!--鏂板瀵硅瘽妗�-->
     <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">
@@ -24,7 +24,7 @@
   </span>
     </el-dialog>
     <!--echarts缁勪欢-->
-    <div style="margin-top: 15px;padding-bottom: 35px">
+    <div style="margin-top: 10px;padding-bottom: 35px">
       <lineChart
         v-for="(item,index) in lineList"
         :key="index"
@@ -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