From e547dfb950a19b2d54e2f06aadff7e2be15d6ced Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 09 八月 2023 17:17:23 +0800
Subject: [PATCH] 1.角色新增、修改、删除功能
---
src/views/login/index.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 7be91cc..4cb4a4b 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -143,7 +143,7 @@
<script>
import { validUsername } from '@/utils/validate'
import { getCookie, removeCookie, setCookie } from '@/utils/auth'
-import { ForcedOffline } from '@/api/user'
+import { ForcedOffline, UserTorgData } from '@/api/user'
import { ButtonData } from '@/api/basicSettings'
import Vue from 'vue'
@@ -219,14 +219,18 @@
if (valid) {
this.loading = true
this.$store.dispatch('user/login', this.loginForm).then(() => {
- // console.log(getCookie('code') === '302', 9999)
if (getCookie('code') === '302') {
this.dialogVisible = true
} else {
this.$router.push({ path: this.redirect || '/' })
- ButtonData().then(res => {
- sessionStorage.setItem('ButtonData', JSON.stringify(res.data))
- })
+ // ButtonData().then(res => {
+ // localStorage.setItem('ButtonData', JSON.stringify(res.data))
+ // })
+ // UserTorgData({ usercode: getCookie('usercode') }).then(res => {
+ // setCookie('username', res.data.user)
+ // // sessionStorage.setItem('username', res.data.user)
+ // sessionStorage.setItem('torg', JSON.stringify(res.data.torg))
+ // })
}
this.loading = false
}).catch(() => {
@@ -445,7 +449,8 @@
-webkit-text-fill-color: #000 !important;
}
}
-::v-deep .el-dialog__title{
+
+::v-deep .el-dialog__title {
color: red;
}
@@ -462,6 +467,7 @@
display: flex;
justify-content: end;
}
+
::v-deep .dialogVisible .el-button--primary {
background-color: #42b983 !important;
height: 30px;
@@ -471,6 +477,7 @@
border: none;
padding: 0 20px;
}
+
::v-deep .dialogVisible .el-button--default {
height: 30px;
display: flex;
--
Gitblit v1.9.3