|
@@ -177,12 +177,18 @@
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="Password:"
|
|
label="Password:"
|
|
|
prop="password">
|
|
prop="password">
|
|
|
- <el-input
|
|
|
|
|
- class="add-text"
|
|
|
|
|
- type="password"
|
|
|
|
|
- v-model="settingsForm.password"
|
|
|
|
|
- placeholder="Add text"
|
|
|
|
|
- maxlength="20"/>
|
|
|
|
|
|
|
+ <div class="flexc">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ class="add-text pwd"
|
|
|
|
|
+ ref="password"
|
|
|
|
|
+ :type="passwordType"
|
|
|
|
|
+ v-model="settingsForm.password"
|
|
|
|
|
+ placeholder="Email password"
|
|
|
|
|
+ maxlength="64"/>
|
|
|
|
|
+ <span class="show-pwd" @click="showPwd">
|
|
|
|
|
+ <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -397,7 +403,8 @@
|
|
|
features: [],
|
|
features: [],
|
|
|
featuresGroup: 0,
|
|
featuresGroup: 0,
|
|
|
manualValid: false,
|
|
manualValid: false,
|
|
|
- chargeTypeOptions: []
|
|
|
|
|
|
|
+ chargeTypeOptions: [],
|
|
|
|
|
+ passwordType: "password"
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -565,7 +572,17 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ showPwd() {
|
|
|
|
|
+ if (this.passwordType === 'password') {
|
|
|
|
|
+ this.passwordType = 'text'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.passwordType = 'password'
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.password.focus()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -599,11 +616,15 @@
|
|
|
}
|
|
}
|
|
|
.add-text {
|
|
.add-text {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ min-width: 150px;
|
|
|
max-width: 300px;
|
|
max-width: 300px;
|
|
|
}
|
|
}
|
|
|
.add-text ::v-deep .el-textarea__inner {
|
|
.add-text ::v-deep .el-textarea__inner {
|
|
|
font-family: sans-serif;
|
|
font-family: sans-serif;
|
|
|
}
|
|
}
|
|
|
|
|
+ .add-text.pwd ::v-deep .el-input__inner {
|
|
|
|
|
+ padding-right: 30px;
|
|
|
|
|
+ }
|
|
|
.value-text {
|
|
.value-text {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
max-width: 280px;
|
|
max-width: 280px;
|
|
@@ -704,4 +725,12 @@
|
|
|
word-break: break-all;
|
|
word-break: break-all;
|
|
|
white-space: normal;
|
|
white-space: normal;
|
|
|
}
|
|
}
|
|
|
|
|
+ .show-pwd {
|
|
|
|
|
+ width: 15px;
|
|
|
|
|
+ color: #666;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ margin-left: -24px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|