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.
34 lines
1003 B
34 lines
1003 B
<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 ?? data?.name ?? '-' }}
|
|
}
|
|
@case ('status') {
|
|
<nz-tag nzColor="blue">
|
|
{{ FLOW_STATUS.get(data) }}
|
|
</nz-tag>
|
|
}
|
|
@case ('urgency') {
|
|
<nz-tag [nzColor]="row.procVars.urgency === 2 ? 'error' : ''">
|
|
{{ row.procVars.urgency === 2 ? '紧急' : '普通' }}
|
|
</nz-tag>
|
|
}
|
|
@default {
|
|
{{ data }}
|
|
}
|
|
}
|
|
</ng-template>
|
|
</app-server-paginated-table>
|
|
</div>
|
|
</app-page>
|
|
|