| | |
| | | > |
| | | <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"> |
| | |
| | | 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, |
| | |
| | | }).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)}` : '')); |