龙山汽配专用调整MES-UI前端界面
yusijie
2023-05-17 791a85199fcf4a363225f9b343b4a7f7e09e3ea2
WebTM/views/user/login.html
@@ -203,8 +203,9 @@
                var PassWord = $("#LAY-user-login-password").val();
                layer.load(3);
                $.ajax({
                    type: "get",
                    type: "get",
                    url: GetWEBURL() + "/Web/GetUser",
                    //async: false,
                    data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() },
                    success: function (result) {
                        if (result.count == 1) { // 说明验证成功了,
@@ -246,8 +247,25 @@
                            //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
                            if (!judgeMorPCflag) {//移动端
                                window.location.href = '../../views/index_Mobile.html'
                            } else {//PC端
                                window.location.href = '../../views/index.html'
                            } else {//PC端
                                //判断是否有展开菜单栏权限
                                $.ajax({
                                    type: "get",
                                    url: GetWEBURL() + "/Web/MenuBar",
                                    //async: false,
                                    data: { "UserName": sessionStorage["HUserName"] },
                                    success: function (result) {
                                        if (result.count == 1) { // 说明验证成功了,
                                            //有权限
                                            window.location.href = '../../views/index_Office.html'
                                        } else {
                                            //无权限
                                            window.location.href = '../../views/index.html'
                                        }
                                        layer.closeAll("loading");
                                    }
                                })
                            }
                            get_WriteConfigFile();
                        }