From b01a1c6b97a120c7d7fc2a19a23ae55121277fde Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期五, 06 九月 2024 16:49:15 +0800 Subject: [PATCH] 新增数据管理的字段 --- 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