This commit is contained in:
zhangds 2024-05-13 17:51:15 +08:00
parent 46306ff6a8
commit d4d7564809
2 changed files with 6 additions and 10 deletions

View File

@ -215,8 +215,8 @@ const UseCouponCommodity = () => {
} }
const voucherBatchForEl = (data) => { const voucherBatchForEl = (data) => {
let el = data.map((item) => item.channel_activity_id) console.log("data =>", data)
return el.join(" , ") return 1
} }
return ( return (
@ -265,7 +265,7 @@ const UseCouponCommodity = () => {
} }
if (com == "voucher_batch") { if (com == "voucher_batch") {
return <>{voucherBatchForEl(rowData.origin.voucher_batch)}</> return <>{voucherBatchForEl(rowData)}</>
} }
if (com === "opearo") { if (com === "opearo") {

View File

@ -27,9 +27,9 @@ const Column = [
{ {
title: "平台批次号", title: "平台批次号",
width: "auto", width: "auto",
prop: "voucher_batch", prop: "channel_activity_id",
name: "voucher_batch", name: "channel_activity_id",
type: "slot" type: "normal"
}, },
{ {
title: "上游平台", title: "上游平台",
@ -331,10 +331,6 @@ export default class commodityList extends React.Component {
</Tag> </Tag>
) )
} }
if (com == "voucher_batch") {
return <>{this.voucherBatchForEl(rowData.origin.voucher_batch)}</>
}
if (com == "opearo") { if (com == "opearo") {
return ( return (
<> <>