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