修改无数据匹配工位

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

@ -224,11 +224,14 @@ export default {
}
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) || {
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,
processId: 44,
route: '/board/assemble'//
}
}
let query = { processName: this.loginForm.processName }
routeData.query = query
if (routeData.route) {

Loading…
Cancel
Save