Commit 3238c3e0 by dupengfei

登录老版个案侦办修改

parent 02a1f833
...@@ -10,7 +10,7 @@ let base = { ...@@ -10,7 +10,7 @@ let base = {
ztptURL: "http://26.3.13.120:8088", ztptURL: "http://26.3.13.120:8088",
codeUrl: "", codeUrl: "",
BaseURL: "/apiAjzbGaw", //基础查询页得ip BaseURL: "/apiAjzbGaw", //基础查询页得ip
rzURL: "/apiXzxtGaw", //刑专二期得(日志)ip rzURL: "/apiXzxt", //刑专二期得(日志)ip
//BaseURL: "/apiAjzb", //基础查询页得ip //BaseURL: "/apiAjzb", //基础查询页得ip
//rzURL: "/apiXzxt", //刑专二期得(日志)ip //rzURL: "/apiXzxt", //刑专二期得(日志)ip
// bigwfwurl: "", // bigwfwurl: "",
......
...@@ -201,15 +201,17 @@ export default { ...@@ -201,15 +201,17 @@ export default {
}, },
created() { created() {
requestUserInfo.getYhxx("").then((res)=>{ requestUserInfo.getYhxx("").then((res)=>{
debugger
if (res.success === true){ if (res.success === true){
this.userInfo = res.data.rows; this.userInfo = res.data.rows;
this.loginSolar();
} }
}) });
},
},
mounted() { mounted() {
this.userInfo = JSON.parse(window.sessionStorage.getItem("userInfo")); //this.userInfo = JSON.parse(window.sessionStorage.getItem("userInfo"));
this.getQxpm(); this.getQxpm();
this.loginSolar();
}, },
methods: { methods: {
loginOut(){ loginOut(){
...@@ -245,11 +247,23 @@ export default { ...@@ -245,11 +247,23 @@ export default {
}) })
.catch((err) => {}); .catch((err) => {});
}, },
doLoginRequest(relUrl, from){ doLoginRequest(zjhm){
return Http({ let url = `http://10.100.17.118:9047/doLogin`
url: url.apiSolarGaw + relUrl, $.ajax({
data: from, url: url,
methods: "post", data: { zjhm: zjhm },
type: 'post',
dataType: 'json',
xhrFields: { withCredentials: true },
crossDomain: true,
success: function (res) {
if (res.state == 'success'){
console.log("login solarUpdate success")
} else {
console.log("login solarUpdate fail")
}
},
error: function () { }
}) })
}, },
...@@ -260,13 +274,7 @@ export default { ...@@ -260,13 +274,7 @@ export default {
let identitycard = this.userInfo.identitycard; let identitycard = this.userInfo.identitycard;
console.log(identitycard); console.log(identitycard);
//data.append("zjhm", this.userInfo.identitycard); //data.append("zjhm", this.userInfo.identitycard);
this.doLoginRequest(`/doLogin?zjhm=${identitycard}`, '').then((res)=>{ this.doLoginRequest(identitycard)
if (res.state == 'success'){
console.log("login solarUpdate success")
} else {
console.log("login solarUpdate fail")
}
}).catch(()=>{})
}, },
......
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