([]);
@@ -223,7 +224,7 @@ const modePage = reactive({ open: false, modeForm: { path: '/', isDir: false, mo
const compressPage = reactive({ open: false, files: [''], name: '', dst: '' });
const deCompressPage = reactive({ open: false, path: '', name: '', dst: '', mimeType: '' });
const editorPage = reactive({ open: false, content: '', loading: false });
-const codeReq = reactive({ path: '', expand: false });
+const codeReq = reactive({ path: '', expand: false, page: 1, pageSize: 100 });
const uploadPage = reactive({ open: false, path: '' });
const renamePage = reactive({ open: false, path: '', oldName: '' });
const wgetPage = reactive({ open: false, path: '' });
@@ -239,14 +240,17 @@ const defaultProps = {
const paginationConfig = reactive({
page: 1,
- pageSize: 5,
+ pageSize: 100,
total: 0,
});
const search = async (req: File.ReqFile) => {
loading.value = true;
+ req.page = paginationConfig.page;
+ req.pageSize = paginationConfig.pageSize;
await GetFilesList(req)
.then((res) => {
+ paginationConfig.total = res.data.itemTotal;
data.value = res.data.items;
req.path = res.data.path;
const pathArray = req.path.split('/');
diff --git a/frontend/src/views/host/file-management/process/index.vue b/frontend/src/views/host/file-management/process/index.vue
index 956b67d55..413999576 100644
--- a/frontend/src/views/host/file-management/process/index.vue
+++ b/frontend/src/views/host/file-management/process/index.vue
@@ -7,15 +7,16 @@
:before-close="handleClose"
>
- {{ value['name'] }}
+ {{ $t('file.downloading') }} {{ value['name'] }}
- {{ value['written'] }}/{{ value['total'] }}
+ {{ getFileSize(value['written']) }}/{{ getFileSize(value['total']) }}