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