You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
765 B
33 lines
765 B
|
1 year ago
|
<app-page>
|
||
|
|
<ng-template #actionTpl> </ng-template>
|
||
|
|
<div class="flex-1 overflow-hidden">
|
||
|
|
<app-server-paginated-table
|
||
|
|
[options]="table"
|
||
|
|
[formGroup]="queryForm"
|
||
|
|
[tableAction]="actionTpl"
|
||
|
|
[renderColumn]="renderColumnTpl"
|
||
|
|
>
|
||
|
|
<ng-template #renderColumnTpl let-data let-key="key" let-row="row">
|
||
|
|
@switch (key) {
|
||
|
|
@case ('status') {
|
||
|
|
<app-status-tag [status]="data" />
|
||
|
|
}
|
||
|
|
@case ('_value') {
|
||
|
|
{{ data?.length ?? 0 }}
|
||
|
|
}
|
||
|
|
|
||
|
|
@default {
|
||
|
|
{{ data }}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</ng-template>
|
||
|
|
|
||
|
|
<ng-container *appTableForm>
|
||
|
|
<app-query-item label="任务名称">
|
||
|
|
<input nz-input placeholder="请输入" formControlName="name" />
|
||
|
|
</app-query-item>
|
||
|
|
</ng-container>
|
||
|
|
</app-server-paginated-table>
|
||
|
|
</div>
|
||
|
|
</app-page>
|