Merge pull request #2973 from jumpserver/pr@dev@feat_windows_winrm

feat: Windows类型资产增加winrm协议
This commit is contained in:
老广
2023-04-07 11:10:07 +08:00
committed by GitHub
5 changed files with 17 additions and 0 deletions

View File

@@ -122,6 +122,12 @@ export default {
{ label: 'TLS', value: 'tls' }
]
},
{
id: 'use_ssl',
label: this.$t('assets.UseSSL'),
type: 'switch',
hidden: () => this.item.name !== 'winrm'
},
{
id: 'sftp_enabled',
label: this.$t('common.Enable') + ' SFTP',
@@ -165,6 +171,7 @@ export default {
}
},
created() {
this.form = this.item.setting
for (const i of this.baseAttrs) {
this.form[i] = !!this.item[i]
}

View File

@@ -167,6 +167,13 @@ export default {
})
this.items = [this.settingItem, ...others]
}
if (this.settingItem.name === 'winrm') {
if (this.settingItem.setting?.use_ssl) {
this.settingItem.port = 5986
} else {
this.settingItem.port = 5985
}
}
},
handleDelete(index) {
this.items = this.items.filter((value, i) => i !== index)

View File

@@ -331,6 +331,7 @@
"Pending": "Pending",
"Platform": "Platform",
"PlatformDetail": "Platform detail",
"UseSSL": "Enable SSL",
"ProtocolsGroup": "Protocols group",
"DefaultPort": "Default port",
"primary": "primary",

View File

@@ -324,6 +324,7 @@
"Pending": "待つ",
"Platform": "システムプラットフォーム",
"PlatformDetail": "プラットフォームの詳細",
"UseSSL": "SSLを立ち上げます",
"ProtocolsGroup": "プロトコル・グループ",
"DefaultPort": "デフォルトポート",
"primary": "メジャー",

View File

@@ -338,6 +338,7 @@
"Pending": "等待",
"Platform": "系统平台",
"PlatformDetail": "平台详情",
"UseSSL": "开启 SSL",
"ProtocolsGroup": "协议",
"DefaultPort": "默认端口",
"Primary": "主要的",