二次验证弹框样式更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a6475baee9
commit
0963441235
|
@ -6,6 +6,7 @@
|
||||||
width="540px"
|
width="540px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
append-to-body
|
append-to-body
|
||||||
|
center
|
||||||
:show-close="status === 'login'"
|
:show-close="status === 'login'"
|
||||||
@close="cancel"
|
@close="cancel"
|
||||||
>
|
>
|
||||||
|
@ -17,21 +18,23 @@
|
||||||
label-position="right"
|
label-position="right"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="120px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
|
<!-- 邮箱 -->
|
||||||
|
<p class="tip">
|
||||||
|
<i class="el-icon-warning" style="color: #409eff"></i>
|
||||||
|
<span>{{ tip }}</span>
|
||||||
|
</p>
|
||||||
<!-- 用户名 -->
|
<!-- 用户名 -->
|
||||||
<el-form-item :label="$t('mfa:form:username')" prop="username">
|
<el-form-item :label="$t('mfa:form:username')" prop="username">
|
||||||
<el-input v-model="form.username" disabled />
|
<span>{{ form.username }}</span>
|
||||||
</el-form-item>
|
|
||||||
<!-- 邮箱 -->
|
|
||||||
<el-form-item :label="$t('mfa:form:email')" prop="EMail">
|
|
||||||
<el-input v-model="form.EMail" disabled />
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 验证码 -->
|
<!-- 验证码 -->
|
||||||
<el-form-item :label="$t('mfa:form:MFACode')" prop="Code">
|
<el-form-item :label="$t('mfa:form:MFACode')" prop="Code">
|
||||||
<el-input
|
<el-input
|
||||||
|
:placeholder="$t('mfa:form:input:placeholder:Codes')"
|
||||||
v-model="form.Code"
|
v-model="form.Code"
|
||||||
style="width: 180px; margin-right: 10px"
|
style="width: 240px; margin-right: 10px"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -44,11 +47,17 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<!-- 取消 -->
|
<!-- 取消 -->
|
||||||
<el-button size="small" @click="cancel" v-if="status === 'login'">
|
<!-- <el-button size="small" @click="cancel" v-if="status === 'login'">
|
||||||
{{ $t("mfa:button:cancel") }}
|
{{ $t("mfa:button:cancel") }}
|
||||||
</el-button>
|
</el-button> -->
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
<el-button type="primary" size="small" @click="save" :loading="loading">
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
@click="save"
|
||||||
|
:loading="loading"
|
||||||
|
style="width: 80%"
|
||||||
|
>
|
||||||
{{
|
{{
|
||||||
status === "login"
|
status === "login"
|
||||||
? $t("mfa:button:save")
|
? $t("mfa:button:save")
|
||||||
|
@ -65,6 +74,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
status: "login", // lock
|
status: "login", // lock
|
||||||
|
tip: null,
|
||||||
visible: false,
|
visible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
timer: null,
|
timer: null,
|
||||||
|
@ -110,6 +120,7 @@ export default {
|
||||||
this.form.username = username;
|
this.form.username = username;
|
||||||
this.form.EMail = EMail;
|
this.form.EMail = EMail;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
this.tip = this.$t("mfa:tip").replace("xx", EMail);
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
@ -169,4 +180,19 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.tip {
|
||||||
|
width: 86%;
|
||||||
|
margin: auto;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 0 10px;
|
||||||
|
line-height: 30px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #eee;
|
||||||
|
i {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue