edit
This commit is contained in:
@ -10,52 +10,32 @@
|
||||
<div class="user-info">
|
||||
<img [src]="userDetail?.avatar" />
|
||||
<div style="flex: 1">
|
||||
<div style="display: flex;">
|
||||
<p style="padding-right: 80px; width: 400px;">{{ userDetail?.name }}</p>
|
||||
<nz-badge nzStatus="error" nzText="正常" *ngIf="userDetail?.stateLocked"></nz-badge>
|
||||
<nz-badge nzStatus="warning" nzText="冻结" *ngIf="!userDetail?.stateLocked"></nz-badge>
|
||||
<div style="display: flex;width: 100%;justify-content: space-between;">
|
||||
<p style="padding-right: 80px; width: 400px;">{{ userDetail?.name }}
|
||||
<nz-badge nzStatus="success" nzText="正常" *ngIf="!userDetail?.stateLocked" class="ml-xl"></nz-badge>
|
||||
<nz-badge nzStatus="warning" nzText="冻结" *ngIf="userDetail?.stateLocked" class="ml-xl"></nz-badge>
|
||||
</p>
|
||||
<div style="margin-right: 24px;">
|
||||
<button *ngIf="userDetail?.stateLocked" [nzLoading]="service.http.loading" nz-button nzType="primary"
|
||||
nzGhost (click)="userAction(1)">
|
||||
启用
|
||||
</button>
|
||||
<button *ngIf="!userDetail?.stateLocked" [nzLoading]="service.http.loading" nz-button nzDanger nzGhost
|
||||
(click)="userAction(0)">
|
||||
冻结
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex;">
|
||||
<p style="padding-right: 80px; width: 400px;">手机号:{{ userDetail?.phone }}
|
||||
</p>
|
||||
<p>注册时间:{{ userDetail?.createTime }}</p>
|
||||
</div>
|
||||
|
||||
<div style="float: right;margin-right: 24px;">
|
||||
<button [nzLoading]="service.http.loading" nz-button nzType="primary" nzGhost nz-popconfirm
|
||||
[nzPopconfirmTitle]="enable" (nzOnConfirm)="userAction(1)" nzPopconfirmPlacement="bottomRight">
|
||||
启用
|
||||
</button>
|
||||
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
|
||||
(nzOnConfirm)="userAction(0)" nzPopconfirmPlacement="bottomRight">
|
||||
冻结
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nz-skeleton>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #frozen>
|
||||
<div class="ant-popover-message">
|
||||
<i nz-icon nzType="info-circle" nzTheme="fill"></i>
|
||||
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定冻结该企业吗?
|
||||
</div>
|
||||
<div class="ant-popover-message-title ng-star-inserted">
|
||||
停用后,该企业将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #enable>
|
||||
<div class="ant-popover-message">
|
||||
<i nz-icon nzType="info-circle" nzTheme="fill"></i>
|
||||
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定启用该企业吗?
|
||||
</div>
|
||||
<div class="ant-popover-message-title ng-star-inserted">
|
||||
启用后,该企业将恢复正常使用功能,请再次确认
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</page-header-wrapper>
|
||||
|
||||
|
||||
@ -63,10 +43,10 @@
|
||||
<div [class]="isEditUser?'edit-box':'readOnly-box'">
|
||||
<sv-container col="2">
|
||||
<sv-title>个人信息
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===1" style="color: #52c41a;"><i nz-icon
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===1" style="color: #52c41a;" class="ml-md"><i nz-icon
|
||||
nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
|
||||
</label>
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===2" style="color: #ff4d4f;"><i nz-icon
|
||||
<label *ngIf="userIdentityDetail?.certificationStatus===2" style="color: #ff4d4f;" class="ml-md"><i nz-icon
|
||||
nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
|
||||
</label>
|
||||
<div style="float: right;">
|
||||
@ -112,11 +92,11 @@
|
||||
<div [class]="isEditDriver?'edit-box':'readOnly-box'">
|
||||
<sv-container col="3" class="mt16">
|
||||
<sv-title>驾驶证信息
|
||||
<label *ngIf="driverDetail?.approvalStatus===20" style="color: #52c41a;"><i nz-icon nzType="check-circle"
|
||||
nzTheme="fill" class="mr-xs"></i>审核通过
|
||||
<label *ngIf="driverDetail?.approvalStatus===20" style="color: #52c41a;" class="ml-md"><i nz-icon
|
||||
nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
|
||||
</label>
|
||||
<label *ngIf="driverDetail?.approvalStatus===30" style="color: #ff4d4f;"><i nz-icon nzType="close-circle"
|
||||
nzTheme="fill" class="mr-xs"></i>驳回
|
||||
<label *ngIf="driverDetail?.approvalStatus===30" style="color: #ff4d4f;" class="ml-md"><i nz-icon
|
||||
nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
|
||||
</label>
|
||||
<div style="float: right;">
|
||||
<ng-container *ngIf="isEditDriver;else editDriverButton">
|
||||
@ -168,10 +148,10 @@
|
||||
<nz-divider></nz-divider>
|
||||
<sv-container col="3" class="mt16">
|
||||
<sv-title>从业资格证信息
|
||||
<label *ngIf="licenseDetail?.approvalStatus===20" style="color: #52c41a;">
|
||||
<label *ngIf="licenseDetail?.approvalStatus===20" style="color: #52c41a;" class="ml-md">
|
||||
<i nz-icon nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
|
||||
</label>
|
||||
<label *ngIf="licenseDetail?.approvalStatus===30" style="color: #ff4d4f;">
|
||||
<label *ngIf="licenseDetail?.approvalStatus===30" style="color: #ff4d4f;" class="ml-md">
|
||||
<i nz-icon nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
|
||||
</label>
|
||||
</sv-title>
|
||||
|
||||
@ -94,12 +94,25 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
|
||||
/** 启用/冻结司机 */
|
||||
userAction(status: number) {
|
||||
console.log( this.userDetail );
|
||||
|
||||
this.nzModalService.warning({
|
||||
nzTitle: status === 1 ? '确定启用该司机吗?' : '确定冻结该司机吗?',
|
||||
nzContent: status === 1 ? '停用后,司机将被限制使用,无法登陆,请谨慎操作!' : '启用后,该司机将恢复正常使用功能,请再次确认!',
|
||||
nzOnOk: () => {
|
||||
// this.service.request(this.service.$api_lock_user)
|
||||
this.initData();
|
||||
this.service
|
||||
.request(this.service.$api_lock_or_free_user, {
|
||||
appUserId: [this.userDetail.appUserId],
|
||||
freezeOrResume: !!!status,
|
||||
pageName: '司机详情',
|
||||
telephone: this.userDetail.phone
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('操作成功');
|
||||
}
|
||||
this.initData();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -303,7 +316,6 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
? userIdentity.validStartTime
|
||||
: this.datePipe.transform(userIdentity.validStartTime, 'yyyy-MM-dd')
|
||||
};
|
||||
console.log(this.userIdentityDetail);
|
||||
this.service.request(this.service.$api_update_driver_identity, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('修改成功');
|
||||
@ -315,8 +327,8 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
|
||||
changeUpload({ file, fileList, type }: any, data: any, key: string, key2: string) {
|
||||
if (type === 'success') {
|
||||
data[key] = file.response.data.fullFileWatermarkPath;
|
||||
data[key2] = file.response.data.fullFilePath;
|
||||
data[key] = file.response.data?.fullFileWatermarkPath;
|
||||
data[key2] = file.response.data?.fullFilePath;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
showRequired: false
|
||||
}
|
||||
},
|
||||
mobile: {
|
||||
contactName: {
|
||||
title: '联系人',
|
||||
type: 'string',
|
||||
ui: {
|
||||
|
||||
@ -60,11 +60,13 @@ export class UsermanageService extends BaseService {
|
||||
// 司机详情查看-载具信息
|
||||
$api_get_driver_car_license = '/api/mdc/cuc/driver/getUserCarLicense';
|
||||
|
||||
// 修改实名认证-【司机】
|
||||
$api_update_driver_identity = '/api/mdc/cuc/identityInfo/save';
|
||||
// 修改实名认证-运营管理后台
|
||||
$api_update_driver_identity = '/api/mdc/cuc/identityInfo/operatorAlterIdentity';
|
||||
// 修改驾驶证信息
|
||||
$api_update_driver_license = '/api/mdc/cuc/driver/updateDriverLicense';
|
||||
|
||||
// 冻结或恢复应用用户
|
||||
$api_lock_or_free_user = '/api/mdc/cuc/userApp/freezeOrResume';
|
||||
// 人工审核实名认证
|
||||
$api_approve_identity = '/api/mdc/cuc/identityInfo/identityAudit';
|
||||
// 审核驾驶证信息
|
||||
|
||||
Reference in New Issue
Block a user