From edc6b742457bcdfcfbd49ff41a625f956a733459 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 25 五月 2026 11:16:04 +0800
Subject: [PATCH] 合格率统计:明细数据表格高度显示异常修复

---
 src/views/statisticalCharts/qualificationRateStatistics/index.vue |   34 ++++++++++++++--------------------
 1 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/src/views/statisticalCharts/qualificationRateStatistics/index.vue b/src/views/statisticalCharts/qualificationRateStatistics/index.vue
index e57131f..4e08061 100644
--- a/src/views/statisticalCharts/qualificationRateStatistics/index.vue
+++ b/src/views/statisticalCharts/qualificationRateStatistics/index.vue
@@ -1,13 +1,6 @@
 <template>
   <div class="app-container">
     <el-row>
-<!--      <el-col :span="4">-->
-<!--        <el-radio-group v-model="dateType" @change="changeDateType">-->
-<!--          <el-radio-button label="1">鏈懆</el-radio-button>-->
-<!--          <el-radio-button label="2">鏈湀</el-radio-button>-->
-<!--          <el-radio-button label="3">浠婂勾</el-radio-button>-->
-<!--        </el-radio-group>-->
-<!--      </el-col>-->
       <el-col :span="20">
         <el-form ref="entity" size="small" :inline="true">
           <el-form-item style="width: 20%;">
@@ -88,8 +81,17 @@
               涓嬭浇
             </el-button>
           </div>
-          <lims-table :tableData="tableData" :column="tableColumn" :tableLoading="tableLoading"
-            :height="550" :show-summary="true" :summary-method="getSummaries"></lims-table>
+          <el-table ref="passRateTable" :height="'calc(40vh - 40px)'" :data="tableData" border v-loading="tableLoading" show-summary :summary-method="getSummaries">
+            <el-table-column label="搴忓彿" type="index" align="center" width="80"></el-table-column>
+            <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" show-overflow-tooltip align="center" min-width="140"></el-table-column>
+            <el-table-column label="鍒拌揣鎵规" prop="totalBatch" show-overflow-tooltip align="center" min-width="140"></el-table-column>
+            <el-table-column label="涓嶅悎鏍兼壒娆�" prop="unqualifiedBatch" show-overflow-tooltip align="center" min-width="140"></el-table-column>
+            <el-table-column label="鍚堟牸鐜�(%)" prop="passRate" show-overflow-tooltip align="center" min-width="140">
+              <template slot-scope="scope">
+                {{ scope.row.passRate != null ? scope.row.passRate + '%' : '0%'}}
+              </template>
+            </el-table-column>
+          </el-table>
         </div>
       </el-col>
     </el-row>
@@ -423,17 +425,6 @@
       ],
       tableData: [],
       tableLoading: false,
-      tableColumn: [
-        { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName', minWidth: '200px' },
-        { label: '鍒拌揣鎵规', prop: 'totalBatch', minWidth: '100px' },
-        { label: '涓嶅悎鏍兼壒娆�', prop: 'unqualifiedBatch', minWidth: '100px' },
-        {
-          label: '鍚堟牸鐜�(%)',
-          prop: 'passRate',
-          minWidth: '100px',
-          formatData: (val) => (val != null ? val + '%' : '0%')
-        }
-      ],
       rawPassRate: '',
       conductorPassRate: '',
       dlanPassRate: '',
@@ -725,6 +716,9 @@
         // Sort by totalBatch descending
         tableData.sort((a, b) => b.totalBatch - a.totalBatch);
         this.tableData = tableData;
+        this.$nextTick(()=>{
+          this.$refs.passRateTable.doLayout()
+        })
         this.tableLoading = false;
       }).catch(() => {
         this.tableLoading = false;

--
Gitblit v1.9.3