|
|
@ -85,7 +85,7 @@ export default {
|
|
|
|
password: "admin123",
|
|
|
|
password: "admin123",
|
|
|
|
rememberMe: false,
|
|
|
|
rememberMe: false,
|
|
|
|
processId: '',
|
|
|
|
processId: '',
|
|
|
|
processFloor:'',
|
|
|
|
processFloor: '',
|
|
|
|
code: "",
|
|
|
|
code: "",
|
|
|
|
uuid: ""
|
|
|
|
uuid: ""
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -206,14 +206,16 @@ export default {
|
|
|
|
Cookies.remove('rememberMe');
|
|
|
|
Cookies.remove('rememberMe');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
|
|
let data = this.options.find(v=>v.processId === this.loginForm.processId) || {}
|
|
|
|
let data = this.options.find(v => v.processId === this.loginForm.processId) || {}
|
|
|
|
let routeData = this.floorData.find(v=>v.floor === data.processFloor && v.processId === data.processId) || {}
|
|
|
|
let routeData = this.floorData.find(v => v.floor === data.processFloor && v.processId === data.processId) || {}
|
|
|
|
if(routeData.route){
|
|
|
|
let query = {a:1}
|
|
|
|
|
|
|
|
routeData.query = query
|
|
|
|
|
|
|
|
if (routeData.route) {
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/",query:{}}).catch(() => {
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/"}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -226,8 +228,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeProcess(processId){
|
|
|
|
changeProcess(processId) {
|
|
|
|
let process = this.options.find(v=>v.processId === processId)
|
|
|
|
let process = this.options.find(v => v.processId === processId)
|
|
|
|
this.loginForm.processFloor = process.processFloor;
|
|
|
|
this.loginForm.processFloor = process.processFloor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|