|
@@ -368,6 +368,7 @@ struct LoginPage {
|
|
|
// stationId:CommonConstants.STATION_NANE as WorkstationInfo
|
|
|
// }
|
|
|
// })
|
|
|
+
|
|
|
console.log("tesTag1"+'+++++++++++++++'+this.workstation.stationDictValue)
|
|
|
if (this.loginName && this.loginName.length > 0 && this.password && this.password.length > 0) {
|
|
|
await getToken(this.loginName, this.password, this.dept?.id ? this.dept.id : 0, this.workstation?.id ? this.workstation.id : '0').then(token =>{
|
|
@@ -382,6 +383,7 @@ struct LoginPage {
|
|
|
CommonConstants.USER_ID = userInfo.id!
|
|
|
CommonConstants.USER_NAME = userInfo.userName!
|
|
|
CommonConstants.USER_AVATAR = userInfo.avatar!
|
|
|
+ CommonConstants.STATION_CODE = userInfo.stationCode!
|
|
|
CommonConstants.STATION_NANE = this.workstation && this.workstation.name ? this.workstation.name : ''
|
|
|
CommonConstants.STATION_ID = this.workstation && this.workstation.id ? Number.parseInt(this.workstation.id) : 0
|
|
|
let user = await UserAuthModel.getByUserId(userInfo.id?userInfo.id:0)
|