oldcac主站

main
fanluyan 1 year ago
parent ac5a00ef4a
commit da20a32edf

@ -237,50 +237,50 @@ export default {
loginCAC(page) {
console.log(page);
console.log(this.hostName);
if (page == 1) {
window.location.href = this.hostName + "newcac/index.html#/dataReport";
//window.open(this.hostName + "/newcac/#/dataReport");
} else if (page == 2) {
window.location.href = this.hostName + "newcac/index.html#/equipment";
// window.open(this.hostName + "/newcac/#/equipment");
} else if (page == 3) {
window.location.href = this.hostName + "newcac/index.html#/icdConfig";
//window.open(this.hostName + "/newcac/#/icdConfig");
}
// const userName = sessionStorage.getItem("userName");
// const password = decrypt(sessionStorage.getItem("password"));
// const passwordSJZD = "123456";
// if (page != 4) {
// window.open(
// // "http://192.168.145.147/index.php/index/login/index.html?name=" +
// //"http://192.168.128.32/index.php/index/login/index.html?name=" +
// "http://192.168.1.190/index.php/index/login/index.html?name=" +
// userName +
// "&password=" +
// password +
// "&page=" +
// page,
// "_blank"
// );
// } else {
// const params = {
// userName: userName,
// password: passwordSJZD,
// };
// //
// axios.post("/sysLoginRemoteController/login", params).then((res) => {
// if (res && res.data.code === 200) {
// //访
// window.open(
// //"http://192.168.135.81:88/login?token=" + res.data.token,
// //"http://192.168.128.32/login?token=" + res.data.token,
// "http://192.168.50.200/login?token=" + res.data.token,
// "_blank"
// );
// return;
// }
// });
// if (page == 1) {
// window.location.href = this.hostName + "newcac/index.html#/dataReport";
// //window.open(this.hostName + "/newcac/#/dataReport");
// } else if (page == 2) {
// window.location.href = this.hostName + "newcac/index.html#/equipment";
// // window.open(this.hostName + "/newcac/#/equipment");
// } else if (page == 3) {
// window.location.href = this.hostName + "newcac/index.html#/icdConfig";
// //window.open(this.hostName + "/newcac/#/icdConfig");
// }
const userName = sessionStorage.getItem("userName");
const password = decrypt(sessionStorage.getItem("password"));
const passwordSJZD = "123456";
if (page != 4) {
window.open(
// "http://192.168.145.147/index.php/index/login/index.html?name=" +
//"http://192.168.128.32/index.php/index/login/index.html?name=" +
"http://192.168.1.190/index.php/index/login/index.html?name=" +
userName +
"&password=" +
password +
"&page=" +
page,
"_blank"
);
} else {
const params = {
userName: userName,
password: passwordSJZD,
};
//
axios.post("/sysLoginRemoteController/login", params).then((res) => {
if (res && res.data.code === 200) {
//访
window.open(
//"http://192.168.135.81:88/login?token=" + res.data.token,
//"http://192.168.128.32/login?token=" + res.data.token,
"http://192.168.50.200/login?token=" + res.data.token,
"_blank"
);
return;
}
});
}
},
// 退
logout() {

Loading…
Cancel
Save