| | |
| | | :close-on-click-modal="false" |
| | | :show-close="false" |
| | | top="5vh" |
| | | class="dialogVisible" |
| | | > |
| | | <div style="font-size:20px;"> |
| | | <div style="font-size:18px;"> |
| | | <!-- <i class="el-icon-warning-outline" style="color: #ffef00" />--> |
| | | 当前账号已登录,是否强制下线! |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">否</el-button> |
| | | <el-button type="primary" @click="dialogVisibleConfirm">是</el-button> |
| | |
| | | if (valid) { |
| | | this.loading = true |
| | | this.$store.dispatch('user/login', this.loginForm).then(() => { |
| | | console.log(getCookie('code') === '302') |
| | | console.log(getCookie('code') === '302', 9999) |
| | | if (getCookie('code') === '302') { |
| | | this.dialogVisible = true |
| | | } else { |
| | |
| | | if (res.code === '200') { |
| | | this.$message.success('强制下线成功!') |
| | | this.dialogVisible = false |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | // this.$router.push({ path: this.redirect || '/' }) |
| | | await this.handleLogin() |
| | | } |
| | | } |
| | | } |
| | |
| | | ::v-deep .el-dialog__title{ |
| | | color: red; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__body { |
| | | padding: 20px 20px !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__footer { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | .footerButton { |
| | | display: flex; |
| | | justify-content: end; |
| | | } |
| | | ::v-deep .dialogVisible .el-button--primary { |
| | | background-color: #42b983 !important; |
| | | height: 30px; |
| | | display: flex; |
| | | align-items: center; |
| | | //border: 1px solid $main_color; |
| | | border: none; |
| | | padding: 0 20px; |
| | | } |
| | | ::v-deep .dialogVisible .el-button--default { |
| | | height: 30px; |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 0 20px; |
| | | } |
| | | |
| | | </style> |