From 846fc224acef8e2e98bfdaaeb6b219c31ec20904 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 09 九月 2024 11:09:50 +0800 Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.Admin.V1.0 into test --- src/views/project/yw/dataManage/graph/GraphIndex.vue | 44 ++++++++++++++++++++++++++++++++++---------- 1 files changed, 34 insertions(+), 10 deletions(-) diff --git a/src/views/project/yw/dataManage/graph/GraphIndex.vue b/src/views/project/yw/dataManage/graph/GraphIndex.vue index af642ae..fcd0cc7 100644 --- a/src/views/project/yw/dataManage/graph/GraphIndex.vue +++ b/src/views/project/yw/dataManage/graph/GraphIndex.vue @@ -87,16 +87,30 @@ > <el-table-column prop="name" label="鏂囦欢鍚嶇О" fixed="left" show-overflow-tooltip align="left" /> <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> @@ -174,7 +188,7 @@ import LeftTreeByMgr from '/@/components/tree/leftTreeByMgr.vue'; import { useQueryTable } from '/@/hooks/useQueryTable'; import { deepClone } from '/@/utils/other'; -import { convertListToTree } from '/@/utils/util'; +import { convertFileSize, convertListToTree } from '/@/utils/util'; const state = reactive({ tableParams: { PageIndex: 1, @@ -233,6 +247,9 @@ }).finally(() => {}); if (res?.json_ok) { const resData = (res.values || []) as []; + resData.forEach((item) => { + item.size = convertFileSize(item.size); + }); categoryTableData.value = resData; } else { ElMessage.error('鑾峰彇鏂囨。鍒楄〃澶辫触' + (res?.json_msg ? `锛�${JSON.stringify(res.json_msg)}` : '')); @@ -280,7 +297,14 @@ }, }); }; - +const handleViewKnowledgeFile = (row) => { + router.push({ + name: 'ViewFile', + query: { + id: row.id, + }, + }); +}; //瀵煎叆鏁版嵁 const importData = () => { router.push({ -- Gitblit v1.9.3