From 37179a65229455f540dc3ca62d31c4716e15d12d Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期六, 07 九月 2024 14:32:17 +0800 Subject: [PATCH] 集成 chat组件 --- src/views/project/yw/dataManage/graph/GraphIndex.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/views/project/yw/dataManage/graph/GraphIndex.vue b/src/views/project/yw/dataManage/graph/GraphIndex.vue index af642ae..4e206f5 100644 --- a/src/views/project/yw/dataManage/graph/GraphIndex.vue +++ b/src/views/project/yw/dataManage/graph/GraphIndex.vue @@ -87,6 +87,7 @@ > <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"> <template #default="scope"> @@ -174,7 +175,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 +234,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)}` : '')); -- Gitblit v1.9.3