From c6d13e58d85fbaaceb49d4c24401b50143050173 Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期四, 26 六月 2025 18:01:24 +0800
Subject: [PATCH] 调整 基础管理煤种生产人 更改采购数计算逻辑 处理供应商数据回显问题

---
 src/components/Table/ETable.vue |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/components/Table/ETable.vue b/src/components/Table/ETable.vue
index a43e501..1f8fdfb 100644
--- a/src/components/Table/ETable.vue
+++ b/src/components/Table/ETable.vue
@@ -17,8 +17,8 @@
     :row-key="rowKey"
     style="width: 100%;"
   >
-    <el-table-column v-if="showSelection" type="selection" width="55" align="center" />
-    <el-table-column v-if="showIndex" label="搴忓彿" width="60" align="center" fixed="left">
+    <el-table-column v-if="showSelection" type="selection" width="55" align="center" :show-overflow-tooltip="false" />
+    <el-table-column v-if="showIndex" label="搴忓彿" width="60" align="center" fixed="left" :show-overflow-tooltip="false">
       <template #default="scope">
         {{ getRowIndex(scope.$index) }}
       </template>
@@ -32,20 +32,15 @@
       </el-table-column>
     </template>
     <!-- 鎿嶄綔鍒� -->
-    <el-table-column v-if="showOperations" :label="operationsLabel" :width="operationsWidth" fixed="right" align="center">
+    <el-table-column v-if="showOperations" :label="operationsLabel" :width="operationsWidth" :show-overflow-tooltip="false" fixed="right" align="center">
       <template #default="scope">
         <slot name="operations" :row="scope.row">
           <el-button v-if="operations.includes('edit')" link type="primary" size="small"
             @click="handleEdit(scope.row)">缂栬緫</el-button>
+          <el-button v-if="operations.includes('viewRow')" link type="primary" size="small"
+            @click="handleView(scope.row)">鏌ョ湅</el-button>
           <el-button v-if="operations.includes('viewFile')" link type="primary" size="small"
-            @click="handleView(scope.row)">鏌ョ湅闄勪欢</el-button>
-          <!--            <el-button-->
-          <!--              v-if="operations.includes('delete')"-->
-          <!--              link-->
-          <!--              type="danger"-->
-          <!--              size="small"-->
-          <!--              @click="handleDelete(scope.row)"-->
-          <!--            >鍒犻櫎</el-button>-->
+            @click="handleViewFile(scope.row)">鏌ョ湅闄勪欢</el-button>
         </slot>
       </template>
     </el-table-column>
@@ -168,7 +163,7 @@
 };
 
 // 澶勭悊閫夋嫨鍙樺寲銆佺紪杈戙�佸垹闄ゅ拰瀵煎嚭鎿嶄綔
-const emit = defineEmits(['selection-change', 'edit', 'delete', 'export'])
+const emit = defineEmits(['selection-change', 'edit', 'delete', 'export', 'viewRow', 'viewFile'])
 const handleSelectionChange = (selection) => {
   emit('selection-change', selection)
 }
@@ -176,6 +171,9 @@
   emit('edit', row)
 }
 const handleView = (row) => {
+  emit('viewRow', row)
+}
+const handleViewFile = (row) => {
   emit('viewFile', row)
 }
 const handleDelete = (row) => {

--
Gitblit v1.9.3