11wqe1 6 dagen geleden
bovenliggende
commit
2104c3d5bc
5 gewijzigde bestanden met toevoegingen van 25 en 14 verwijderingen
  1. 0 0
      dist/css/app.0c4930ee.css
  2. 1 1
      dist/index.html
  3. 0 0
      dist/js/app.3aabd02f.js
  4. 0 0
      dist/js/app.3aabd02f.js.map
  5. 24 13
      src/views/login/loginPage.vue

File diff suppressed because it is too large
+ 0 - 0
dist/css/app.0c4930ee.css


+ 1 - 1
dist/index.html

@@ -36,7 +36,7 @@
         width: 100%;
         background: #e6eaf0;
         font-family: '黑体';
-      }</style><script defer="defer" src="/js/chunk-vendors.ae4e118c.js"></script><script defer="defer" src="/js/app.50e49f05.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.d567cfee.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
+      }</style><script defer="defer" src="/js/chunk-vendors.ae4e118c.js"></script><script defer="defer" src="/js/app.3aabd02f.js"></script><link href="/css/chunk-vendors.7cfe4581.css" rel="stylesheet"><link href="/css/app.0c4930ee.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pblAdminTable doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/js/app.3aabd02f.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.3aabd02f.js.map


+ 24 - 13
src/views/login/loginPage.vue

@@ -518,6 +518,7 @@ export default {
 				"^[A-Za-z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"
 			);
 
+			
 			// 组织号页面,没有账号后缀提示需要添加组织号
 			if (this.loginType == "orgL" && !this.org && !regEmail.test(str)) {
 				this.loading = false;
@@ -526,27 +527,24 @@ export default {
 			}
 
 			this.loading = true;
-
-			// if (this.loginType != 'orgL') {
-			// 返回2就是多账户,荔园提示联系管理员关闭多余账户,非荔园跳转组织号登录
-			if ((await this.getOrgData()) == 2) {
-				this.loading = false;
-				return
-				// return (this.loginType = "orgL");
-			}
-			// }
-
 			if (this.account.length <= 0) {
 				this.$message.error(this.lang.enteraccount);
 				this.loading = false;
 				return;
 			}
-
 			if (this.password.length < 6 || /[\u4e00-\u9fa5]/.test(this.password)) {
 				this.$message.error(this.lang.passwordlength);
 				this.loading = false;
 				return;
 			}
+			// if (this.loginType != 'orgL') {
+			// 返回2就是多账户,荔园提示联系管理员关闭多余账户,非荔园跳转组织号登录
+			if ((await this.getOrgData()) == 2) {
+				this.loading = false;
+				return
+				// return (this.loginType = "orgL");
+			}
+			// }
 
 			// 荔园平台登录账号进行判断
 			if (this.allowOrgList.findIndex((i) => i.area) != -1) {
@@ -810,9 +808,22 @@ export default {
 									let _index = this.allowOrgList.findIndex((i) => i.area);
 									let _list = this.allowOrgList[_index].list;
 									// 赋值后缀
-									this.org = this.OrgOptions.filter((i) =>
+									let liyuanAcc = this.OrgOptions.filter((i) =>
 										_list.includes(i.id)
-									)[0].Uorg;
+									);
+
+									if(liyuanAcc.findIndex(e => e.rrole == 1)){
+										this.org = liyuanAcc.filter((i) =>
+											i.rrole == 1
+										)[0].Uorg
+									}else{
+										this.$message.error(
+											this.lang.liyuanAccMore
+										);
+										return resolve(2);
+									}
+
+
 								} catch (error) {
 									console.log(error);
 									this.loading = false

Some files were not shown because too many files changed in this diff