From fb6e16a425e9ade08dbcca96d6a2f1c9b2f25b1e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 14 一月 2026 17:51:56 +0800
Subject: [PATCH] fix: 合格率统计调整:铜、铝合并为【导体】统计数据。明细表格字段更改和导出按钮
---
src/components/Table/lims-table.vue | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue
index 1f4e431..1b698ca 100644
--- a/src/components/Table/lims-table.vue
+++ b/src/components/Table/lims-table.vue
@@ -4,7 +4,7 @@
<el-table ref="multipleTable" v-loading="tableLoading" :border="border" :data="tableData"
:header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" :height="height"
:highlight-current-row="highlightCurrentRow" :row-class-name="rowClassName" :row-style="rowStyle"
- :row-key="rowKey" :span-method="spanMethod" stripe style="width: 100%" tooltip-effect="dark" @row-click="rowClick"
+ :row-key="rowKey" :span-method="spanMethod" :show-summary="showSummary" :summary-method="summaryMethod" stripe style="width: 100%" tooltip-effect="dark" @row-click="rowClick"
@current-change="currentChange" @selection-change="handleSelectionChange" class="lims-table">
<el-table-column align="center" type="selection" width="55" v-if="isSelection" />
<el-table-column align="center" label="搴忓彿" type="index" width="60" :index="indexMethod" />
@@ -260,6 +260,14 @@
};
},
},
+ showSummary: {
+ type: Boolean,
+ default: false
+ },
+ summaryMethod: {
+ type: Function,
+ default: null
+ }
},
data() {
return {
@@ -284,9 +292,13 @@
watch: {
tableData: {
handler() {
- // 褰撹〃鏍兼暟鎹彉鍖栨椂锛屽垵濮嬪寲 uploadKeys
this.tableData.forEach((_, index) => {
this.$set(this.uploadKeys, index, Date.now());
+ });
+ this.$nextTick(() => {
+ if (this.$refs.multipleTable) {
+ this.$refs.multipleTable.doLayout();
+ }
});
},
immediate: true
@@ -471,7 +483,7 @@
</script>
<style scoped>
-.el-table>>>.el-table__empty-text {
+.el-table ::v-deep .el-table__empty-text {
text-align: center;
}
@@ -479,7 +491,7 @@
color: rgb(64, 158, 255);
cursor: pointer;
}
->>>.cell {
+::v-deep .cell {
padding: 0 !important;
}
.cell {
--
Gitblit v1.9.3