edit
This commit is contained in:
@ -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: {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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(`冻结成功!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user