From fc7c94d3c56433945e19de8719fdd1f7bb6a8fa2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 26 六月 2025 09:43:31 +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 e3b317e..66ca0b9 100644
--- a/src/components/Table/ETable.vue
+++ b/src/components/Table/ETable.vue
@@ -38,7 +38,9 @@
<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>
+ @click="handleView(scope.row)">鏌ョ湅</el-button>
+ <el-button v-if="operations.includes('viewFile')" link type="primary" size="small"
+ @click="handleViewFile(scope.row)">鏌ョ湅闄勪欢</el-button>
</slot>
</template>
</el-table-column>
@@ -161,7 +163,7 @@
};
// 澶勭悊閫夋嫨鍙樺寲銆佺紪杈戙�佸垹闄ゅ拰瀵煎嚭鎿嶄綔
-const emit = defineEmits(['selection-change', 'edit', 'delete', 'export', 'viewRow'])
+const emit = defineEmits(['selection-change', 'edit', 'delete', 'export', 'viewRow', 'viewFile'])
const handleSelectionChange = (selection) => {
emit('selection-change', selection)
}
@@ -171,6 +173,9 @@
const handleView = (row) => {
emit('viewRow', row)
}
+const handleViewFile = (row) => {
+ emit('viewFile', row)
+}
const handleDelete = (row) => {
ElMessageBox.confirm(
props.deleteConfirmText,
--
Gitblit v1.9.3