fengxiang
2018-05-10 70e75350a1a24147ddbc50f8051ba8fd510f0c3e
安装用户 是否删除 过滤
2 files modified
18 ■■■■■ changed files
src/app/routes/users/installer/installer.component.html 12 ●●●●● patch | view | raw | blame | history
src/app/routes/users/installer/installer.component.ts 6 ●●●● patch | view | raw | blame | history
src/app/routes/users/installer/installer.component.html
@@ -19,6 +19,18 @@
        </div>
      </div>
      <div nz-col [nzSpan]="8" class="mb-md">
                <div nz-form-item class="d-flex">
                    <div nz-form-label>
                        <label>是否删除</label>
                    </div>
                    <div nz-form-control class="flex-1">
                        <nz-select [(ngModel)]="q.isDelete" name="isDelete" [nzSize]="'large'">
                            <nz-option *ngFor="let option of isDeleteOptions" [nzLabel]="option.label" [nzValue]="option.value" ></nz-option>
                        </nz-select>
                    </div>
                </div>
            </div>
      <div nz-col [nzSpan]="8" class="mb-md">
        <button nz-button type="submit" [nzType]="'primary'" [nzLoading]="loading" [nzSize]="'large'">查询</button>
        <button nz-button type="reset" [nzSize]="'large'" class="mx-sm">重置</button>
      </div>
src/app/routes/users/installer/installer.component.ts
@@ -12,10 +12,14 @@
  styles: []
})
export class InstallerComponent implements OnInit {
  isDeleteOptions = [
    {value: '1', label: '是'},
    {value: '0', label: '否'}
  ];
  q: any = {
    pi: 1,
    ps: 10,
    isDelete: this.isDeleteOptions[1].value,
    sorter: '',
    u_name: '',
    u_mobile: ''