Commit 4607d7f0 by xue_wengang

用户管理跳转账号密码处理

parent a7ad96c6
......@@ -4337,6 +4337,11 @@ export default {
doLogin({
identitycard: this.$route.query.zjhm,
}).then((res) => {
let loginObj = {
username: res.USER.username,
password: atob(res.USER.password),
}
this.$store.commit("user/SET_LoginForm", loginObj);
window.localStorage.setItem("user", JSON.stringify(res.USER));
this.userInfos = JSON.parse(window.localStorage.getItem("user")) || "";
this.$store.commit("user/SET_UserInfo", this.userInfos);
......@@ -4405,7 +4410,7 @@ export default {
window.open('http://26.3.13.120:1004/#/jumplogin?idcard='+idcard, '_blank');
} else if (item.id == "7") {
window.open(
`http://26.3.13.120:9007/shiro/login?username=${this.loginForm.username}&password=${this.loginForm.password}`,
`http://26.3.13.120:9007/shiro/login?username=${this.loginForm.username}&password=${encodeURIComponent(this.loginForm.password)}`,
"_blank"
);
} else if (item.id == "8") {
......
......@@ -659,7 +659,6 @@ export default {
let navList = res.USER.permissions.split(",");
res.USER.permissions = navList;
Cookies.set("userMy", "");
debugger;
this.$store.commit("user/SET_LoginForm", this.loginForm);
if (JSON.stringify(res) !== "{}") {
Cookies.set("JSESSIONID", res.JSESSIONID, {
......@@ -746,8 +745,11 @@ export default {
let navList = res.data.USER.permissions.split(",");
res.data.USER.permissions = navList;
Cookies.set("userMy", "");
debugger;
this.$store.commit("user/SET_LoginForm", this.loginForm);
let loginObj = {
username: res.data.USER.username,
password: atob(res.data.USER.password),
}
this.$store.commit("user/SET_LoginForm", loginObj);
if (JSON.stringify(res) !== "{}") {
Cookies.set("JSESSIONID", res.JSESSIONID, {
expires: this._expires * (30 * 1000),
......
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