From fda28cff8d6ed7ce1acf878f3a23f8e77ecd53cf Mon Sep 17 00:00:00 2001
From: 陈雯静 <1134865194@qq.com>
Date: 星期三, 28 二月 2024 14:28:38 +0800
Subject: [PATCH] 1

---
 WebTM/views/user/login2.html |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/WebTM/views/user/login2.html b/WebTM/views/user/login2.html
index c8a0d38..44643ec 100644
--- a/WebTM/views/user/login2.html
+++ b/WebTM/views/user/login2.html
@@ -116,7 +116,7 @@
                             if (i == 0)
                                 Organization += '<option  style="color:blue;"  value="' + data[i].ID + '" selected>' + data[i].Name + '</option>';
                             else
-                            Organization += '<option  style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
+                                Organization += '<option  style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
 
                         }
                         $("#Organization").append(Organization);
@@ -129,7 +129,7 @@
                 }
             })
 
-         
+
 
             //form.render();
 
@@ -158,7 +158,7 @@
                 if (e.keyCode == 13) {
                     loging();
                 }
-            });          
+            });
             //鐢ㄦ埛鍚嶆鍥炶溅鍏夋爣绉诲埌瀵嗙爜妗�
             $('#LAY-user-login-username').on('keydown', function (e) {
                 if (e.keyCode == 13) {
@@ -203,7 +203,7 @@
                 var PassWord = $("#LAY-user-login-password").val();
                 layer.load(3);
                 $.ajax({
-                    type: "get", 
+                    type: "get",
                     url: GetWEBURL() + "/Web/GetUser",
                     data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() },
                     success: function (result) {
@@ -230,6 +230,8 @@
                             sessionStorage["Czmm"] = result.data[0].Czmm;
                             sessionStorage["Czybm"] = result.data[0].Czybm;
                             sessionStorage["HEmpID"] = result.data[0].HEmpID;
+                            sessionStorage["HEmpNumber"] = result.data[0].HEmpNumber;
+                            sessionStorage["HEmpName"] = result.data[0].HEmpName;
                             sessionStorage["HGroup"] = result.data[0].HGroup;
                             sessionStorage["HGroupID"] = result.data[0].HGroupID;
                             sessionStorage["HProc"] = result.data[0].HProc;
@@ -246,11 +248,11 @@
                             sessionStorage["HManagerID"] = result.data[0].HSecManagerID;
                             sessionStorage["HManagerName"] = result.data[0].HSecManager;
                             //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
-                            if (!judgeMorPCflag) {//绉诲姩绔�
-                                window.location.href = '../../views/index_Mobile.html'
-                            } else {//PC绔�
-                                window.location.href = '../../views/indexMenu.html'
-                            }
+                            //if (!judgeMorPCflag) {//绉诲姩绔�
+                            //    window.location.href = '../../views/index_Mobile.html'
+                            //} else {//PC绔�
+                            window.location.href = '../../views/indexMenu.html'
+                            //}
                             get_WriteConfigFile();
                         }
                         else {
@@ -273,7 +275,7 @@
                     $("body").append('<audio id="cs" hidden controls> <source src = "../video/jingbao.wav" type = "audio/ogg"> </audio >');
                 var audio = document.getElementById("cs");
                 audio.play();
-            }          
+            }
 
         });
     </script>

--
Gitblit v1.9.1