|
|
@ -29,9 +29,9 @@
|
|
|
|
:value="item.processId"></el-option>
|
|
|
|
:value="item.processId"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工位编号" prop="processFloor" v-if="false">
|
|
|
|
<el-form-item label="工位编号" prop="processFloor" v-if="false">
|
|
|
|
<el-input v-model="loginForm.processFloor"/>
|
|
|
|
<el-input v-model="loginForm.processFloor"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item v-if="captchaEnabled" prop="code">
|
|
|
|
<el-form-item v-if="captchaEnabled" prop="code">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="loginForm.code"
|
|
|
|
v-model="loginForm.code"
|
|
|
@ -85,7 +85,7 @@ export default {
|
|
|
|
password: "admin123",
|
|
|
|
password: "admin123",
|
|
|
|
rememberMe: false,
|
|
|
|
rememberMe: false,
|
|
|
|
processId: '',
|
|
|
|
processId: '',
|
|
|
|
processFloor:'',
|
|
|
|
processFloor: '',
|
|
|
|
code: "",
|
|
|
|
code: "",
|
|
|
|
uuid: ""
|
|
|
|
uuid: ""
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -206,14 +206,16 @@ export default {
|
|
|
|
Cookies.remove('rememberMe');
|
|
|
|
Cookies.remove('rememberMe');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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) || {}
|
|
|
|
if(routeData.route){
|
|
|
|
let query = {a:1}
|
|
|
|
|
|
|
|
routeData.query = query
|
|
|
|
|
|
|
|
if (routeData.route) {
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
sessionStorage.setItem("FLOORDATA", JSON.stringify(routeData))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// this.$router.push({path: this.redirect || "/"}).catch(() => {
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/",query:{}}).catch(() => {
|
|
|
|
this.$router.push({path: routeData.route || this.redirect || "/"}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -226,8 +228,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeProcess(processId){
|
|
|
|
changeProcess(processId) {
|
|
|
|
let process = this.options.find(v=>v.processId === processId)
|
|
|
|
let process = this.options.find(v => v.processId === processId)
|
|
|
|
this.loginForm.processFloor = process.processFloor;
|
|
|
|
this.loginForm.processFloor = process.processFloor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|