This commit is contained in:
Taric Xin
2022-03-29 15:12:01 +08:00
parent 995afc0a0b
commit d1c0f7a05f
5 changed files with 19 additions and 11 deletions

View File

@ -71,6 +71,9 @@ export class PartnerListComponent {
nzComponentParams: { info: { ...item, enterpriseName: item.enterpriseName || item.contactName }, sourcePage: '合伙人审核列表' },
nzFooter: null
});
modal.afterClose.subscribe(res => {
modal.destroy();
});
}
editTemplateAction(item: any) {
@ -102,6 +105,7 @@ export class PartnerListComponent {
.subscribe(res => {
if (res) {
this.service.msgSrv.success('修改成功');
this.st.load(1);
this.nzModalService.closeAll();
}
});
@ -161,6 +165,7 @@ export class PartnerListComponent {
if (res) {
this.service.msgSrv.success('修改成功');
this.nzModalService.closeAll();
this.st.load(1);
}
});
}
@ -185,6 +190,7 @@ export class PartnerListComponent {
} else {
this.service.msgSrv.warning('发起失败');
}
this.st.load(1);
});
}
});

View File

@ -16,8 +16,8 @@
<p style="margin-bottom: 0">{{ detailData?.enterpriseName }}</p>
</div>
<div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.stateLocked === 0"> </nz-badge>
<nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.stateLocked === 1"></nz-badge>
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.lockedStatus === 0"> </nz-badge>
<nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.lockedStatus === 1"></nz-badge>
</div>
</div>
<div nz-row>
@ -46,12 +46,12 @@
</ng-container>
<ng-container *ngIf="detailData?.approvalStatus != 10">
<button [disabled]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable"
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked"
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.lockedStatus"
acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-D-lock']">
启用
</button>
<button [disabled]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.stateLocked"
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.lockedStatus"
acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-D-lock']">
冻结
</button>

View File

@ -117,7 +117,7 @@ export class PartnerDetailComponent implements OnInit, OnDestroy {
freezeOrResume(type: number) {
this.service.http
.post(this.service.$api_lock_freight, {
appUserId: [this.route.snapshot.params.id],
appUserId: [this.detailData.appUserId],
freezeOrResume: !!type,
pageName: '合伙人详情',
telephone: this.detailData.adminUserInfo.mobile

View File

@ -16,8 +16,8 @@
<p style="margin-bottom: 0">{{ detailData?.adminUserInfo?.name }}</p>
</div>
<div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.stateLocked === 0"> </nz-badge>
<nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.stateLocked === 1"></nz-badge>
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.lockedStatus === 0"> </nz-badge>
<nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.lockedStatus === 1"></nz-badge>
</div>
</div>
<div nz-row>
@ -46,12 +46,12 @@
</ng-container>
<ng-container *ngIf="detailData?.approvalStatus != 10">
<button [disabled]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable"
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked"
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.lockedStatus"
acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-D-lock']">
启用
</button>
<button [disabled]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.stateLocked"
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.lockedStatus"
acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-D-lock']">
冻结
</button>

View File

@ -92,8 +92,10 @@ export class PersonalPartnerDetailComponent implements OnInit {
freezeOrResume(type: number) {
this.service.http
.post(this.service.$api_lock_freight, {
id: this.route.snapshot.params.id,
statedLocked: !!type
appUserId: [this.detailData.appUserId],
freezeOrResume: !!type,
pageName: '合伙人详情',
telephone: this.detailData.adminUserInfo.mobile
})
.subscribe(res => {
if (res.data === true) {