From 2a6b298e391134861b7aba91c97ad475ec9f84f8 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Mon, 18 Dec 2017 16:44:39 +0800
Subject: [PATCH] updates

---
 src/app/routes/users/installer/installer.component.html |  108 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 105 insertions(+), 3 deletions(-)

diff --git a/src/app/routes/users/installer/installer.component.html b/src/app/routes/users/installer/installer.component.html
index afe0b7b..ead720b 100644
--- a/src/app/routes/users/installer/installer.component.html
+++ b/src/app/routes/users/installer/installer.component.html
@@ -1,3 +1,105 @@
-<p>
-  installer works!
-</p>
+<pro-header [title]="'������������������'"></pro-header>
+<nz-card [nzBordered]="false">
+  <form nz-form (ngSubmit)="getData()" [nzLayout]="'inline'">
+    <div nz-row [nzGutter]="24">
+      <div nz-col [nzSpan]="8" class="mb-md">
+        <div nz-form-item class="d-flex">
+          <div nz-form-label><label for="u_name">������</label></div>
+          <div nz-form-control class="flex-1">
+            <nz-input [(ngModel)]="q.u_name" name="u_name" [nzSize]="'large'" [nzPlaceHolder]="'���������'" nzId="u_name"></nz-input>
+          </div>
+        </div>
+      </div>
+      <div nz-col [nzSpan]="8" class="mb-md">
+        <div nz-form-item class="d-flex">
+          <div nz-form-label><label for="u_mobile">������</label></div>
+          <div nz-form-control class="flex-1">
+            <nz-input [(ngModel)]="q.u_mobile" name="u_mobile" [nzSize]="'large'" [nzPlaceHolder]="'���������'" nzId="u_mobile"></nz-input>
+          </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" (click)="getData()" [nzSize]="'large'" class="mx-sm">������</button>
+      </div>
+    </div>
+  </form>
+  <div class="mb-md">
+    <button nz-button (click)="add()" [nzType]="'primary'" [nzSize]="'large'">
+      <i class="anticon anticon-plus"></i><span>������</span>
+    </button>
+    <ng-container *ngIf="selectedRows.length > 0">
+      <button nz-button [nzSize]="'large'">������������</button>
+      <nz-dropdown [nzPlacement]="'bottomLeft'">
+        <button nz-button nz-dropdown [nzSize]="'large'">
+          ������������ <i class="anticon anticon-down"></i>
+        </button>
+        <ul nz-menu>
+          <li nz-menu-item (click)="remove()">������</li>
+          <li nz-menu-item (click)="approval()">������������</li>
+        </ul>
+      </nz-dropdown>
+    </ng-container>
+  </div>
+  <div class="mb-md">
+    <nz-alert [nzType]="'info'" [nzShowIcon]="true">
+        <span alert-body>
+            ��������� <strong class="text-primary">{{selectedRows.length}}</strong> ���
+        </span>
+    </nz-alert>
+  </div>
+  <nz-table #nzTable [nzDataSource]="data" [nzPageSize]="q.ps" [nzLoading]="loading" (nzDataChange)="dataChange($event)" (nzPageIndexChange)="pageChange($event)" [nzShowTotal]="true">
+    <thead nz-thead>
+    <tr>
+      <th nz-th [nzCheckbox]="true">
+        <label nz-checkbox [(ngModel)]="allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)"></label>
+      </th>
+      <th nz-th><span>������</span></th>
+      <th nz-th><span>������</span></th>
+      <th nz-th><span>������</span></th>
+      <th nz-th><span>������������</span></th>
+      <th nz-th><span>���������</span></th>
+      <th nz-th><span>������</span></th>
+      <th nz-th><span>������</span></th>
+      <th nz-th><span>������</span></th>
+      <th nz-th>
+        <span>������</span>
+        <nz-table-sort [(nzValue)]="sortMap.updatedAt" (nzValueChange)="sort('updatedAt',$event)"></nz-table-sort>
+      </th>
+      <th nz-th><span>������</span></th>
+    </tr>
+    </thead>
+    <tbody nz-tbody>
+    <tr nz-tbody-tr *ngFor="let i of nzTable.data">
+      <td nz-td [nzCheckbox]="true">
+        <label nz-checkbox [(ngModel)]="i.checked" (ngModelChange)="refreshStatus($event)">
+        </label>
+      </td>
+      <td nz-td>{{i.name}}</td>
+      <td nz-td>{{i.sex}}</td>
+      <td nz-td>{{i.mobile}}</td>
+      <td nz-td>{{i.email}}</td>
+      <td nz-td>{{i.weixin}}</td>
+      <td nz-td>{{i.password}}</td>
+      <td nz-td>{{i.organization}}</td>
+      <td nz-td>{{i.nickname}}</td>
+      <td nz-td>{{i.updatedAt | _date}}</td>
+      <td nz-td>
+        <a (click)="msg.success('���������' + i.name)">������</a>
+        <span nz-table-divider></span>
+        <a (click)="msg.success('���������' + i.name)">������</a>
+      </td>
+    </tr>
+    </tbody>
+  </nz-table>
+</nz-card>
+<nz-modal [nzVisible]="modalVisible" [nzTitle]="'������������'" [nzConfirmLoading]="loading" [nzContent]="modalContent" (nzOnCancel)="modalVisible=false" (nzOnOk)="save()">
+  <ng-template #modalContent>
+    <div nz-form-item class="d-flex">
+      <div nz-form-label><label for="no">������</label></div>
+      <div nz-form-control class="flex-1">
+        <nz-input [(ngModel)]="description" name="description" [nzSize]="'large'" [nzPlaceHolder]="'���������'" nzId="no"></nz-input>
+      </div>
+    </div>
+  </ng-template>
+</nz-modal>

--
Gitblit v1.8.0