NEZ-2574 fix:Asset TELNET 回显不正确

This commit is contained in:
zhangyu
2023-02-16 15:12:18 +08:00
parent 1a3c89e275
commit 3e5b929d2c

View File

@@ -460,9 +460,9 @@ export default {
} else {
editAsset.showSSH = false
}
if (!editAsset.authType && this.editAsset.authUsername) {
if (!editAsset.authType && editAsset.authUsername) {
editAsset.showTelnet = true
} else if (!editAsset.authType && !this.editAsset.authUsername) {
} else if (!editAsset.authType && !editAsset.authUsername) {
editAsset.showTelnet = false
}
if (editAsset.type.snmpEnable === 1 && editAsset.snmpCredentialId) {
@@ -471,7 +471,7 @@ export default {
editAsset.showSnmp = false
}
this.editAsset = editAsset
this.editAsset.brandAndModel = [this.editAsset.brand.id, this.editAsset.model.id]
this.editAsset.brandAndModel = [editAsset.brand.id, editAsset.model.id]
this.editAsset.stateId = n.state ? n.state.id : 2
this.editAsset.typeId = n.type ? n.type.id : ''
this.$nextTick(() => {