From 39c8b288ec8294e026459dfb1955f0bbc49ebb52 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 19 十月 2026 11:10:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/login.vue |  102 ++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 88 insertions(+), 14 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index eaafca4..c166a26 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -1,5 +1,3 @@
-
-
 <template>
   <div class="login">
     <el-form
@@ -15,6 +13,7 @@
           type="text"
           auto-complete="off"
           placeholder="璐﹀彿"
+          @blur="handleUsernameBlur"
         >
           <svg-icon
             slot="prefix"
@@ -27,6 +26,7 @@
         <el-input
           v-model="loginForm.password"
           type="password"
+          show-password
           auto-complete="off"
           placeholder="瀵嗙爜"
           @keyup.enter.native="handleLogin"
@@ -95,10 +95,19 @@
         </div>
       </el-form-item>
     </el-form>
-    <!--  搴曢儴  -->
-    <!-- <div class="el-login-footer">
-      <span style="color: #568FBD; font-size: 25px;">Copyright 漏 2018-2022 ruoyi.vip All Rights Reserved.</span>
-    </div> -->
+    <!-- 搴曢儴淇℃伅 -->
+    <div class="el-login-footer">
+      <div class="footer-content">
+        <div class="footer-row">
+          <span class="tech-label">鎶�鏈敮鎸侊細</span>
+          <img src="@/assets/logo/Hrs.png" class="tech-logo" alt="logo" />
+          <span class="tech-name">娴欐睙浜ュ皵鏃剁鎶�鏈夐檺鍏徃</span>
+        </div>
+        <div class="footer-row">
+          <span class="hotline">鏈嶅姟鐑嚎锛�17778760073</span>
+        </div>
+      </div>
+    </div>
   </div>
 </template>
 
@@ -146,6 +155,7 @@
       immediate: true,
     },
   },
+
   created() {
     this.getorganization();
     this.getCode();
@@ -153,6 +163,12 @@
     // if (localStorage.getItem('orgid')) {
     //   this.loginForm.orgid = localStorage.getItem('orgid');
     // }
+  },
+    computed: {
+    isAdmin() {
+      const roles = this.$store.getters.roles || [];
+      return roles.includes("mydstaff");
+    }
   },
   methods: {
     getCode() {
@@ -175,6 +191,17 @@
           }));
         }
       });
+    },
+    // 杈撳叆瀹岃处鍙峰悗锛屾绱㈠彲閫夋満鏋勬槸鍚﹀寘鍚�滃崡鍗庨檮涓�鈥濓紝鑻ユ湁鍒欒嚜鍔ㄥ~鍏呭瘑鐮�
+    handleUsernameBlur() {
+      if (!this.loginForm.username) return;
+      const hasNanhua = this.options.some((item) => {
+        const label = item.label || "";
+        return label.includes("鍗楀崕") && label.includes("闄勪竴");
+      });
+      if (hasNanhua) {
+        this.loginForm.password = "nhfy@0230";
+      }
     },
     getCookie() {
       const username = Cookies.get("username");
@@ -212,7 +239,7 @@
           );
           this.loginForm.campusid = selectedOrg.campusid || 1;
           this.loginForm.orgid = selectedOrg.value || 1;
-          this.loginForm.orgname = selectedOrg.label || '';
+          this.loginForm.orgname = selectedOrg.label || "";
           // 甯備竴澶勭悊-----------------
           // if (selectedOrg) {
           //   if (selectedOrg.label.includes("婀栨花")) {
@@ -229,13 +256,23 @@
             .then((res) => {
               if (this.loginForm.username == "admin") {
                 this.$router.push({ path: "/index" }).catch(() => {});
+              } else if (this.isAdmin) {
+                console.log(1);
+
+                 this.$router
+                  .push({ path: "/Intelligentcenter/dispose" })
+                  .catch(() => {});
               } else {
+                console.log(2);
+
                 this.$router
                   .push({ path: "/followvisit/discharge" })
                   .catch(() => {});
               }
             })
             .catch(() => {
+              console.log(3);
+
               this.loading = false;
               if (this.captchaEnabled) {
                 this.getCode();
@@ -244,6 +281,7 @@
         }
       });
     },
+
   },
 };
 </script>
@@ -306,18 +344,54 @@
   }
 }
 .el-login-footer {
-  height: 40px;
-  line-height: 40px;
   position: fixed;
-  bottom: 0;
+  bottom: 20px;
+  left: 0;
+  right: 0;
   width: 100%;
   text-align: center;
-  color: #fff;
-  font-family: Arial;
-  font-size: 12px;
-  letter-spacing: 1px;
+  font-size: 13px;
+  color: #3664d9;
+  z-index: 10;
 }
 
+.footer-content {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  gap: 4px;
+}
+
+.footer-row {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.tech-logo {
+  width: 28px;
+  height: 28px;
+  margin: 0 6px;
+  vertical-align: middle;
+}
+
+.tech-label,
+.tech-name,
+.hotline {
+  color: #3664d9;
+  font-size: 13px;
+}
+
+.tech-name {
+  color: #3664d9;
+  font-weight: 500;
+}
+
+.hotline {
+  font-size: 12px;
+  color: #3664d9;
+}
 .login-code-img {
   height: 38px;
 }

--
Gitblit v1.9.3