fix bug
This commit is contained in:
		| @ -1,16 +1,14 @@ | ||||
|  | ||||
| <!-- <nz-spin *ngIf="!i" class="modal-spin"></nz-spin> --> | ||||
| <div class="serviceBox"> | ||||
|     <div class="left">客服人员</div> | ||||
|     <div class="left"><span style="color:red">* </span>客服人员</div> | ||||
|     <div class="right"> | ||||
|         <nz-select ngModel="lucy" style="width: 250px;"> | ||||
|             <nz-option nzValue="jack" nzLabel="Jack"></nz-option> | ||||
|             <nz-option nzValue="lucy" nzLabel="Lucy"></nz-option> | ||||
|             <nz-option nzValue="disabled" nzLabel="Disabled" nzDisabled></nz-option> | ||||
|         <nz-select [(ngModel)]="appUserId" style="width: 250px;"> | ||||
|             <nz-option *ngFor="let item of serviceList" [nzValue]="item.appUserId" [nzLabel]="item.name"></nz-option> | ||||
|           </nz-select> | ||||
|     </div> | ||||
| </div> | ||||
| <div class="modal-footer"> | ||||
|     <button nz-button type="button" (click)="close()">关闭</button> | ||||
|     <button nz-button type="button" nzType="primary" (click)="submitForm()" [disabled]="!sf?.valid">确定</button> | ||||
|     <button nz-button type="button" nzType="primary" (click)="submitForm()" [disabled]="!appUserId">确定</button> | ||||
| </div> | ||||
| @ -16,46 +16,38 @@ import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter | ||||
| }) | ||||
| export class ShowServiceComponent implements OnInit { | ||||
|   @ViewChild('sf', { static: false }) sf!: SFComponent; | ||||
|   appUserId = '' | ||||
|   record: any = {}; | ||||
|   i: any; | ||||
|  | ||||
|   serviceList: any = []; | ||||
|  | ||||
|   constructor( | ||||
|     private modal: NzModalRef, | ||||
|     public service: UsermanageService, | ||||
|     private envSrv: EAEnvironmentService, | ||||
|     private eaCacheSrv: EACacheService, | ||||
|   ) { } | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|  | ||||
|     this.initData() | ||||
|   } | ||||
|  | ||||
|  | ||||
| close(): void { | ||||
|   this.modal.close(true) | ||||
| } | ||||
|  | ||||
| initData(){ | ||||
|   this.service.request(this.service.$api_getStaffList).subscribe(res => { | ||||
|     this.serviceList = res | ||||
|   }) | ||||
| } | ||||
| submitForm(){ | ||||
|   // const params:any = { | ||||
|   //   appUserId: this.i.appUserId, | ||||
|   //   ...this.sf.value, | ||||
|   //   bindType: this.i.bindType | ||||
|   // }; | ||||
|   // params.carFrontPhoto = this.detailData.carFrontPhoto | ||||
|   // params.carProtocal = this.detailData.carProtocal | ||||
|   // params.certificatePhotoFront = this.detailData.certificatePhotoFront | ||||
|   // params.certificatePhotoBack = this.detailData.certificatePhotoBack | ||||
|   // params.roadTransportPhoto = this.detailData.roadTransportPhoto | ||||
|   // delete params.titleA | ||||
|   // delete params.titleB | ||||
|   // this.checked = true | ||||
|   // this.service.request(this.service.$api_updateAssistCertification, params).subscribe(res => { | ||||
|   //   this.checked = false | ||||
|   //   if(res){ | ||||
|   //     this.service.msgSrv.success('添加成功') | ||||
|   //     this.modal.close(true) | ||||
|   //   } | ||||
|   // }) | ||||
|   const params:any = { | ||||
|     appUserId: this.appUserId, | ||||
|   }; | ||||
|   this.service.request(this.service.$api_getStaffList, params).subscribe(res => { | ||||
|     if(res){ | ||||
|       this.service.msgSrv.success('分配成功') | ||||
|       this.modal.close(true) | ||||
|     } | ||||
|   }) | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -160,6 +160,8 @@ export class UsermanageService extends ShipperBaseService { | ||||
|   $api_findEnterpriceChannelRelLog = '/api/mdc/enterpriceRelLog/findEnterpriceChannelRelLog'; | ||||
|   // 查询企业合伙人渠道关系信息 | ||||
|   $api_getEnterpriceRel = '/api/mdc/enterpriceRelLog/getEnterpriceRel'; | ||||
|   // 员工列表 | ||||
|   $api_getStaffList = '/api/mdc/cuc/userApp/getStaffList'; | ||||
|  | ||||
|   constructor(public injector: Injector, public nzModalService: NzModalService, private nzImageService: NzImageService) { | ||||
|     super(injector); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user