| | |
| | | .then((response) => { |
| | | const res = response.data |
| | | if (res.code == 200) { |
| | | sessionStorage.setItem('isdepartment',res.result.isdepartment) |
| | | sessionStorage.setItem('company',res.result.company) |
| | | sessionStorage.setItem('department',res.result.department) |
| | | sessionStorage.setItem('realname',res.result.realname) |
| | | localStorage.setItem('loginForm',JSON.stringify(loginForm)) |
| | | // this.$store.dispatch('user/getClassifyOne',1) |
| | | _this.loading = false |
| | |
| | | // return |
| | | } |
| | | } |
| | | |
| | | Cookies.set('token',data.token) |
| | | _this.$store.commit('SET_ROLES', data.roles) |
| | | Cookies.set('roles', JSON.stringify(data.roles)) |
| | | setToken(data.token) |
| | |
| | | Cookies.set('name', data.username) |
| | | Cookies.set('userId', data.id) |
| | | Cookies.set('company', data.company) |
| | | Cookies.set('companyid', data.companyid) |
| | | let address = ''; |
| | | if (data.city != null && data.city != 'null'){ |
| | | address = data.city |
| | |
| | | display: inline-block; |
| | | height: 474px; |
| | | width: 572px; |
| | | background: url("../../assets/img_bg_login.png") center no-repeat; |
| | | background: url("../../assets/bg.jpg") center no-repeat; |
| | | } |
| | | .login-main-form{ |
| | | display: inline-block; |