From 84721f2e17bf3cf43742e51d99779385ee2db099 Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Sun, 22 Jun 2025 00:06:51 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../host-list/components/host-card-list.vue | 12 ++--- .../asset/host-list/components/host-table.vue | 51 +++++++++++++------ .../src/views/asset/host-list/types/const.ts | 4 ++ .../asset/host-list/types/table.columns.ts | 2 +- 4 files changed, 46 insertions(+), 23 deletions(-) diff --git a/orion-visor-ui/src/views/asset/host-list/components/host-card-list.vue b/orion-visor-ui/src/views/asset/host-list/components/host-card-list.vue index a3de2565..b885d8e2 100644 --- a/orion-visor-ui/src/views/asset/host-list/components/host-card-list.vue +++ b/orion-visor-ui/src/views/asset/host-list/components/host-card-list.vue @@ -188,9 +188,7 @@ :wrap="true"> @@ -244,11 +242,11 @@ @click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'SSH' } })"> SSH - - + - SFTP + @click="openNewRoute({ name: 'terminal', query: { connect: record.id, type: 'RDP' } })"> + RDP diff --git a/orion-visor-ui/src/views/asset/host-list/components/host-table.vue b/orion-visor-ui/src/views/asset/host-list/components/host-table.vue index 04476c51..180ce82e 100644 --- a/orion-visor-ui/src/views/asset/host-list/components/host-table.vue +++ b/orion-visor-ui/src/views/asset/host-list/components/host-table.vue @@ -233,9 +233,7 @@ :wrap="true"> @@ -255,6 +253,41 @@ diff --git a/orion-visor-ui/src/views/asset/host-list/types/const.ts b/orion-visor-ui/src/views/asset/host-list/types/const.ts index 2638c21b..870a0eef 100644 --- a/orion-visor-ui/src/views/asset/host-list/types/const.ts +++ b/orion-visor-ui/src/views/asset/host-list/types/const.ts @@ -20,6 +20,10 @@ export const HostType = { value: 'SSH', port: 22, }, + RDP: { + value: 'RDP', + port: 3389, + }, }; // 系统类型 diff --git a/orion-visor-ui/src/views/asset/host-list/types/table.columns.ts b/orion-visor-ui/src/views/asset/host-list/types/table.columns.ts index 2f1c3873..fe6e064d 100644 --- a/orion-visor-ui/src/views/asset/host-list/types/table.columns.ts +++ b/orion-visor-ui/src/views/asset/host-list/types/table.columns.ts @@ -100,7 +100,7 @@ const columns = [ }, { title: '操作', slotName: 'handle', - width: 162, + width: 198, align: 'center', fixed: 'right', default: true,