fix bug
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-24 15:38:08
|
||||
* @LastEditTime : 2022-04-13 20:05:09
|
||||
* @LastEditTime : 2022-04-15 16:42:10
|
||||
* @LastEditors : Shiming
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\waybill-management\\components\\abnormal-appear\\abnormal-appear.component.html
|
||||
@ -42,7 +42,7 @@
|
||||
</nz-card>
|
||||
|
||||
<nz-card class="content-box">
|
||||
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
|
||||
<nz-tabset [(nzSelectedIndex)]="selectedIndex" (nzSelectedIndexChange)="selectChange($event)">
|
||||
<nz-tab [nzTitle]="'待回复(' + tabs?.stayQuantity + ')'">
|
||||
<st
|
||||
#st
|
||||
@ -69,12 +69,12 @@
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle='已回复'>
|
||||
<nz-tab [nzTitle]="'已回复(' + tabs?.receivedQuantity + ')'">
|
||||
<st
|
||||
#st2
|
||||
[data]="service.$api_get_listOperatePage"
|
||||
[columns]="columns2"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams2 }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loading]="false"
|
||||
|
||||
@ -70,18 +70,19 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
||||
{ title: '回复人', index: 'replyAppUserName', width: '180px', className: 'text-left' },
|
||||
{ title: '回复时间', index: 'replyTime', width: '180px', className: 'text-left' }
|
||||
];
|
||||
resourceStatus: number | undefined;
|
||||
|
||||
|
||||
get reqParams() {
|
||||
return {
|
||||
...this.sf?.value,
|
||||
replyStatus: 0
|
||||
replyStatus: this.resourceStatus || 0
|
||||
};
|
||||
}
|
||||
get reqParams2() {
|
||||
return {
|
||||
...this.sf?.value,
|
||||
replyStatus: 1
|
||||
replyStatus:this.resourceStatus || 1
|
||||
};
|
||||
}
|
||||
|
||||
@ -214,6 +215,14 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e ;
|
||||
setTimeout(() => {
|
||||
this?.st?.load(1);
|
||||
this?.st2?.load(1);
|
||||
}, 0);
|
||||
}
|
||||
getGoodsSourceStatistical() {
|
||||
this.tabs = {
|
||||
stayQuantity: 0,
|
||||
|
||||
Reference in New Issue
Block a user