固定资产项目前端文件
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.

37 lines
1.0 KiB

<app-page>
<div class="flex-1 overflow-hidden">
2 years ago
<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>
}
2 years ago
@case ('procVars') {
2 years ago
{{ data?.title }}
}
@case ('status') {
@if (row.finishTime) {
<nz-badge nzText="已完成" [nzStatus]="'success'" />
} @else {
<nz-badge nzText="进行中" [nzStatus]="'processing'" />
}
2 years ago
}
@case ('urgency') {
<nz-tag>
2 years ago
{{ row.procVars.urgency === 2 ? '紧急' : '普通' }}
2 years ago
</nz-tag>
}
@default {
{{ data }}
}
}
</ng-template>
</app-server-paginated-table>
</div>
</app-page>