psj 2 years ago
parent
commit
cfebdc66c3
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/home/Login.vue

+ 8 - 2
src/views/home/Login.vue

@@ -140,7 +140,7 @@
                 if(this.loginForm.identifyingCode == "" || this.loginForm.identifyingCode == null){
                     this.message_text = "请输入验证码!";
                 }
-                if(this.show_num.join("") != this.loginForm.identifyingCode){
+                if(this.show_num.join("") != this.loginForm.identifyingCode.toString().toLocaleLowerCase()){
                     this.message_text = "验证码输入错误!";
                     this.draw();
                 }
@@ -201,7 +201,7 @@
                             return;
                         }
                     }
-                    //获取用户信息
+                    //获取用户信息  0  1 163  173  174
                     var usercode = rows[0].USERID;
                     var username = rows[0].USERNAME;
                     var unitcode = rows[0].UNIT;
@@ -211,6 +211,12 @@
                     var role = rows[0].ROLE_CODE;
                     var userkeycode = rows[0]["TEMPUSERKEYCODE"];
                     var role_uuid = rows[0]["ROLE_UUID"];
+                    if(0 != role && 1 != role && 163 != role && 173 != null && 174 != null){
+                        MessageBox.alert('当前用户无登录权限!', '提示', {
+                            confirmButtonText: '确定'
+                        });
+                        return;
+                    }
                     //保存用户信息
                     localStorage.setItem("ywtb_usercode", usercode);
                     localStorage.setItem("ywtb_username", username);