[webapp] 通知红标,近期未处理告警展示

This commit is contained in:
tomsun28
2021-12-20 17:10:06 +08:00
parent 64112c0a15
commit b21662cb1b
13 changed files with 91 additions and 155 deletions

View File

@@ -7,7 +7,7 @@
<nz-form-item>
<nz-form-control [nzErrorTip]="'validation.password.required' | i18n">
<nz-input-group nzSuffixIcon="lock">
<input type="password" nz-input formControlName="password" />
<input type="password" nz-input formControlName="password" placeholder="输入任意解锁"/>
</nz-input-group>
</nz-form-control>
</nz-form-item>

View File

@@ -1,7 +1,6 @@
import { Component, Inject } from '@angular/core';
import { Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
import { SettingsService, User } from '@delon/theme';
@Component({
@@ -18,7 +17,6 @@ export class UserLockComponent {
constructor(
fb: FormBuilder,
@Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService,
private settings: SettingsService,
private router: Router
) {
@@ -33,11 +31,6 @@ export class UserLockComponent {
this.f.controls[i].updateValueAndValidity();
}
if (this.f.valid) {
console.log('Valid!');
console.log(this.f.value);
this.tokenService.set({
token: '123'
});
this.router.navigate(['dashboard']);
}
}