fix bug
This commit is contained in:
		| @ -54,11 +54,14 @@ export class OrderManagementComplaintComponent implements OnInit { | ||||
|     public service: OrderManagementService, | ||||
|     private modal: NzModalService, | ||||
|     private router: Router | ||||
|      ) {     if (this.selectedIndex === 0) { | ||||
|       this.selectedMainTabStatus = '2'; | ||||
|     } else if (this.selectedIndex === 1) { | ||||
|       this.selectedMainTabStatus = '1'; | ||||
|     }} | ||||
|      ) {    | ||||
|     //    console.log(this.selectedIndex); | ||||
|     //   if (this.selectedIndex === 0) { | ||||
|     //   this.selectedMainTabStatus = '2'; | ||||
|     // } else if (this.selectedIndex === 1) { | ||||
|     //   this.selectedMainTabStatus = '1'; | ||||
|     // } | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|  * 查询参数 | ||||
| @ -68,11 +71,18 @@ export class OrderManagementComplaintComponent implements OnInit { | ||||
|     if(this.resourceStatus) { | ||||
|       a.complaintStatus = this.resourceStatus  | ||||
|     } | ||||
|     if(this.selectedMainTabStatus) { | ||||
|       a.complainantParty = this.selectedMainTabStatus | ||||
|     } | ||||
|     console.log( this.sf?.value); | ||||
|     console.log(this.selectedMainTabStatus); | ||||
|      | ||||
|     if(this.selectedMainTabStatus) { | ||||
|       switch(this.selectedMainTabStatus) { | ||||
|         case '1': | ||||
|           a.complainantParty = '2' | ||||
|           break; | ||||
|           case '2': | ||||
|           a.complainantParty = '1' | ||||
|           break; | ||||
|       } | ||||
|     } | ||||
|     const params: any = Object.assign({}, this.sf?.value || {}); | ||||
|     delete params._$expand; | ||||
|     return { | ||||
| @ -264,6 +274,7 @@ export class OrderManagementComplaintComponent implements OnInit { | ||||
|    * 切换投诉与被投诉tab | ||||
|    */ | ||||
|      selectMainTab(e: any) { | ||||
|        console.log(e); | ||||
|       console.log(this.selectedIndex); | ||||
|       this.selectedMainTabStatus = e?.status; | ||||
|       this.initST(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user