From 5ed513f472793d64c9e4b4102b430d97ae8600cd Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Wed, 25 Jun 2025 14:50:25 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E9=87=8D=E6=9E=84=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BB=A3=E7=A0=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/connect-log-clear-modal.vue | 4 +- .../components/connect-log-detail-drawer.vue | 9 +- .../components/connect-log-table.vue | 106 +++--- .../asset-audit/connect-log/types/const.ts | 6 +- .../connect-log/types/table.columns.ts | 4 +- .../components/connect-session-table.vue | 9 +- .../asset-audit/connect-session/index.vue | 25 +- .../connect-session/types/const.ts | 5 +- .../connect-session/types/table.columns.ts | 6 +- .../sftp-log/components/sftp-log-table.vue | 12 +- .../host-group/components/host-transfer.vue | 1 + .../components/host-key-form-drawer.vue | 2 +- .../host-list/components/host-card-list.vue | 4 +- .../host-list/components/host-form-drawer.vue | 10 + .../host-list/components/host-form-rdp.vue | 342 ++++++++++++++++++ .../host-list/components/host-form-ssh.vue | 11 +- .../asset/host-list/components/host-table.vue | 4 +- .../src/views/asset/host-list/types/const.ts | 22 +- .../views/asset/host-list/types/form.rules.ts | 20 + .../login/components/login-form.vue | 7 +- .../src/views/authentication/login/index.vue | 1 + .../workplace/components/batch-exec-table.vue | 6 +- .../components/operator-log-chart.vue | 3 +- .../components/terminal-connect-table.vue | 8 +- .../components/workplace-statistics.vue | 24 +- .../src/views/dashboard/workplace/index.vue | 30 +- .../views/dashboard/workplace/types/const.ts | 6 +- .../components/batch-upload-files.vue | 6 +- .../exec-command-host-log-table.vue | 8 +- .../components/exec-command-log-table.vue | 14 +- .../components/exec-command-panel-editor.vue | 2 +- .../components/exec-command-panel.vue | 4 +- .../components/exec-job-host-log-table.vue | 8 +- .../components/exec-job-log-table.vue | 98 ++--- .../components/exec-job-form-drawer.vue | 2 +- .../exec-job/components/exec-job-table.vue | 16 +- .../src/views/exec/exec-job/index.vue | 2 +- .../components/exec-template-table.vue | 18 +- .../components/upload-task-table.vue | 22 +- .../src/views/system/menu/types/form.rules.ts | 1 - .../info/components/user-operator-log.vue | 4 +- .../views/user/operator-log/types/const.ts | 2 - .../views/user/user/components/user-table.vue | 2 +- 43 files changed, 666 insertions(+), 230 deletions(-) create mode 100644 orion-visor-ui/src/views/asset/host-list/components/host-form-rdp.vue diff --git a/orion-visor-ui/src/views/asset-audit/connect-log/components/connect-log-clear-modal.vue b/orion-visor-ui/src/views/asset-audit/connect-log/components/connect-log-clear-modal.vue index bde1d424..ff304ebc 100644 --- a/orion-visor-ui/src/views/asset-audit/connect-log/components/connect-log-clear-modal.vue +++ b/orion-visor-ui/src/views/asset-audit/connect-log/components/connect-log-clear-modal.vue @@ -76,12 +76,12 @@ + + + + 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 c18cc3da..301fbcc1 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 @@ -18,8 +18,7 @@ + :help="HostAuthType.IDENTITY === formModel.authType ? '将使用主机身份的用户名' : undefined"> @@ -37,8 +36,7 @@ + :rules="passwordRules"> @@ -256,6 +254,11 @@ width: 100%; display: flex; justify-content: space-between; + + :deep(.arco-radio-button) { + width: 33%; + text-align: center; + } } .password-switch { 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 180ce82e..57c0ba06 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 @@ -257,13 +257,13 @@ 连接 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 870a0eef..d06b91c2 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 @@ -72,5 +72,25 @@ export const hostStatusKey = 'hostStatus'; // 主机 SSH 认证方式 字典项 export const sshAuthTypeKey = 'hostSshAuthType'; +// 主机密码认证方式 字典项 +export const passwordAuthTypeKey = 'hostPasswordAuthType'; + +// 时区 +export const timezoneKey = 'timezone'; + +// 键盘布局 +export const keyboardLayoutKey = 'keyboardLayout'; + +// 剪切板标准 +export const clipboardNormalizeKey = 'clipboardNormalize'; + +// 剪切板编码 +export const clipboardEncodingKey = 'clipboardEncoding'; + // 加载的字典值 -export const dictKeys = [hostTypeKey, hostOsTypeKey, hostArchTypeKey, hostStatusKey, sshAuthTypeKey]; +export const dictKeys = [ + hostTypeKey, hostOsTypeKey, hostArchTypeKey, hostStatusKey, + sshAuthTypeKey, passwordAuthTypeKey, + keyboardLayoutKey, timezoneKey, clipboardNormalizeKey, + clipboardEncodingKey, +]; diff --git a/orion-visor-ui/src/views/asset/host-list/types/form.rules.ts b/orion-visor-ui/src/views/asset/host-list/types/form.rules.ts index 459a14bd..da956171 100644 --- a/orion-visor-ui/src/views/asset/host-list/types/form.rules.ts +++ b/orion-visor-ui/src/views/asset/host-list/types/form.rules.ts @@ -112,4 +112,24 @@ export const sshFormRules = { }], } as Record; +// rdp 表单规则 +export const rdpFormRules = { + port: [{ + required: true, + message: '请输入 RDP 端口' + }, { + min: 1, + max: 65535, + message: 'RDP 端口不合法' + }], + authType: [{ + required: true, + message: '请选择认证方式' + }], + identityId: [{ + required: true, + message: '请选择主机身份' + }], +} as Record; + export default null; diff --git a/orion-visor-ui/src/views/authentication/login/components/login-form.vue b/orion-visor-ui/src/views/authentication/login/components/login-form.vue index 53385e1c..f205de15 100644 --- a/orion-visor-ui/src/views/authentication/login/components/login-form.vue +++ b/orion-visor-ui/src/views/authentication/login/components/login-form.vue @@ -1,7 +1,9 @@