Commit 8b7da2e1 authored by 吴春's avatar 吴春

跳过本次密码修改

parent fca89071
...@@ -611,7 +611,6 @@ ...@@ -611,7 +611,6 @@
border: 1px solid #e95252 !important; border: 1px solid #e95252 !important;
color: #e95252 !important; color: #e95252 !important;
} }
</style> </style>
<template> <template>
...@@ -619,7 +618,8 @@ ...@@ -619,7 +618,8 @@
<!-- 修改密码 --> <!-- 修改密码 -->
<div class="Per_Shouji"> <div class="Per_Shouji">
<div class="Shouji_Conteng"> <div class="Shouji_Conteng">
<div class="Shouji_Top">修改密码</div> <div class="Shouji_Top">修改密码 <span style="width:120px; font-size:12px;color:red;">为了账户的安全,建议定期更换密码</span></div>
<el-form :model="passWordMsg" ref="passWordMsg" label-position="right" :rules="rules2" label-width="100px"> <el-form :model="passWordMsg" ref="passWordMsg" label-position="right" :rules="rules2" label-width="100px">
<el-form-item v-if="sureOldPwd" label="旧密码" prop="OldPwd" style="margin-bottom:30px;"> <el-form-item v-if="sureOldPwd" label="旧密码" prop="OldPwd" style="margin-bottom:30px;">
<el-input type="password" class="w400" v-model="passWordMsg.OldPwd" maxlength="15"> <el-input type="password" class="w400" v-model="passWordMsg.OldPwd" maxlength="15">
...@@ -660,6 +660,8 @@ ...@@ -660,6 +660,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-button type="primary" style="margin:30px 0 0 100px; width:120px" @click="submitForm2('passWordMsg')">确定</el-button> <el-button type="primary" style="margin:30px 0 0 100px; width:120px" @click="submitForm2('passWordMsg')">确定</el-button>
<span type="primary" style="margin:30px 0 0 100px; width:120px; font-size:12px;cursor: pointer;text-decoration: underline;" @click="skipChangePwd('passWordMsg')">跳过</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -700,6 +702,24 @@ ...@@ -700,6 +702,24 @@
}; };
}, },
methods: { methods: {
//修改密码方法
skipChangePwd() {
this.apipost('admin_get_SkipSelfResetPwd', this.passWordMsg, res => {
if (res.data.resultCode == 1) {
// //修改成功后退出登录
setTimeout(() => {
this.$router.push({
path: "/personalCenter"
});
}, 1000);
} else {
this.Error(res.data.message);
}
}, err => {})
},
//修改密码 //修改密码
submitForm2(formName) { submitForm2(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment