+
+ 上传至文件夹: {{ parentPath }}
+
选择文件夹
-
-
-
+
+
+
+
+
+ {{ fileItem.file.webkitRelativePath }}
+
+
+
+
+
+ {{ fileItem.file.name }}
+
+
@@ -49,20 +76,56 @@
@@ -80,7 +143,7 @@
}
:deep(.arco-upload-list) {
- max-height: calc(100vh - 328px);
+ max-height: calc(100vh - 388px);
overflow-y: auto;
padding: 0 12px 0 0;
}
diff --git a/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue b/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue
index cc097954..4586dabc 100644
--- a/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue
+++ b/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue
@@ -64,7 +64,7 @@
import { useTerminalStore } from '@/store';
import { Message } from '@arco-design/web-vue';
import useLoading from '@/hooks/loading';
- import { openSftpCreateModalKey, openSftpMoveModalKey, openSftpChmodModalKey } from '../../types/terminal.const';
+ import { openSftpCreateModalKey, openSftpMoveModalKey, openSftpChmodModalKey, openSftpUploadModalKey } from '../../types/terminal.const';
import SftpTableHeader from './sftp-table-header.vue';
import SftpTable from './sftp-table.vue';
import SftpEditorHeader from './sftp-editor-header.vue';
@@ -94,6 +94,7 @@
const createModal = ref();
const moveModal = ref();
const chmodModal = ref();
+ const uploadModal = ref();
// 暴露打开创建模态框
provide(openSftpCreateModalKey, (sessionId: string, path: string, isTouch: boolean) => {
@@ -110,6 +111,11 @@
chmodModal.value?.open(sessionId, path, permission);
});
+ // 暴露打开上传模态框
+ provide(openSftpUploadModalKey, () => {
+ uploadModal.value?.open(props.tab.hostId, currentPath.value);
+ });
+
// 编辑文件
const editFile = (name: string, path: string) => {
setEditorLoading(true);
diff --git a/orion-ops-ui/src/views/host/terminal/components/transfer/transfer-drawer.vue b/orion-ops-ui/src/views/host/terminal/components/transfer/transfer-drawer.vue
new file mode 100644
index 00000000..5d0d7d37
--- /dev/null
+++ b/orion-ops-ui/src/views/host/terminal/components/transfer/transfer-drawer.vue
@@ -0,0 +1,57 @@
+