Browse Source

新增修改用户增加备注

beijing
jingbowen 2 years ago
parent
commit
2f5380e816
  1. 9
      src/app/system-management/user/adduser/adduser.component.html
  2. 3
      src/app/system-management/user/adduser/adduser.component.ts
  3. 8
      src/app/system-management/user/edituser/edituser.component.html
  4. 3
      src/app/system-management/user/edituser/edituser.component.ts

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

@ -60,6 +60,13 @@
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<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="请输入备注" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
</form>
</div>

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

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

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

@ -60,6 +60,14 @@
</nz-input-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<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="请输入备注" />
</nz-input-group>
</nz-form-control>
</nz-form-item>
</form>
<div class="btnbox">
<button [nzLoading]="isLoading" nz-button nzType="default" (click)="cancel()">取消</button>

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

@ -37,7 +37,8 @@ export class EdituserComponent implements OnInit {
organization: [null, [Validators.required]],
role: [roleData1, [Validators.required]],
role2: [roleData2],
phonenum: [null, [Validators.required]]
phonenum: [null, [Validators.required]],
remarks: [null]
});
if (this.listOfData.length == 0) {
this.getAllRoles()

Loading…
Cancel
Save