fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-12 10:52:50
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-29 16:13:40
|
||||
* @LastEditTime : 2022-03-30 13:44:53
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\complaint\\complaint.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -54,6 +54,10 @@
|
||||
<ng-template st-row="complaintCode" let-item let-index="index">
|
||||
<a href="javascript:;" (click)="view(item)">{{item.complaintCode}}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="complaintCauseLabel" let-item let-index="index">
|
||||
<div *ngIf="selectedMainTabStatus == '2'">{{item?.drvComplaintCauseLabel}}</div>
|
||||
<div *ngIf="selectedMainTabStatus == '1'">{{item?.complaintCauseLabel}}</div>
|
||||
</ng-template>
|
||||
</st>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
@ -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