修改无数据匹配工位

master
夜笙歌 2 weeks ago
parent 6bf0312e5b
commit d02fda5211

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

Loading…
Cancel
Save