🐞 fix: 修复 订单状态筛选联动问题
This commit is contained in:
parent
ca50107928
commit
2bee24ff76
|
@ -401,17 +401,25 @@ export default class orderList extends React.Component {
|
|||
}, 300);
|
||||
}
|
||||
|
||||
/* 提取动态删除核销状态条件 */
|
||||
dynamicVoucher() {
|
||||
if (this.state.menuList.length === 3) {
|
||||
/*调用组件方法 销毁核销状态选项 */
|
||||
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
|
||||
}
|
||||
|
||||
this.setState({
|
||||
menuList: [
|
||||
{ id: 0, name: '订单状态', check: false },
|
||||
{ id: 1, name: '支付状态', check: false }
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
onFilterClose(prop) {
|
||||
/* 当支付状态选项关闭时 销毁核销状态选项 */
|
||||
if (prop === 'status') {
|
||||
this.setState({
|
||||
menuList: [
|
||||
{ id: 0, name: '订单状态', check: false },
|
||||
{ id: 1, name: '支付状态', check: false }
|
||||
]
|
||||
});
|
||||
/*调用组件方法 销毁核销状态选项 */
|
||||
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
|
||||
this.dynamicVoucher();
|
||||
}
|
||||
|
||||
let data = {};
|
||||
|
@ -553,17 +561,7 @@ export default class orderList extends React.Component {
|
|||
]
|
||||
});
|
||||
} else {
|
||||
if (this.state.menuList.length === 3) {
|
||||
/*调用组件方法 销毁核销状态选项 */
|
||||
this.refs.filterBar.onCloseSelect('', 3, 'voucher_status');
|
||||
}
|
||||
|
||||
this.setState({
|
||||
menuList: [
|
||||
{ id: 0, name: '订单状态', check: false },
|
||||
{ id: 1, name: '支付状态', check: false }
|
||||
]
|
||||
});
|
||||
this.dynamicVoucher();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue