修改无数据匹配工位

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

@ -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) {

Loading…
Cancel
Save