From fe6ce692ca0461a417236d47f972bfdc288383f1 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 25 六月 2025 09:29:39 +0800
Subject: [PATCH] 1.库存管理审核,合并表单修改

---
 src/components/Table/ETable.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/components/Table/ETable.vue b/src/components/Table/ETable.vue
index 24fe060..a43e501 100644
--- a/src/components/Table/ETable.vue
+++ b/src/components/Table/ETable.vue
@@ -2,7 +2,7 @@
     v-loading="loading" 
     :data="tableData" 
     :border="border" 
-    :show-selection="showSelection" 
+    :show-selection="showSelection"
     :max-height="maxHeight"
     :header-cell-style="{ background: '#EBEEF5', color: '#3D3D3D' }" 
     @selection-change="handleSelectionChange"
@@ -15,7 +15,7 @@
     :show-overflow-tooltip="showOverflowTooltip"
     ref="tableRef" 
     :row-key="rowKey"
-    style="width: 100%"
+    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">
@@ -37,6 +37,8 @@
         <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('viewFile')" link type="primary" size="small"
+            @click="handleView(scope.row)">鏌ョ湅闄勪欢</el-button>
           <!--            <el-button-->
           <!--              v-if="operations.includes('delete')"-->
           <!--              link-->
@@ -173,6 +175,9 @@
 const handleEdit = (row) => {
   emit('edit', row)
 }
+const handleView = (row) => {
+  emit('viewFile', row)
+}
 const handleDelete = (row) => {
   ElMessageBox.confirm(
     props.deleteConfirmText,

--
Gitblit v1.9.3