Commit 3238c3e0 by dupengfei

登录老版个案侦办修改

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