Browse Source

修改登录页

zhuang 1 year ago
parent
commit
2e9b00e052
2 changed files with 27 additions and 1 deletions
  1. 15 1
      src/app/routes/passport/login/login.component.ts
  2. 12 0
      src/assets/ic.css

+ 15 - 1
src/app/routes/passport/login/login.component.ts

@@ -215,6 +215,16 @@ export class UserLoginComponent implements OnDestroy, OnInit {
     //   this.mobile.updateValueAndValidity({ onlySelf: true });
     //   return;
     // }
+    if (this.userName.invalid) {
+      this.userName.markAsDirty({ onlySelf: true });
+      this.userName.updateValueAndValidity({ onlySelf: true });
+      return;
+    }
+    if (this.password.invalid) {
+      this.password.markAsDirty({ onlySelf: true });
+      this.password.updateValueAndValidity({ onlySelf: true });
+      return;
+    }
     this.http
       .post('inControlServer/qualityInspection/zhcxApi/sendCode?_allow_anonymous=true', {
         account: this.userName.value,
@@ -262,7 +272,11 @@ export class UserLoginComponent implements OnDestroy, OnInit {
       this.userName.updateValueAndValidity();
       this.password.markAsDirty();
       this.password.updateValueAndValidity();
-      if (this.userName.invalid || this.password.invalid) {
+      this.mobile.markAsDirty();
+      this.mobile.updateValueAndValidity();
+      this.captcha.markAsDirty();
+      this.captcha.updateValueAndValidity();
+      if (this.userName.invalid || this.password.invalid || this.mobile.invalid || this.captcha.invalid) {
         return;
       }
     } else {

+ 12 - 0
src/assets/ic.css

@@ -63,3 +63,15 @@
 .alain-default__header-logo .alain-default__header-logo-link .alain-default__header-logo-collapsed {
   max-width: 100%;
 }
+
+.sf-inner-table-wrapper .ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td {
+  border-right: 1px solid #cacaca;
+}
+
+.sf-inner-table-wrapper .ant-table-tbody>tr>td {
+  border-bottom: 1px solid #cacaca;
+}
+
+.sf-inner-table-wrapper .ant-table.ant-table-bordered > .ant-table-container {
+  border-left: 1px solid #cacaca;
+}