fix bug
This commit is contained in:
@ -59,7 +59,9 @@ export class WithdrawalsRecordComponent extends BasicTableComponent {
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
data = data.map(node => ({ ...node, disabled: node.refundStatus !== '1' }));
|
||||
data = data.map(node => ({ ...node,
|
||||
disabled: node.refundStatus !== '1'
|
||||
}));
|
||||
return data;
|
||||
};
|
||||
|
||||
@ -84,7 +86,7 @@ export class WithdrawalsRecordComponent extends BasicTableComponent {
|
||||
params = [item.id];
|
||||
} else {
|
||||
console.log(this.selectedRows);
|
||||
|
||||
|
||||
if (this.selectedRows.length <= 0) {
|
||||
this.service.msgSrv.error('请选择提现单!');
|
||||
return;
|
||||
|
||||
@ -47,7 +47,9 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
data = data.map(node => ({ ...node, disabled: node.refundStatus !== '1' }));
|
||||
data = data.map(node => ({ ...node,
|
||||
// disabled: node.refundStatus !== '1'
|
||||
}));
|
||||
return data;
|
||||
};
|
||||
|
||||
@ -74,16 +76,19 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni
|
||||
const stList = this.st.list;
|
||||
stList.forEach(item => {
|
||||
if (!item.checked) {
|
||||
|
||||
const index = this.selectedRows.findIndex(_item => item.id === _item.id);
|
||||
if (index !== -1) this.selectedRows.splice(index, 1);
|
||||
}
|
||||
})
|
||||
}
|
||||
let totalCallNo = 0;
|
||||
this.totalCallNo = 0;
|
||||
this.selectedRows.forEach((item => {
|
||||
totalCallNo = new Big(this.totalCallNo).plus(item?.amount).parse();
|
||||
}));
|
||||
this.totalCallNo = totalCallNo;
|
||||
}));
|
||||
|
||||
} else if (e.type === 'loaded') {
|
||||
// 页面加载时勾选
|
||||
(e?.loaded || []).forEach((r) => {
|
||||
|
||||
Reference in New Issue
Block a user