feat: 完成兑换列表过滤
This commit is contained in:
parent
60383b44ac
commit
ed1fa18055
|
@ -74,7 +74,9 @@ export default class exchangeAdd extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
const select = req.map((o) => {
|
// 包码增加 1.过滤包码的计划
|
||||||
|
let new_plan_list = req.filter((item) => item.settlement_type <= 0)
|
||||||
|
const select = new_plan_list.map((o) => {
|
||||||
return { key: o.id, text: o.title, ...o }
|
return { key: o.id, text: o.title, ...o }
|
||||||
})
|
})
|
||||||
this.setState({ planSelectData: select })
|
this.setState({ planSelectData: select })
|
||||||
|
|
|
@ -81,7 +81,8 @@ export default class settlementList extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
const planOptions = req.map((item) => ({
|
let new_planOptions = req.filter((item) => item.settlement_type > 0)
|
||||||
|
const planOptions = new_planOptions.map((item) => ({
|
||||||
key: item.id,
|
key: item.id,
|
||||||
text: item.title
|
text: item.title
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in New Issue