edit
This commit is contained in:
@ -53,11 +53,11 @@
|
||||
</ng-container>
|
||||
<ng-container *ngIf="detailData?.approvalStatus!=10">
|
||||
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable"
|
||||
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked">
|
||||
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked">
|
||||
启用
|
||||
</button>
|
||||
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
|
||||
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.stateLocked">
|
||||
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.stateLocked">
|
||||
冻结
|
||||
</button>
|
||||
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm
|
||||
|
||||
@ -75,7 +75,7 @@ export class FreightComponentsListDetailComponent implements OnInit {
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res.data === true) {
|
||||
if (type === 1) {
|
||||
if (type === 0) {
|
||||
this.service.msgSrv.success(`启用成功!`);
|
||||
} else {
|
||||
this.service.msgSrv.success(`冻结成功!`);
|
||||
|
||||
Reference in New Issue
Block a user