| | |
| | | <el-button |
| | | :loading="loading" |
| | | type="primary" |
| | | style="width:100%;margin-top:20px;letter-spacing: 10px" |
| | | style="width:100%;margin-top:30px;letter-spacing: 10px;height: 40px;" |
| | | @click.native.prevent="handleLogin" |
| | | >登录 |
| | | </el-button> |
| | |
| | | if (getCookie('code') === '302') { |
| | | this.dialogVisible = true |
| | | } else { |
| | | // console.log(typeof getCookie('description')) |
| | | // console.log(getCookie('description') === '') |
| | | // this.$store.state.settings.orgType = getCookie('description')// 组织类型 |
| | | // console.log(this.$store.state.settings.orgType, 88) |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | } |
| | | this.loading = false |
| | |
| | | }, |
| | | |
| | | dialogVisibleCancel() { |
| | | // removeCookie('username') |
| | | // removeCookie('admin') |
| | | // removeCookie('navTabId') |
| | | // removeCookie('usertype') |
| | | // removeCookie('userid') |
| | | // removeCookie('code') |
| | | // removeCookie('stu_torgcode') |
| | | // removeCookie('stu_torgname') |
| | | // removeCookie('description') |
| | | // localStorage.removeItem('token') |
| | | this.dialogVisible = false |
| | | }, |
| | | async dialogVisibleConfirm() { |
| | | // const usercode = getCookie('navTabId') |
| | | // const username = getCookie('admin') |
| | | // const usertype = getCookie('usertype') |
| | | // const userid = getCookie('userid') |
| | | // const stu_torgcode = getCookie('stu_torgcode') |
| | | // const data = { |
| | | // usercode, |
| | | // username, |
| | | // usertype, |
| | | // userid, |
| | | // rid: '', |
| | | // stu_torgcode |
| | | // } |
| | | const data = { |
| | | token: localStorage.getItem('token'), |
| | | rid: '' |
| | | } |
| | | const res = await ForcedOffline(data) |
| | | if (res.code === '200') { |
| | | this.$message.success('强制下线成功!') |
| | | this.$notify.success('强制下线成功!') |
| | | this.dialogVisible = false |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | // await this.handleLogin() |