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

@ -254,13 +254,14 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
placeholder: '请输入' placeholder: '请输入'
} }
}, },
lockedStatus: { approvalStatus: {
type: 'string', type: 'string',
title: '状态', title: '审核状态',
enum: [ enum: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '正常', value: 0 }, { label: '待审核', value: 10 },
{ label: '冻结', value: 1 } { label: '已成功', value: 20 },
{ label: '审核失败', value: 30 }
], ],
default: '', default: '',
ui: { ui: {

View File

@ -53,11 +53,11 @@
</ng-container> </ng-container>
<ng-container *ngIf="detailData?.approvalStatus!=10"> <ng-container *ngIf="detailData?.approvalStatus!=10">
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable" <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>
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen" <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>
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm

View File

@ -75,7 +75,7 @@ export class FreightComponentsListDetailComponent implements OnInit {
}) })
.subscribe(res => { .subscribe(res => {
if (res.data === true) { if (res.data === true) {
if (type === 1) { if (type === 0) {
this.service.msgSrv.success(`启用成功!`); this.service.msgSrv.success(`启用成功!`);
} else { } else {
this.service.msgSrv.success(`冻结成功!`); this.service.msgSrv.success(`冻结成功!`);