xufenglei
2018-01-08 904bca110bbd3cd7775c7dcbfabf0447f03e4c91
src/app/routes/systems/account/account.component.html
@@ -43,11 +43,11 @@
   </form>
   <div class="mb-md">
      <button nz-button (click)="add()" [nzType]="'primary'" [nzSize]="'large'">
      <button nz-button (click)="edit()" [nzType]="'primary'" [nzSize]="'large'">
         <i class="anticon anticon-plus"></i><span>新建</span>
      </button>
      <ng-container *ngIf="selectedRows.length > 0"> &nbsp;
         <button nz-button [nzSize]="'large'" (click)="remove()">批量删除</button>
         <button nz-button [nzSize]="'large'" (click)="remove()" >批量删除</button>
      </ng-container>
   </div>
@@ -61,7 +61,7 @@
   <nz-table   #nzTable
            [nzAjaxData]="data"
            [nzLoading]="http.loading"
            [nzLoading]="loading"
            [nzTotal]="total"
            [(nzPageIndex)]="query.pageIndex"
            [nzPageSize]="query.pageSize"
@@ -72,7 +72,9 @@
            <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>
            <nz-table-sort (nzValueChange)="sort('account_name', $event)"></nz-table-sort>
            </th>
            <th nz-th><span>电话</span></th>
            <th nz-th><span>电子邮件</span></th>
            <th nz-th><span>微信号</span></th>
@@ -81,7 +83,7 @@
            <th nz-th><span>创建日期</span></th>
            <th nz-th>
               <span>过期日期</span>
               <nz-table-sort [(nzValue)]="sortMap.updatedAt" (nzValueChange)="sort('expire_time', $event)"></nz-table-sort>
               <nz-table-sort (nzValueChange)="sort('expire_time', $event)"></nz-table-sort>
            </th>
            <th nz-th><span>操作</span></th>
         </tr>
@@ -96,14 +98,14 @@
            <td nz-td>{{account.email}}</td>
            <td nz-td>{{account.weixin}}</td>
            <!-- <td nz-td>{{account.password}}</td> -->
            <td nz-td>{{account.organizationId}}</td>
            <td nz-td>{{account.organization?account.organization.name:account.organizationId}}</td>
            <td nz-td>{{format_date(account.createTime)}}</td>
            <td nz-td>{{format_date(account.expireTime)}}</td>
            <td nz-td>
               <a (click)="edit(account)">编辑</a>
               <ng-container *ngIf="account.isDelete == '0'">
                  <span nz-table-divider></span>
                  <nz-popconfirm  [nzTitle]="'确定要删除该用户吗?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="delete(account)" >
                  <nz-popconfirm  [nzTitle]="'确定要删除该数据吗?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="delete(account.id)" >
                     <a nz-popconfirm>删除</a>
                  </nz-popconfirm>
               </ng-container>