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.
|
|
|
|
<app-page>
|
|
|
|
|
<div class="flex-1 overflow-hidden">
|
|
|
|
|
<app-server-paginated-table [options]="table" [renderColumn]="renderColumnTpl" [formGroup]="queryForm">
|
|
|
|
|
<ng-container *appTableForm>
|
|
|
|
|
<app-query-item label="名称" class="w-60">
|
|
|
|
|
<input nz-input placeholder="请输入" formControlName="name" />
|
|
|
|
|
</app-query-item>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-template #renderColumnTpl let-data let-key="key" let-row="row">
|
|
|
|
|
@switch (key) {
|
|
|
|
|
@case ('_assignee') {
|
|
|
|
|
<nz-tag> {{ data.userName }} </nz-tag>
|
|
|
|
|
}
|
|
|
|
|
@case ('procVars') {
|
|
|
|
|
{{ data?.title }}
|
|
|
|
|
}
|
|
|
|
|
@case ('status') {
|
|
|
|
|
@if (row.finishTime) {
|
|
|
|
|
<nz-badge nzText="已完成" [nzStatus]="'success'" />
|
|
|
|
|
} @else {
|
|
|
|
|
<nz-badge nzText="进行中" [nzStatus]="'processing'" />
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@case ('urgency') {
|
|
|
|
|
<nz-tag>
|
|
|
|
|
{{ data === 2 ? '紧急' : '普通' }}
|
|
|
|
|
</nz-tag>
|
|
|
|
|
}
|
|
|
|
|
@default {
|
|
|
|
|
{{ data }}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</ng-template>
|
|
|
|
|
</app-server-paginated-table>
|
|
|
|
|
</div>
|
|
|
|
|
</app-page>
|