mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 07:09:14 +00:00
Merge pull request #2973 from jumpserver/pr@dev@feat_windows_winrm
feat: Windows类型资产增加winrm协议
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -331,6 +331,7 @@
|
||||
"Pending": "Pending",
|
||||
"Platform": "Platform",
|
||||
"PlatformDetail": "Platform detail",
|
||||
"UseSSL": "Enable SSL",
|
||||
"ProtocolsGroup": "Protocols group",
|
||||
"DefaultPort": "Default port",
|
||||
"primary": "primary",
|
||||
|
@@ -324,6 +324,7 @@
|
||||
"Pending": "待つ",
|
||||
"Platform": "システムプラットフォーム",
|
||||
"PlatformDetail": "プラットフォームの詳細",
|
||||
"UseSSL": "SSLを立ち上げます",
|
||||
"ProtocolsGroup": "プロトコル・グループ",
|
||||
"DefaultPort": "デフォルトポート",
|
||||
"primary": "メジャー",
|
||||
|
@@ -338,6 +338,7 @@
|
||||
"Pending": "等待",
|
||||
"Platform": "系统平台",
|
||||
"PlatformDetail": "平台详情",
|
||||
"UseSSL": "开启 SSL",
|
||||
"ProtocolsGroup": "协议",
|
||||
"DefaultPort": "默认端口",
|
||||
"Primary": "主要的",
|
||||
|
Reference in New Issue
Block a user