Commit 433c4a6e authored by wangqinghua's avatar wangqinghua

修改名称最短长度

parent 7958ca9c
......@@ -2,6 +2,7 @@
<div nz-row>
<div nz-col class="handle" [nzSpan]="12">
<a class="main-color margin-right-10" routerLink="../main/home">首页</a>
<a class="main-color margin-left-10" (click)="goOut()">机房监控系统</a>
<span class="main-color" (click)="transition()">快捷添加 +</span>
<span #parent class="span-hov">
<span #children class="addBtn">
......@@ -9,9 +10,8 @@
<span (click)="showBasicEditModal()">添加资源</span>
</span>
</span>
<a class="main-color margin-left-10" (click)="goOut()">机房监控系统</a>
</div>
<div nz-col [nzSpan]="12" style="text-align: right">
<div nz-col [nzSpan]="12" class="text-right">
<nz-select style="width: 150px;margin-right: 20px" [(ngModel)]="theme" (ngModelChange)="changeTheme()">
<ng-container *ngFor="let item of themeList">
<nz-option [nzValue]="item.value" [nzLabel]="item.label"></nz-option>
......
......@@ -141,7 +141,7 @@ export class NavbarComponent implements OnInit ,AfterViewChecked{
goOut(){
window.open('http://26.81.99.220/control/user/userlogin.php?userid=sa&userpwd=123456',"_blank");
timer(100).subscribe(
timer(500).subscribe(
()=>{
window.open('http://26.81.99.220/views/index.php',"_blank");
}
......
......@@ -36,7 +36,7 @@ export class UserComponent implements OnInit {
initForm(){
this.validateForm = this.fb.group({
name:[null,[Validators.required,Validators.minLength(6),Validators.maxLength(16)]],
name:[null,[Validators.required,Validators.minLength(1),Validators.maxLength(16)]],
phoneNumber:[null,[Validators.required,Validators.minLength(11),Validators.maxLength(11)]],
gender:[null,[Validators.required]],
email:[null,],
......
......@@ -10,7 +10,7 @@
"noImplicitAny": false,
"skipLibCheck": true,
"suppressImplicitAnyIndexErrors": true,
"outDir": "build/www/app",
"outDir": "build/wx/app",
"lib": ["es7", "dom"],
"typeRoots": [
"node_modules/@types"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment