节点选择认证时增加推荐

This commit is contained in:
刘祥超
2021-08-14 21:33:48 +08:00
parent 86a5992e8a
commit b3f62240c4
23 changed files with 238 additions and 26 deletions

View File

@@ -113,7 +113,7 @@
<td>SSH登录认证</td>
<td>
<div v-if="node.login != null && node.login.grant != null && node.login.grant.id > 0">
<a :href="'/clusters/grants/grant?grantId=' + node.login.grant.id">{{node.login.grant.name}}<span class="small">{{node.login.grant.methodName}}</span></a>
<a :href="'/clusters/grants/grant?grantId=' + node.login.grant.id">{{node.login.grant.name}}<span class="small grey">{{node.login.grant.methodName}}</span><span class="small grey" v-if="node.login.grant.username.length > 0">{{node.login.grant.username}}</span></a>
</div>
<span v-else class="disabled">
尚未设置

View File

@@ -68,7 +68,7 @@
<tr>
<td>SSH登录认证</td>
<td>
<grant-selector :v-grant="grant"></grant-selector>
<grant-selector :v-grant="grant" :v-node-cluster-id="clusterId"></grant-selector>
</td>
</tr>
<tr>

View File

@@ -35,7 +35,8 @@ Tea.context(function () {
id: this.node.login.grant.id,
name: this.node.login.grant.name,
method: this.node.login.grant.method,
methodName: this.node.login.grant.methodName
methodName: this.node.login.grant.methodName,
username: this.node.login.grant.username
}
}
}