diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 056f6cfd5..4d4825e04 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -955,7 +955,7 @@ const message = { downloading: 'Downloading...', infoDetail: 'File Properties', list: 'File List', - sub: 'Include subdirectory', + sub: 'Subdirectory', downlodSuccess: 'Download Success', theme: 'Theme', language: 'Language', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 513d38d98..1b1e2a41d 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -919,7 +919,7 @@ const message = { infoDetail: '文件屬性', root: '根目錄', list: '文件列表', - sub: '包含子目錄', + sub: '子目錄', downlodSuccess: '下載完成', theme: '主題', language: '語言', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 8abf11981..10d50d1f6 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -920,7 +920,7 @@ const message = { infoDetail: '文件属性', root: '根目录', list: '文件列表', - sub: '包含子目录', + sub: '子目录', downlodSuccess: '下载完成', theme: '主题', language: '语言', diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index c81db005a..962f350f9 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -95,7 +95,9 @@ - {{ $t('file.paste') }} + + {{ $t('file.paste') }}({{ fileMove.count }}) + @@ -369,7 +371,7 @@ const codeReq = reactive({ path: '', expand: false, page: 1, pageSize: 100 }); const fileUpload = reactive({ path: '' }); const fileRename = reactive({ path: '', oldName: '' }); const fileWget = reactive({ path: '' }); -const fileMove = reactive({ oldPaths: [''], type: '', path: '', name: '' }); +const fileMove = reactive({ oldPaths: [''], type: '', path: '', name: '', count: 0 }); const processPage = reactive({ open: false }); const createRef = ref(); @@ -690,10 +692,12 @@ const openRename = (item: File.File) => { const openMove = (type: string) => { fileMove.type = type; + fileMove.name = ''; const oldpaths = []; for (const s of selects.value) { oldpaths.push(s['path']); } + fileMove.count = selects.value.length; fileMove.oldPaths = oldpaths; if (selects.value.length == 1) { fileMove.name = selects.value[0].name; @@ -706,6 +710,7 @@ const closeMove = () => { tableRef.value.clearSelects(); fileMove.oldPaths = []; fileMove.name = ''; + fileMove.count = 0; moveOpen.value = false; }; diff --git a/frontend/src/views/host/file-management/move/index.vue b/frontend/src/views/host/file-management/move/index.vue index a55e8d8a2..dde6ebdc6 100644 --- a/frontend/src/views/host/file-management/move/index.vue +++ b/frontend/src/views/host/file-management/move/index.vue @@ -140,6 +140,7 @@ const acceptParams = async (props: MoveProps) => { addForm.oldPaths = props.oldPaths; addForm.type = props.type; addForm.newPath = props.path; + addForm.name = ''; type.value = props.type; if (props.name && props.name != '') { oldName.value = props.name;