Browse Source

新增修改用户增加备注

beijing
jingbowen 2 years ago
parent
commit
202574b1e5
  1. 2
      src/app/system-management/user/adduser/adduser.component.html
  2. 2
      src/app/system-management/user/adduser/adduser.component.ts
  3. 2
      src/app/system-management/user/edituser/edituser.component.html
  4. 3
      src/app/system-management/user/edituser/edituser.component.ts
  5. 1
      src/app/system-management/user/user.component.ts

2
src/app/system-management/user/adduser/adduser.component.html

@ -64,7 +64,7 @@
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="备注">备注</nz-form-label>
<nz-form-control>
<nz-input-group>
<input nz-input type="text" formControlName="remarks" placeholder="请输入备注" />
<input nz-input type="text" formControlName="note" placeholder="请输入备注" />
</nz-input-group>
</nz-form-control>
</nz-form-item>

2
src/app/system-management/user/adduser/adduser.component.ts

@ -23,7 +23,7 @@ export class AdduserComponent implements OnInit {
role: [[], [Validators.required]],
role2: [[]],
phonenum: [null, [Validators.required]],
remarks:[null]
note:[null]
});
this.getAllRoles()

2
src/app/system-management/user/edituser/edituser.component.html

@ -64,7 +64,7 @@
<nz-form-label [nzSm]="6" [nzXs]="24" nzFor="备注">备注</nz-form-label>
<nz-form-control>
<nz-input-group>
<input [(ngModel)]="data.remarks" nz-input type="text" formControlName="remarks" placeholder="请输入备注" />
<input [(ngModel)]="data.note" nz-input type="text" formControlName="note" placeholder="请输入备注" />
</nz-input-group>
</nz-form-control>
</nz-form-item>

3
src/app/system-management/user/edituser/edituser.component.ts

@ -38,7 +38,7 @@ export class EdituserComponent implements OnInit {
role: [roleData1, [Validators.required]],
role2: [roleData2],
phonenum: [null, [Validators.required]],
remarks: [null]
note: [null]
});
if (this.listOfData.length == 0) {
this.getAllRoles()
@ -132,6 +132,7 @@ export class EdituserComponent implements OnInit {
organizationUnitId: this.validateForm.value.organization,
roleNames: roleNames,
phoneNumber: this.validateForm.value.phonenum,
note:this.validateForm.value.note,
isActive: true
}
this.http.put(this.editUrl, body).subscribe((data:any) => {

1
src/app/system-management/user/user.component.ts

@ -263,6 +263,7 @@ export class UserComponent implements OnInit {
),
roleNames: roleNames,
phoneNumber: instance.validateForm.value.phonenum,
note:instance.validateForm.value.note,
isActive: true,
};
this.http.post(this.addUrl, body).subscribe(

Loading…
Cancel
Save