车辆对接
This commit is contained in:
		| @ -19,6 +19,7 @@ export class FreightComponentsUserComponent implements OnInit { | ||||
|  | ||||
|   @ViewChild('promoterModal', { static: false }) | ||||
|   promoterModal!: any; | ||||
|   resourceStatus: any; | ||||
|   promotersTelephone = ''; | ||||
|  | ||||
|   constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {} | ||||
| @ -27,7 +28,17 @@ export class FreightComponentsUserComponent implements OnInit { | ||||
|    * 查询参数 | ||||
|    */ | ||||
|   get reqParams() { | ||||
|     const a:any = {}; | ||||
|     console.log(this.resourceStatus) | ||||
|     if(this.resourceStatus === 1) { | ||||
|       a.certificationStatus = 0 | ||||
|     } else if(this.resourceStatus === 2) { | ||||
|       a.certificationStatus = 1 | ||||
|     } else if(this.resourceStatus === 3) { | ||||
|       a.certificationStatus = 2 | ||||
|     } | ||||
|     const params: any = { | ||||
|       ...a, | ||||
|       ...(this.sf && this.sf.value) | ||||
|     }; | ||||
|     if (this.sf?.value.effectiveDate) { | ||||
| @ -54,7 +65,16 @@ export class FreightComponentsUserComponent implements OnInit { | ||||
|       this.st?.load(1); | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   selectChange(e: number) { | ||||
|     console.log(e); | ||||
|     if(e>=1) { | ||||
|     this.resourceStatus = e; | ||||
|     } | ||||
|     this.initST(); | ||||
|     setTimeout(() => { | ||||
|       this.st.load(); | ||||
|     }, 500); | ||||
|   } | ||||
|   addPromoter(item?: any) { | ||||
|     this.promotersTelephone = item?.promotersTelephone; | ||||
|     const modal = this.modal.create({ | ||||
| @ -155,13 +175,14 @@ export class FreightComponentsUserComponent implements OnInit { | ||||
|             placeholder: '请输入' | ||||
|           } | ||||
|         }, | ||||
|         stateLocked: { | ||||
|         certificationStatus: { | ||||
|           type: 'string', | ||||
|           title: '状态', | ||||
|           enum: [ | ||||
|             { label: '全部', value: '' }, | ||||
|             { label: '正常', value: 0 }, | ||||
|             { label: '冻结', value: 1 } | ||||
|             { label: '待审核', value: 0 }, | ||||
|             { label: '正常', value: 1 }, | ||||
|             { label: '冻结', value: 2 } | ||||
|           ], | ||||
|           default: '', | ||||
|           ui: { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user