gerson
2024-09-07 37179a65229455f540dc3ca62d31c4716e15d12d
src/views/project/yw/dataManage/graph/GraphIndex.vue
@@ -86,7 +86,8 @@
               highlight-current-row
            >
               <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="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,
@@ -234,8 +235,7 @@
   if (res?.json_ok) {
      const resData = (res.values || []) as [];
      resData.forEach((item) => {
         const type = item?.name.split('.')[1];
         item.type = type;
         item.size = convertFileSize(item.size);
      });
      categoryTableData.value = resData;
   } else {