diff --git a/orion-visor-ui/src/api/asset/host-config.ts b/orion-visor-ui/src/api/asset/host-config.ts
index 7a089263..281d34a0 100644
--- a/orion-visor-ui/src/api/asset/host-config.ts
+++ b/orion-visor-ui/src/api/asset/host-config.ts
@@ -51,6 +51,16 @@ export interface HostRdpConfig extends HostBaseConfig {
remoteAppArgs?: string;
}
+// 主机 VNC 配置
+export interface HostVncConfig extends HostBaseConfig {
+ identityId?: number;
+ noUsername?: boolean;
+ noPassword?: boolean;
+ portForwardId?: number;
+ timezone?: string;
+ clipboardEncoding?: string;
+}
+
/**
* 更新主机配置
*/
diff --git a/orion-visor-ui/src/api/asset/host-extra.ts b/orion-visor-ui/src/api/asset/host-extra.ts
index 9fb2b142..08ebbbca 100644
--- a/orion-visor-ui/src/api/asset/host-extra.ts
+++ b/orion-visor-ui/src/api/asset/host-extra.ts
@@ -33,6 +33,12 @@ export interface HostRdpExtraSettingModel {
initialProgram: string;
}
+// VNC 额外配置
+export interface HostVncExtraSettingModel {
+ port: number;
+ lowBandwidthMode: boolean;
+}
+
// 标签额外配置
export interface HostLabelExtraSettingModel {
alias: string;
diff --git a/orion-visor-ui/src/api/asset/host.ts b/orion-visor-ui/src/api/asset/host.ts
index 08320dd9..a01dd48e 100644
--- a/orion-visor-ui/src/api/asset/host.ts
+++ b/orion-visor-ui/src/api/asset/host.ts
@@ -5,7 +5,7 @@ import axios from 'axios';
import qs from 'query-string';
// 主机类型
-export type HostType = 'SSH' | string | undefined;
+export type HostType = 'SSH' | 'RDP' | 'VNC' | string | undefined;
/**
* 主机创建请求
diff --git a/orion-visor-ui/src/views/asset/host-list/components/host-form-drawer.vue b/orion-visor-ui/src/views/asset/host-list/components/host-form-drawer.vue
index 85dc3ed0..03ea8519 100644
--- a/orion-visor-ui/src/views/asset/host-list/components/host-form-drawer.vue
+++ b/orion-visor-ui/src/views/asset/host-list/components/host-form-drawer.vue
@@ -51,6 +51,15 @@
class="form-panel"
:hostId="hostId" />
+
+
+
+
@@ -64,14 +73,15 @@
diff --git a/orion-visor-ui/src/views/asset/host-list/components/host-form-ssh.vue b/orion-visor-ui/src/views/asset/host-list/components/host-form-ssh.vue
index 301fbcc1..33367941 100644
--- a/orion-visor-ui/src/views/asset/host-list/components/host-form-ssh.vue
+++ b/orion-visor-ui/src/views/asset/host-list/components/host-form-ssh.vue
@@ -4,8 +4,9 @@
+ :label-col-props="{ span: 6 }"
+ :wrapper-col-props="{ span: 18 }"
+ :rules="formRules">
+ label="主机密码">
@@ -105,7 +104,6 @@
mini>