fix bug
This commit is contained in:
@ -23,15 +23,15 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
_$expand = false;
|
||||
channelId: any;
|
||||
resourceStatus: any;
|
||||
selectedMainTabStatus = '1';
|
||||
selectedMainTabStatus = '2';
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||
columns: STColumn[] = [];
|
||||
selectedIndex: number = 0;
|
||||
mainTabs = [
|
||||
{ name: '司机投诉', status: '1' },
|
||||
{ name: '货主投诉', status: '2' },
|
||||
{ name: '司机投诉', status: '2' },
|
||||
{ name: '货主投诉', status: '1' },
|
||||
]
|
||||
tabs = [ {
|
||||
name: '全部',
|
||||
@ -71,17 +71,8 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
if(this.resourceStatus) {
|
||||
a.complaintStatus = this.resourceStatus
|
||||
}
|
||||
console.log(this.selectedMainTabStatus);
|
||||
|
||||
if(this.selectedMainTabStatus) {
|
||||
switch(this.selectedMainTabStatus) {
|
||||
case '1':
|
||||
a.complainantParty = '2'
|
||||
break;
|
||||
case '2':
|
||||
a.complainantParty = '1'
|
||||
break;
|
||||
}
|
||||
a.complainantParty = this.selectedMainTabStatus
|
||||
}
|
||||
const params: any = Object.assign({}, this.sf?.value || {});
|
||||
delete params._$expand;
|
||||
@ -166,7 +157,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
title: '投诉原因',
|
||||
className: 'text-center',
|
||||
width: '170px',
|
||||
index: 'complaintCauseLabel'
|
||||
render: 'complaintCauseLabel'
|
||||
},
|
||||
{
|
||||
title: '投诉状态',
|
||||
|
||||
Reference in New Issue
Block a user