评论切换通用组件1/2

This commit is contained in:
禾几海
2020-07-01 23:02:38 +08:00
parent c96b4d90da
commit 7da74fcba1
4 changed files with 69 additions and 65 deletions

View File

@@ -1,3 +1,4 @@
<!--
<div class="inner-content">
<nz-card nzTitle="评论管理" nzSize="small" [nzExtra]="reload">
<nz-table #table [nzData]="pageList.list"
@@ -47,3 +48,13 @@
<ng-template #reload>
<a (click)="getComment()" title="刷新"><i nz-icon nzType="reload" nzTheme="outline"></i></a>
</ng-template>
-->
<c-common-table [request]="request" [data]="headData" cardTitle="评论管理"
[template]="{status:{temp:status,param:{'0':' 正常 ','3':'已删除'}}}">
</c-common-table>
<ng-template let-originValue="originValue" let-value="value" #status>
<nz-tag nzColor="geekblue" *ngIf="originValue==0">{{value}}</nz-tag>
<nz-tag nzColor="#f50" *ngIf="originValue==3">{{value}}</nz-tag>
</ng-template>