NEZ-613 fix:

1.asset 编辑页面bug ssh port 默认端口:22
2.asset model 搜索分页国际化添加
This commit is contained in:
@changcode
2021-05-17 13:31:25 +08:00
parent db03694824
commit 1467f15a7c
4 changed files with 13 additions and 10 deletions

View File

@@ -379,12 +379,10 @@ export default {
handler (n) {
if (n) {
this.vmLock = n.vm === 1 // vm == 1 时锁定model和location
if (!this.editAsset.authProtocolPort) {
if (n.authProtocol === this.assetConstants.authProtocolData.ssh) {
this.editAsset.authProtocolPort = 22
} else if (n.authProtocol === this.assetConstants.authProtocolData.telnet) {
this.editAsset.authProtocolPort = 23
}
if (n.authProtocol === this.assetConstants.authProtocolData.ssh) {
this.editAsset.authProtocolPort = 22
} else if (n.authProtocol === this.assetConstants.authProtocolData.telnet) {
this.editAsset.authProtocolPort = 23
}
}
}