🐞 fix: 修复 订单状态筛选联动问题

This commit is contained in:
wangsongsole 2023-03-28 15:54:17 +08:00
parent ca50107928
commit 2bee24ff76
1 changed files with 17 additions and 19 deletions

View File

@ -401,17 +401,25 @@ export default class orderList extends React.Component {
}, 300); }, 300);
} }
onFilterClose(prop) { /* 提取动态删除核销状态条件 */
/* 当支付状态选项关闭时 销毁核销状态选项 */ dynamicVoucher() {
if (prop === 'status') { if (this.state.menuList.length === 3) {
/*调用组件方法 销毁核销状态选项 */
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
}
this.setState({ this.setState({
menuList: [ menuList: [
{ id: 0, name: '订单状态', check: false }, { id: 0, name: '订单状态', check: false },
{ id: 1, name: '支付状态', check: false } { id: 1, name: '支付状态', check: false }
] ]
}); });
/*调用组件方法 销毁核销状态选项 */ }
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
onFilterClose(prop) {
/* 当支付状态选项关闭时 销毁核销状态选项 */
if (prop === 'status') {
this.dynamicVoucher();
} }
let data = {}; let data = {};
@ -553,17 +561,7 @@ export default class orderList extends React.Component {
] ]
}); });
} else { } else {
if (this.state.menuList.length === 3) { this.dynamicVoucher();
/*调用组件方法 销毁核销状态选项 */
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
}
this.setState({
menuList: [
{ id: 0, name: '订单状态', check: false },
{ id: 1, name: '支付状态', check: false }
]
});
} }
} }