| | |
| | | <div class="modal-header"> |
| | | <div class="modal-title">{{user.id > 0 ? '编辑' : '添加'}}-安装用户</div> |
| | | <div class="modal-title">{{user.id > 0 ? '编辑' : '添加'}} - 安装用户</div> |
| | | </div> |
| | | <form #f="ngForm" (ngSubmit)="save()" nz-form [nzType]="'horizontal'"> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.name" name="name" maxlength="30" required /> |
| | | </div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>性别</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <nz-select [(ngModel)]="user.sex" name="sex" required [nzAllowClear]="false"> |
| | | <nz-option |
| | | *ngFor="let i of gender" |
| | | [nzLabel]="i" |
| | | [nzValue]="i"> |
| | | </nz-option> |
| | | </nz-select> |
| | | </div> |
| | | </div> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>账号</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.mobile" name="mobile" maxlength="11" required /> |
| | | </div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>密码</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.password" name="password" maxlength="50" required /> |
| | | </div> |
| | | </div> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | |
| | | </div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>微信号</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.weixin" name="weixin" required /> |
| | | <input nz-input [(ngModel)]="user.weixin" name="weixin" /> |
| | | </div> |
| | | </div> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>组织</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.organization" name="organization" maxlength="50" placeholder="50字以内" /> |
| | | <input nz-input [(ngModel)]="user.organizationId" name="organizationId" maxlength="20" placeholder="20字以内" /> |
| | | </div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>昵称</label></div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>密码</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <input nz-input [(ngModel)]="user.nickname" name="nickname" maxlength="20" placeholder="20字以内" /> |
| | | <input nz-input [(ngModel)]="user.password" name="password" maxlength="30" placeholder="30字以内" required /> |
| | | </div> |
| | | </div> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>创建日期</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <div nz-form-control [nzValidateStatus]="createTime"> |
| | | <nz-datepicker [(ngModel)]="user.createTime" name="createTime"></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | <div nz-form-label nz-col [nzSpan]="4"><label>过期日期</label></div> |
| | | <div nz-form-control nz-col [nzSpan]="8"> |
| | | <div nz-form-control [nzValidateStatus]="expireTime"> |
| | | <nz-datepicker [(ngModel)]="user.expireTime" name="expireTime"></nz-datepicker> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="modal-footer"> |