This commit is contained in:
Taric Xin
2021-12-17 17:38:47 +08:00
parent 7b80dced8b
commit b47fe7a472
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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(`冻结成功!`);