fix:修复兑换码切换 已结束状态报错
This commit is contained in:
parent
a1061ddf63
commit
bb3fe18b37
|
@ -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 = (
|
||||
|
|
Loading…
Reference in New Issue