|
|
@ -224,11 +224,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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) || null
|
|
|
|
|
|
|
|
if(this.$route?.query?.isStationId === 'true' && !routeData){
|
|
|
|
|
|
|
|
routeData = {
|
|
|
|
floor: 4,
|
|
|
|
floor: 4,
|
|
|
|
processId: 44,
|
|
|
|
processId: 44,
|
|
|
|
route: '/board/assemble'//装配
|
|
|
|
route: '/board/assemble'//装配
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
let query = { processName: this.loginForm.processName }
|
|
|
|
let query = { processName: this.loginForm.processName }
|
|
|
|
routeData.query = query
|
|
|
|
routeData.query = query
|
|
|
|
if (routeData.route) {
|
|
|
|
if (routeData.route) {
|
|
|
|