修复 兑换码列表 复制状态错误展示
This commit is contained in:
parent
9c1d31c640
commit
93bfb654ab
|
@ -188,11 +188,17 @@ export default class acclist extends React.Component {
|
|||
/* 处理可复制数据逻辑 */
|
||||
copyElementFunction({ key_batch_id, status, keyBatch, id, title }) {
|
||||
let element = ''
|
||||
if (
|
||||
![-1, 6, 7].includes(status) &&
|
||||
![6, 7].includes(keyBatch?.status) &&
|
||||
keyBatch?.discard === 0
|
||||
) {
|
||||
/*
|
||||
条件一 如果兑换码状态为1(进行中)、2(暂停中)、3(未开始)可直接复制
|
||||
条件二 如果兑换码状态为4(已完结)、5(已作废)则判断key批次是否是 生效中、暂停中、审核驳回状态且营销计划是待生效、进行中、暂停中
|
||||
*/
|
||||
const isCopy =
|
||||
[1, 2, 3].includes(status) ||
|
||||
([4, 5].includes(status) &&
|
||||
[4, 5, 8].includes(keyBatch.status) &&
|
||||
[3, 5, 4].includes(keyBatch.plan.status))
|
||||
|
||||
if (isCopy) {
|
||||
element = (
|
||||
<span
|
||||
className='grid-link'
|
||||
|
|
Loading…
Reference in New Issue