From 1e9fa82cb2fe2c15f46bd1dd73f5c878c74b83b8 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 04 八月 2022 15:35:50 +0800
Subject: [PATCH] 1.系统多账号登录问题2.采购订单页面样式修改及数据渲染

---
 src/views/login/index.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 0bf205c..be161d6 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -123,12 +123,14 @@
       :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>
@@ -215,7 +217,7 @@
         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 {
@@ -256,7 +258,8 @@
       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()
       }
     }
   }
@@ -451,4 +454,34 @@
 ::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>

--
Gitblit v1.9.3