Browse Source

[完善]删除按钮

非煤矿山灾害智能感知和预警系统
邵佳豪 2 years ago
parent
commit
7c2994e925
  1. 8
      src/app/home/task/station-task-execution/station-task-execution.component.html
  2. 12
      src/app/home/task/station-weekly-plan/station-weekly-plan.component.html

8
src/app/home/task/station-task-execution/station-task-execution.component.html

@ -189,10 +189,10 @@
<span>
<a class="blue" (click)="look(item)" style="margin-right: 5px;">查看</a>
<a class="blue" (click)="complete(item)" style="margin-right: 5px;">完成</a>
<a *ngIf="item.creationType != '自主任务' && item.approvalStatus != '已检查'" class="red"
(click)="cancel(item)">驳回</a>
<a *ngIf="item.creationType == '自主任务' && item.approvalStatus != '已检查'" class="red"
(click)="delete(item)">删除</a>
<a *ngIf="item.creationType != '自主任务' && item.approvalStatus != '已检查' && item.approvalStatus != '检查中'"
class="red" (click)="cancel(item)">驳回</a>
<a *ngIf="item.creationType == '自主任务' && item.approvalStatus != '已检查' && item.approvalStatus != '检查中'"
class="red" (click)="delete(item)">删除</a>
</span>
<span>
操作

12
src/app/home/task/station-weekly-plan/station-weekly-plan.component.html

@ -101,13 +101,13 @@
class="itemtwocontentitemp1name">{{i.company.companyName}}<span>({{i.creationType}})</span></span>
<span class="marginr5">
<span class="green"
*ngIf="isExpand && i.approvalStatus!='已检查' && i.relatedTaskId&& i.approvalStatus!='待检查'"
*ngIf="isExpand && i.approvalStatus!='已检查' && i.relatedTaskId&& i.approvalStatus!='待检查' && i.approvalStatus!='检查中'"
(click)="accept(i,item)">接受</span>
<span class="red"
*ngIf="isExpand && i.approvalStatus!='已检查' && i.relatedTaskId && i.approvalStatus!='待检查'"
*ngIf="isExpand && i.approvalStatus!='已检查' && i.relatedTaskId && i.approvalStatus!='待检查' && i.approvalStatus!='检查中'"
(click)="reject(i,item)">拒绝</span>
<span class="red"
*ngIf="isExpand && i.creationType == '自主任务' && i.approvalStatus != '已检查'"
*ngIf="isExpand && i.creationType == '自主任务' && i.approvalStatus != '已检查' && i.approvalStatus!='检查中'"
(click)="delete(i,item)">删除</span>
<span *ngIf="isExpand">({{i.approvalStatus}})</span>
</span>
@ -115,13 +115,13 @@
<p>{{i.company.organization.name}}</p>
<p class="marginr5">
<span class=" green"
*ngIf="!isExpand && i.approvalStatus!='已检查' && i.relatedTaskId&& i.approvalStatus!='待检查'"
*ngIf="!isExpand && i.approvalStatus!='已检查' && i.relatedTaskId && i.approvalStatus!='待检查' && i.approvalStatus!='检查中'"
(click)="accept(i,item)">接受</span>
<span class="red"
*ngIf="!isExpand && i.approvalStatus!='已检查' && i.relatedTaskId && i.approvalStatus!='待检查'"
*ngIf="!isExpand && i.approvalStatus!='已检查' && i.relatedTaskId && i.approvalStatus!='待检查' && i.approvalStatus!='检查中'"
(click)="reject(i,item)">拒绝</span>
<span class="red"
*ngIf="!isExpand && i.creationType == '自主任务' && i.approvalStatus != '已检查'"
*ngIf="!isExpand && i.creationType == '自主任务' && i.approvalStatus != '已检查' && i.approvalStatus!='检查中'"
(click)="delete(i,item)">删除</span>
<span *ngIf="!isExpand">({{i.approvalStatus}})</span>
</p>

Loading…
Cancel
Save