From ece2dfeb926d728b10db38038e4d12e9e9851c24 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期五, 06 六月 2025 17:38:10 +0800
Subject: [PATCH] 分页修改

---
 src/components/PIMTable/PIMTable.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index 2378c5e..ab817f8 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -2,9 +2,10 @@
   <el-table ref="multipleTable" v-loading="tableLoading" :border="border" :data="tableData"
     :header-cell-style="{ background: '#F0F1F5', color: '#333333' }" height="calc(100vh - 18.5em)"
     :highlight-current-row="highlightCurrentRow" :row-class-name="rowClassName" :row-style="rowStyle" :row-key="rowKey"
-    style="width: 100%" tooltip-effect="dark" @row-click="rowClick" @current-change="currentChange"
+    style="width: 100%" tooltip-effect="dark" @row-click="rowClick" @current-change="currentChange" :show-summary="isShowSummary"
+            :summary-method="summaryMethod"
     @selection-change="handleSelectionChange" class="lims-table">
-    <el-table-column align="center" type="selection" width="55" />
+    <el-table-column align="center" type="selection" width="55"  v-if="isSelection"/>
     <el-table-column align="center" label="搴忓彿" type="index" width="60" />
 
     <el-table-column v-for="(item, index) in column" :key="index" :column-key="item.columnKey"
@@ -123,6 +124,10 @@
     type: Function,
     default: () => { }
   },
+  summaryMethod: {
+    type: Function,
+    default: () => { }
+  },
   rowClick: {
     type: Function,
     default: () => { }
@@ -134,6 +139,14 @@
   border: {
     type: Boolean,
     default: true
+  },
+  isSelection: {
+    type: Boolean,
+    default: false,
+  },
+  isShowSummary: {
+    type: Boolean,
+    default: false,
   },
   highlightCurrentRow: {
     type: Boolean,
@@ -179,7 +192,6 @@
 })
 
 // Data
-const btnWidth = ref('120px')
 const uploadRefs = ref([])
 const currentFiles = ref({})
 const uploadKeys = ref({})
@@ -231,7 +243,7 @@
 // 鏂囦欢涓婁紶鍓嶆牎楠�
 const beforeUpload = (rawFile, index) => {
   currentFiles.value[index] = {}
-  if (rawFile.size > 1024 * 1024 * 10) {
+  if (rawfile.size > 1024 * 1024 * 10 * 10) {
     ElMessage.error('涓婁紶鏂囦欢涓嶈秴杩�10M')
     return false
   }
@@ -275,10 +287,6 @@
 </script>
 
 <style scoped lang="scss">
-:deep(.cell) {
-  padding: 0 !important;
-}
-
 .cell {
   white-space: nowrap;
   overflow: hidden;

--
Gitblit v1.9.3