邮件发送问题查看
This commit is contained in:
parent
2d5d7824dc
commit
4650d2a0f9
|
|
@ -101,7 +101,7 @@
|
|||
<el-table-column type="index" width="50" />
|
||||
<el-table-column align="center" label="大类名称">
|
||||
<template slot-scope="scope"
|
||||
><span v-html="showlight(scope.row.dlmc)"></span
|
||||
><span v-html="showlight(scope.row.dlmc)" v-if="scope.row.dlmc"></span
|
||||
></template>
|
||||
</el-table-column>
|
||||
<el-table-column align="header-center" label="类别名称">
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column align="header-center" label="标准编号">
|
||||
<template slot-scope="scope"
|
||||
><span v-html="showlight(scope.row.bzbh)"></span
|
||||
><span v-html="showlight(scope.row.bzbh)" v-if="scope.row.bzbh"></span
|
||||
></template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="大类名称">
|
||||
<template slot-scope="scope"
|
||||
><span v-html="showlight(scope.row.dlmc)"></span
|
||||
><span v-html="showlight(scope.row.dlmc)" v-if="scope.row.dlmc"></span
|
||||
></template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类别名称">
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="标准编号">
|
||||
<template slot-scope="scope"
|
||||
><span v-html="showlight(scope.row.bzbh)"></span
|
||||
><span v-html="showlight(scope.row.bzbh)" v-if="scope.row.bzbh"></span
|
||||
></template>
|
||||
</el-table-column>
|
||||
<el-table-column label="限制范围">
|
||||
|
|
|
|||
|
|
@ -176,6 +176,9 @@ export default {
|
|||
redirect: undefined,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getUP()
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
handler: function (route) {
|
||||
|
|
@ -200,7 +203,13 @@ export default {
|
|||
this.getTimer()
|
||||
sendMsg({'mail':this.loginForm2.mail}).then(res=>{
|
||||
this.$message.success('验证码已发送至该邮箱,请注意查收')
|
||||
}).catch(e=>{})
|
||||
|
||||
}).catch(e=>{
|
||||
this.disabled = false;
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
this.buttonmsg = '发送验证码'
|
||||
})
|
||||
}else{
|
||||
this.$message.warning('请输入邮箱号')
|
||||
}
|
||||
|
|
@ -232,6 +241,8 @@ export default {
|
|||
.then(() => {
|
||||
this.$router.push({ path: this.redirect || "/" });
|
||||
this.loading = false;
|
||||
localStorage.setItem("rem_username", this.loginForm.username);
|
||||
localStorage.setItem("rem_password", this.loginForm.password);
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
|
|
@ -251,6 +262,7 @@ export default {
|
|||
.then(() => {
|
||||
this.$router.push({ path: this.redirect || "/" });
|
||||
this.loading2 = false;
|
||||
localStorage.setItem("rem_mail", this.loginForm2.mail);
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading2 = false;
|
||||
|
|
@ -261,6 +273,12 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
//读取cookie
|
||||
getUP() {
|
||||
this.loginForm2.mail = localStorage.getItem("rem_mail")
|
||||
this.loginForm.username = localStorage.getItem("rem_username");
|
||||
this.loginForm.password = localStorage.getItem("rem_password");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue