系统管理bug修改及添加个人修改密码
This commit is contained in:
+5
-1
@@ -24,7 +24,7 @@
|
||||
nzPlaceHolder="请选择所属角色">
|
||||
<nz-option *ngFor="let option of listOfRole" [nzLabel]="option.role_name" [nzValue]="option.rid"></nz-option>
|
||||
</nz-select>
|
||||
<nz-form-explain *ngIf="(roleList.length<=0)&&saveCheck" class="red">请选择所属角色</nz-form-explain>
|
||||
<nz-form-explain *ngIf="(validateForm.get('roleList').value.length<=0)&&saveCheck" class="red">请选择所属角色</nz-form-explain>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
@@ -67,6 +67,7 @@
|
||||
<nz-form-label nzSpan="7" nzFor="remark">描述</nz-form-label>
|
||||
<nz-form-control nzSpan="12">
|
||||
<textarea rows="3" id="remark" nz-input formControlName="remark" placeholder="请输入描述信息"></textarea>
|
||||
<nz-form-explain *ngIf="validateForm.get('remark').dirty && validateForm.get('remark').errors?.maxlength">描述最长20个字符</nz-form-explain>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
@@ -75,6 +76,7 @@
|
||||
<nz-form-label nzSpan="7" nzFor="identify_num">身份证号</nz-form-label>
|
||||
<nz-form-control nzSpan="12">
|
||||
<input nz-input id="identify_num" formControlName="identify_num" placeholder="请输入身份证号">
|
||||
<nz-form-explain *ngIf="validateForm.get('identify_num').dirty && validateForm.get('identify_num').errors?.maxlength">身份证号最长20个字符</nz-form-explain>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
@@ -83,6 +85,7 @@
|
||||
<nz-form-label nzSpan="7" nzFor="email">邮箱</nz-form-label>
|
||||
<nz-form-control nzSpan="12">
|
||||
<input nz-input id="email" formControlName="email" placeholder="请输入邮箱地址">
|
||||
<nz-form-explain *ngIf="validateForm.get('email').dirty && validateForm.get('email').errors?.maxlength">邮箱最长20个字符</nz-form-explain>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
@@ -91,6 +94,7 @@
|
||||
<nz-form-label nzSpan="7" nzFor="mobile">电话</nz-form-label>
|
||||
<nz-form-control nzSpan="12">
|
||||
<input nz-input id="mobile" formControlName="mobile" placeholder="请输入电话号码">
|
||||
<nz-form-explain *ngIf="validateForm.get('mobile').dirty && validateForm.get('mobile').errors?.maxlength">电话最长12个字符</nz-form-explain>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
|
||||
+8
-8
@@ -54,16 +54,16 @@ export class UserManagementModifyComponent implements OnInit {
|
||||
// $('#main-container').height('height',(document.documentElement.clientHeight-106+'px'));
|
||||
this.queryRole();
|
||||
this.validateForm = this.fb.group({
|
||||
real_name: ['', [Validators.required,Validators.maxLength(20)]],
|
||||
login_name: ['', [Validators.required,Validators.maxLength(20)]],
|
||||
password: ['', [Validators.required,Validators.maxLength(20)]],
|
||||
identify_num: [''],
|
||||
email: [''],
|
||||
mobile: [''],
|
||||
real_name: ['', [Validators.required, Validators.maxLength(20)]],
|
||||
login_name: ['', [Validators.required, Validators.maxLength(20)]],
|
||||
password: ['', [Validators.required, Validators.maxLength(20)]],
|
||||
identify_num: ['', [Validators.maxLength(18)]],
|
||||
email: ['', [Validators.maxLength(20)]],
|
||||
mobile: ['', [Validators.maxLength(12)]],
|
||||
sex: ['m'],
|
||||
status: ['1'],
|
||||
roleList: ['', [Validators.required]],
|
||||
remark: ['']
|
||||
roleList: [[], [Validators.required]],
|
||||
remark: ['', [Validators.maxLength(20)]]
|
||||
});
|
||||
//取路由参数
|
||||
this.route.queryParams.subscribe(routeParams => {
|
||||
|
||||
Reference in New Issue
Block a user