From 253776d6feb74e16bded86ac2b0c0678ebe52261 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:55:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=8D=95=E4=B8=AA=E6=96=87=E4=BB=B6=E5=A4=8D=E5=88=B6=E5=86=8D?= =?UTF-8?q?=E9=80=89=E5=A4=9A=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2852)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/tw.ts | 2 +- frontend/src/lang/modules/zh.ts | 2 +- frontend/src/views/host/file-management/index.vue | 9 +++++++-- frontend/src/views/host/file-management/move/index.vue | 1 + 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 056f6cfd557a..4d4825e04ef7 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 513d38d98a3d..1b1e2a41d8c0 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 8abf119813ec..10d50d1f686a 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 c81db005aa42..962f350f9a7a 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 a55e8d8a2ab3..dde6ebdc6ff2 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;