沈斌
2017-12-22 2c8b7ad8f9e31970cc2b7596f2b678bdf8292069
updates
2 files modified
9 ■■■■■ changed files
src/app/routes/systems/account/account.component.html 7 ●●●●● patch | view | raw | blame | history
src/app/routes/systems/account/account.component.ts 2 ●●●●● patch | view | raw | blame | history
src/app/routes/systems/account/account.component.html
@@ -1,6 +1,6 @@
<pro-header [title]="'账户列表'"></pro-header>
<nz-card [nzBordered]="false">
    <form nz-form (ngSubmit)="load(true)" [nzLayout]="'inline'">
    <form nz-form [nzLayout]="'inline'">
        <div nz-row [nzGutter]="24">
            <div nz-col [nzSpan]="8" class="mb-md">
                <div nz-form-item class="d-flex">
@@ -60,14 +60,13 @@
    </div>
    <nz-table   #nzTable 
                [nzDataSource]="data"
                [nzAjaxData]="data"
                [nzLoading]="http.loading"
                [nzTotal]="total" 
                [(nzPageIndex)]="query.pageIndex"
                [nzPageSize]="query.pageSize" 
                [nzShowTotal]="true"
                (nzPageIndexChange)="load()"
                (nzDataChange)="dataChange($event)">
                (nzPageIndexChange)="load()">
        <thead nz-thead>
            <tr>
                <th nz-th [nzCheckbox]="true">
src/app/routes/systems/account/account.component.ts
@@ -49,6 +49,8 @@
    this.http.get(environment.SERVER_BASH_URL + '/account/list', {params: this.query}).subscribe((res: any) => {
      this.data = res.data.data;
      this.total = res.data.total;
      this.dataChange(this.data);
    });
  }