|
|
|
@ -70,12 +70,13 @@ |
|
|
|
|
<thead nzSingleSort> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
|
<th nzWidth="80px">活动标题</th> |
|
|
|
|
<th nzWidth="80px">活动类型</th> |
|
|
|
|
<th nzWidth="150px">活动标题</th> |
|
|
|
|
<th nzWidth="70px">活动类型</th> |
|
|
|
|
<th nzWidth="100px">开始时间</th> |
|
|
|
|
<th nzWidth="100px">结束时间</th> |
|
|
|
|
<th nzWidth="100px">创建时间</th> |
|
|
|
|
<th nzWidth="100px">更新时间</th> |
|
|
|
|
<th nzWidth="70px" nzRight>活动状态</th> |
|
|
|
|
<th nzWidth="80px" nzRight>操作</th> |
|
|
|
|
<th nzWidth="80px" nzRight>活动状态</th> |
|
|
|
|
<th nzWidth="120px" nzRight>操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -83,15 +84,20 @@ |
|
|
|
|
<td>{{i+1}}</td> |
|
|
|
|
<td>{{data.title}}</td> |
|
|
|
|
<td>{{data.type | type}}</td> |
|
|
|
|
<td>{{data.startTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.endTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.updateTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td nzRight>{{data.status | status}}</td> |
|
|
|
|
<td nzRight class="table-td-operation"> |
|
|
|
|
<a (click)="getEdit(data.id)">编辑</a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)='getForbiddenUser(data.id , data.status)'>{{data.status === 1 ? '禁用': '启用'}}</a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)='jumpLotteryRecord(data.id )'>中奖记录</a> |
|
|
|
|
<a *ngIf="data.status != 3" (click)="getEdit(data.id)">编辑</a> |
|
|
|
|
<a (click)="startActivity(data.id)" *ngIf="data.status == 1">发布</a> |
|
|
|
|
<a (click)="endActivity(data.id)" *ngIf="data.status == 2">结束</a> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu">更多操作<i nz-icon nzType="down"></i></a> |
|
|
|
|
<nz-dropdown-menu #menu="nzDropdownMenu"> |
|
|
|
|
<ul nz-menu nzSelectable> |
|
|
|
|
<li nz-menu-item><a (click)='jumpLotteryRecord(data.id )'>中奖记录</a></li> |
|
|
|
|
</ul> |
|
|
|
|
</nz-dropdown-menu> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
|