|
|
@ -78,12 +78,26 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
submit() {
|
|
|
|
submit() {
|
|
|
|
|
|
|
|
let _this = this;
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(
|
|
|
|
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(
|
|
|
|
(response) => {
|
|
|
|
(response) => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
window.history.back(); //返回上一页
|
|
|
|
// 修改成功退出登录
|
|
|
|
|
|
|
|
this.$store.dispatch("LogOut").then(() => {
|
|
|
|
|
|
|
|
let isGovernmentAffairsNetwork = localStorage.getItem(
|
|
|
|
|
|
|
|
"isGovernmentAffairsNetwork"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
// console.log("进入跳转政务网的登录页");
|
|
|
|
|
|
|
|
if (isGovernmentAffairsNetwork == "1") {
|
|
|
|
|
|
|
|
localStorage.removeItem("isGovernmentAffairsNetwork");
|
|
|
|
|
|
|
|
location.href = process.env.VUE_APP_SSO_LOGOUT_N;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
localStorage.removeItem("isGovernmentAffairsNetwork");
|
|
|
|
|
|
|
|
location.href = "/login?redirect=%2Findex";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -91,7 +105,20 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
close() {
|
|
|
|
close() {
|
|
|
|
// this.$tab.closePage();
|
|
|
|
// this.$tab.closePage();
|
|
|
|
window.history.back(); //返回上一页
|
|
|
|
// window.history.back(); //返回上一页
|
|
|
|
|
|
|
|
this.ifUser();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
ifUser() {
|
|
|
|
|
|
|
|
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
|
|
|
|
|
|
|
|
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
|
|
|
|
|
|
|
|
this.$router.replace({
|
|
|
|
|
|
|
|
path: "/planManage",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$router.replace({
|
|
|
|
|
|
|
|
path: "/home",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|