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