fix:修复兑换码切换 已结束状态报错

This commit is contained in:
wangsongsole 2022-09-30 12:01:52 +08:00
parent a1061ddf63
commit bb3fe18b37
1 changed files with 5 additions and 4 deletions

View File

@ -218,11 +218,12 @@ export default class acclist extends React.Component {
条件一 如果兑换码状态为1进行中2暂停中3未开始可直接复制
条件二 如果兑换码状态为4已完结5已作废则判断key批次是否是 生效中暂停中审核驳回状态且营销计划是待生效进行中暂停中
*/
console.log(params)
const isCopy =
[1, 2, 3].includes(params.status) ||
([4, 5].includes(params.status) &&
[4, 5, 8].includes(params.keyBatch.status) &&
[3, 5, 4].includes(params.keyBatch.plan.status))
[1, 2, 3].includes(params?.status) ||
([4, 5].includes(params?.status) &&
[4, 5, 8].includes(params.keyBatch?.status) &&
[3, 5, 4].includes(params.keyBatch.plan?.status))
if (isCopy) {
element = (