修改更新主机身份逻辑.

This commit is contained in:
lijiahang
2023-09-21 16:06:09 +08:00
parent b13cbd8cca
commit d236e57f85
10 changed files with 85 additions and 37 deletions

View File

@@ -64,20 +64,17 @@
label="密码"
style="justify-content: space-between;">
<a-input-password v-model="formModel.password"
:disabled="!formModel.useNewPassword"
:disabled="!isAddHandle && !formModel.useNewPassword"
:class="[isAddHandle ? 'password-input-full' : 'password-input']"
class="password-input"
placeholder="请输入私钥密码" />
<a-switch v-model="formModel.useNewPassword"
v-if="!isAddHandle"
class="password-switch"
type="round"
size="large">
<template #checked>
使用密码
</template>
<template #unchecked>
使用原密码
</template>
</a-switch>
size="large"
checked-text="使用新密码"
unchecked-text="使用密码" />
</a-form-item>
</a-form>
</a-spin>
@@ -241,6 +238,10 @@
width: 240px;
}
.password-input-full {
width: 100%;
}
.password-switch {
margin-left: 16px;
}