From 3517e796f650b8aed52165c1a5905456f54033ef Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 10 Jan 2018 14:31:40 +0800 Subject: [PATCH] 项目路径 配置,以适应可能的框架更新 --- src/app/routes/systems/organization/organization.component.html | 71 +++-------------------------------- 1 files changed, 7 insertions(+), 64 deletions(-) diff --git a/src/app/routes/systems/organization/organization.component.html b/src/app/routes/systems/organization/organization.component.html index ed0b257..bee33d6 100644 --- a/src/app/routes/systems/organization/organization.component.html +++ b/src/app/routes/systems/organization/organization.component.html @@ -1,65 +1,8 @@ -<pro-header [title]="grid.title"></pro-header> -<nz-card [nzBordered]="false"> - <div class="mb-md"> - <button nz-button (click)="addOrModify()" [nzType]="'primary'" [nzSize]="'large'"> - <i class="anticon anticon-plus"></i><span>������</span> - </button> - <ng-container *ngIf="grid.selectedIndexs.length > 0"> - <button nz-button [nzSize]="'large'" (click)="deleteSelected()">������������</button> - </ng-container> - <nz-input [ngStyle]="{'width': '280px','float':'right'}" [(ngModel)]="queryMap.value" name="" [nzPlaceHolder]="queryMap.text" - (keyup)="queryTextChanged($event)" (change)="queryTextChanged($event)" ></nz-input> - </div> - <div class="mb-md"> - <nz-alert *ngIf="grid.selectedIndexs.length > 0" [nzType]="'info'" [nzShowIcon]="true"> - <span alert-body> - ���������<strong class="text-primary">{{grid.selectedIndexs.length}}</strong>��� - </span> - </nz-alert> - </div> - <nz-table #nzTable - [nzAjaxData]="grid.data" - [nzTotal]="grid.total" - [(nzPageIndex)]="grid.pageIndex" - [(nzPageSize)]="grid.pageSize" - [nzLoading]="grid.loading" - [nzShowTotal]="true" - (nzPageIndexChange)="load()"> - <thead nz-thead> - <tr> - <th nz-th [nzCheckbox]="true"> - <label nz-checkbox [(ngModel)]="grid.allChecked" [nzIndeterminate]="grid.indeterminate" (ngModelChange)="grid.checkAll($event)"></label> - </th> - <th nz-th *ngFor="let col of grid.columns" - [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}" > - <span>{{ col.text }}</span> - <nz-table-sort *ngIf="col.isSort" [(nzValue)]="col.sort" (nzValueChange)="sort(col.name,$event)"></nz-table-sort> - </th> - <th nz-th><span>������</span></th> - </tr> - </thead> - <tbody nz-tbody> - <tr nz-tbody-tr *ngFor="let row of nzTable.data"> - <td nz-td [nzCheckbox]="true"> - <label nz-checkbox [(ngModel)]="row.checked" (ngModelChange)="grid.refreshStatus($event)"></label> - </td> - <td nz-td *ngFor="let col of grid.columns" - [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}"> - <span [ngSwitch]="col.type"> - <!-- ������������������������������������ --> - <span *ngSwitchDefault> {{ row[col.name]|tyepHandle:col:row }} </span> - <!-- ������������������������������������ --> - </span> - </td> - <td nz-td> - <a (click)="addOrModify(row)">������</a> - <span nz-table-divider></span> - <nz-popconfirm [nzTitle]="'���������������������������?'" [nzOkText]="'Yes'" [nzCancelText]="'No'" (nzOnConfirm)="delete(row.id)" > - <a nz-popconfirm>������</a> - </nz-popconfirm> - </td> - </tr> - </tbody> - </nz-table> - </nz-card> +<pro-header [title]="organizationService.title"></pro-header> +<nz-card [nzBordered]="false" [nzNoHovering]="true"> + <ng-template #body> + <app-organization-list *ngIf="organizationService.handle=='list'"></app-organization-list> + <app-organization-config *ngIf="organizationService.handle=='config'"></app-organization-config> + </ng-template> +</nz-card> -- Gitblit v1.8.0