Commit ede8d59a by wang_jiaxing

脑图跳转时登录

parent 7bcc5204
......@@ -1324,11 +1324,7 @@ export default {
if (this.$route.query["zjhm"]) {
sessionStorage.setItem("zjhm", this.$route.query["zjhm"]);
}
this.getRyxx();
this.postgetJjpgLwxxList();
this.postgetJjpgCxfsList();
this.showSeeksGraph();
this.initMap();
this.loginByZjhm();
self.propQueryField.forEach((val) => {
if (val.type == "code" || val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
......@@ -2511,6 +2507,41 @@ export default {
onLineClick(lineObject, $event) {
console.log("onLineClick:", lineObject);
},
postLoginByZjhm(zjhm) {
return request({
url: url.rzURL + "/loginByZjhm?zjhm=" + zjhm,
// data: JSON.parse(zjhm),
method: "POST",
});
},
loginByZjhm() {
if (this.$route.query["idcard"]) {
let zjhm = this.$route.query["idcard"];
console.log(zjhm);
this.postLoginByZjhm(zjhm).then((res) => {
if (res.code == 200) {
this.$router.push({
path: "/rydaIndex/ryGL",
query:{zjhm:sessionStorage.getItem("zjhm")}
});
debugger
this.getRyxx();
this.postgetJjpgLwxxList();
this.postgetJjpgCxfsList();
this.showSeeksGraph();
// this.initMap();
} else {
this.$message.error("登录失败");
}
});
} else {
this.getRyxx();
this.postgetJjpgLwxxList();
this.postgetJjpgCxfsList();
this.showSeeksGraph();
// this.initMap();
}
},
},
// watch: {
// ldList (val) {
......
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