|
@@ -50,7 +50,7 @@
|
|
|
sob:"",
|
|
sob:"",
|
|
|
username:"",
|
|
username:"",
|
|
|
password:"",
|
|
password:"",
|
|
|
- workshop:"SMT"
|
|
|
|
|
|
|
+ workshop:"组装"
|
|
|
},
|
|
},
|
|
|
checked: true,
|
|
checked: true,
|
|
|
rules:{
|
|
rules:{
|
|
@@ -61,12 +61,9 @@
|
|
|
},
|
|
},
|
|
|
options: [],
|
|
options: [],
|
|
|
workshopoptions:[
|
|
workshopoptions:[
|
|
|
- {label: 'SMT', value: 'SMT'},
|
|
|
|
|
- {label: '焊接', value: '焊接'},
|
|
|
|
|
- {label: '组装车间', value: '组装'},
|
|
|
|
|
- {label: '各车间总看板', value: '所有'},
|
|
|
|
|
|
|
+ {label: '组装', value: '组装'},
|
|
|
|
|
+ {label: '包装', value: '包装'},
|
|
|
]
|
|
]
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -140,12 +137,10 @@
|
|
|
this.setCookieData();
|
|
this.setCookieData();
|
|
|
if(this.loginForm.workshop =='SMT'){
|
|
if(this.loginForm.workshop =='SMT'){
|
|
|
this.$router.push({path: this.redirect || '/smt'});
|
|
this.$router.push({path: this.redirect || '/smt'});
|
|
|
- }else if(this.loginForm.workshop =='焊接'){
|
|
|
|
|
|
|
+ }else if(this.loginForm.workshop =='包装'){
|
|
|
this.$router.push({path: this.redirect || '/hj'});
|
|
this.$router.push({path: this.redirect || '/hj'});
|
|
|
}else if(this.loginForm.workshop =='组装'){
|
|
}else if(this.loginForm.workshop =='组装'){
|
|
|
this.$router.push({path: this.redirect || '/assembly'});
|
|
this.$router.push({path: this.redirect || '/assembly'});
|
|
|
- }else if(this.loginForm.workshop =='所有'){
|
|
|
|
|
- this.$router.push({path: this.redirect || '/total'});
|
|
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
this.$message.error(res.reason);
|
|
this.$message.error(res.reason);
|