From 77286f9747a37e4a8a8713f1b7f2195652092795 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期一, 09 九月 2024 11:09:38 +0800
Subject: [PATCH] 文件列表新增查看文件块

---
 src/views/project/yw/dataManage/graph/GraphIndex.vue |   38 +++++++++++++++++++++++++++++---------
 1 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/src/views/project/yw/dataManage/graph/GraphIndex.vue b/src/views/project/yw/dataManage/graph/GraphIndex.vue
index 4e206f5..fcd0cc7 100644
--- a/src/views/project/yw/dataManage/graph/GraphIndex.vue
+++ b/src/views/project/yw/dataManage/graph/GraphIndex.vue
@@ -89,15 +89,28 @@
 					<el-table-column prop="type" width="120" label="鏂囦欢绫诲瀷" show-overflow-tooltip align="center" />
 					<el-table-column prop="size" width="120" label="鏂囦欢澶у皬" show-overflow-tooltip align="center" />
 					<el-table-column prop="time" label="涓婁紶鏃堕棿" show-overflow-tooltip width="280" align="center"></el-table-column>
-					<el-table-column label="鎿嶄綔" width="80" fixed="right" show-overflow-tooltip align="center">
+					<el-table-column label="鎿嶄綔" width="120" fixed="right" show-overflow-tooltip align="center">
 						<template #default="scope">
-							<!-- <el-button icon="ele-Tickets" size="small" text type="primary" @click="openOperateDemoPage(scope.row)"> 璇︽儏</el-button> -->
-							<el-tooltip effect="dark" content="鍒犻櫎" placement="top">
-								<i
-									class="ywifont ywicon-shanchu !text-[17px] text-red-400 cursor-pointer"
-									@click="deleteCurrentFormulaRow(scope.row)"
-								></i>
-							</el-tooltip>
+							<div class="space-x-2.5">
+								<el-tooltip effect="dark" content="鏂囨。璇︽儏" placement="top">
+									<i
+										class="ywifont ywicon-wendang !text-[17px] cursor-pointer text-blue-400"
+										@click="openOperateDemoPage(scope.row)"
+									></i>
+								</el-tooltip>
+								<el-tooltip effect="dark" content="鏌ョ湅" placement="top">
+									<i
+										class="ywifont ywicon-yulan !text-[17px] cursor-pointer text-blue-400"
+										@click="handleViewKnowledgeFile(scope.row)"
+									></i>
+								</el-tooltip>
+								<el-tooltip effect="dark" content="鍒犻櫎" placement="top">
+									<i
+										class="ywifont ywicon-shanchu !text-[17px] text-red-400 cursor-pointer"
+										@click="deleteCurrentFormulaRow(scope.row)"
+									></i>
+								</el-tooltip>
+							</div>
 						</template>
 					</el-table-column>
 				</el-table>
@@ -284,7 +297,14 @@
 		},
 	});
 };
-
+const handleViewKnowledgeFile = (row) => {
+	router.push({
+		name: 'ViewFile',
+		query: {
+			id: row.id,
+		},
+	});
+};
 //瀵煎叆鏁版嵁
 const importData = () => {
 	router.push({

--
Gitblit v1.9.3