This commit is contained in:
chenjianxing 2020-06-10 11:12:32 +08:00
commit 3a9763ed82
1 changed files with 4 additions and 5 deletions

View File

@ -36,7 +36,7 @@
<el-form-item :label="$t('system_parameter_setting.SMTP_password')" prop="password"> <el-form-item :label="$t('system_parameter_setting.SMTP_password')" prop="password">
</el-form-item> </el-form-item>
<el-input v-model="formInline.password" :placeholder="$t('system_parameter_setting.SMTP_password')" <el-input v-model="formInline.password" :placeholder="$t('system_parameter_setting.SMTP_password')"
autocomplete="new-password" show-password type="text" @focus="changeType"> autocomplete="new-password" show-password type="text" @focus="changeType" ref="input">
</el-input> </el-input>
</el-col> </el-col>
</el-row> </el-row>
@ -80,6 +80,8 @@
account: 'xjj0608@163.com', account: 'xjj0608@163.com',
password: '2345678',*/ password: '2345678',*/
}, },
input: '',
visible: true, visible: true,
result: {}, result: {},
showEdit: true, showEdit: true,
@ -116,11 +118,8 @@
}, },
methods: { methods: {
changeType() { changeType() {
this.type = 'password' this.$refs.input = 'password'
}, },
/*changePass(value) {
this.visible = !(value === 'show');
},*/
query() { query() {
this.result = this.$get("/system/mail/info", response => { this.result = this.$get("/system/mail/info", response => {
this.$set(this.formInline, "host", response.data[0].paramValue); this.$set(this.formInline, "host", response.data[0].paramValue);