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-input-group>
</nz-form-control> </nz-form-control>
</nz-form-item> </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> </form>
</div> </div>

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

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

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

@ -60,6 +60,14 @@
</nz-input-group> </nz-input-group>
</nz-form-control> </nz-form-control>
</nz-form-item> </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> </form>
<div class="btnbox"> <div class="btnbox">
<button [nzLoading]="isLoading" nz-button nzType="default" (click)="cancel()">取消</button> <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]], organization: [null, [Validators.required]],
role: [roleData1, [Validators.required]], role: [roleData1, [Validators.required]],
role2: [roleData2], role2: [roleData2],
phonenum: [null, [Validators.required]] phonenum: [null, [Validators.required]],
remarks: [null]
}); });
if (this.listOfData.length == 0) { if (this.listOfData.length == 0) {
this.getAllRoles() this.getAllRoles()

Loading…
Cancel
Save