wjx 2 년 전
부모
커밋
58822470f6

+ 3 - 1
src/pages/launchSystemNew/components/crowdPackModal/index.tsx

@@ -127,7 +127,7 @@ const CrowdPackModal: React.FC<Props> = (props) => {
                     }).filter(item => item)
                     if (values.length > 0) {
                         newData = newData.map((item: { adAccountId: string }) => {
-                            if (item.adAccountId === key) {
+                            if (item.adAccountId.toString() === key.toString()) {
                                 if (selectCp === 1) {
                                     return { ...item, customAudienceList: values }
                                 } else {
@@ -138,6 +138,8 @@ const CrowdPackModal: React.FC<Props> = (props) => {
                         })
                     }
                 })
+                console.log('111111->', newData);
+                
                 setData(newData)
             }
             message.success('设置完成');

+ 1 - 1
src/pages/launchSystemNew/components/dataSourceModal/index.tsx

@@ -96,7 +96,7 @@ const DataSourceModal: React.FC<Props> = (props) => {
                     }).filter(item => item)
                     if (values.length > 0) {
                         newData = newData.map((item: { adAccountId: string }) => {
-                            if (item.adAccountId === key) {
+                            if (item.adAccountId.toString() === key.toString()) {
                                 return { ...item, userActionSetsList: values }
                             }
                             return item

+ 1 - 1
src/pages/launchSystemNew/components/expandModal/index.tsx

@@ -128,7 +128,7 @@ const ExpandModal: React.FC<Props> = (props) => {
                     }).filter(item => item)
                     if (values.length > 0) {
                         newData = newData.map((item: { adAccountId: string }) => {
-                            if (item.adAccountId === key) {
+                            if (item.adAccountId.toString() === key.toString()) {
                                 return { ...item, coldStartAudienceList: values }
                             }
                             return item

+ 1 - 1
src/pages/launchSystemNew/components/goodsModal/index.tsx

@@ -101,7 +101,7 @@ const GoodsModal: React.FC<Props> = (props) => {
                     }).filter(item => item)
                     if (values.length > 0) {
                         newData = newData.map((item: { adAccountId: string }) => {
-                            if (item.adAccountId === key) {
+                            if (item.adAccountId.toString() === key.toString()) {
                                 return { ...item, productList: values }
                             }
                             return item

+ 1 - 1
src/pages/launchSystemNew/components/pageModal/index.tsx

@@ -99,7 +99,7 @@ const PageModal: React.FC<Props> = (props) => {
                     if (Array.isArray(records) && records?.length > 0) {
                         let record = records[0]
                         newData = newData.map((item: { adAccountId: string }) => {
-                            if (item.adAccountId === record.accountId.toString()) {
+                            if (item.adAccountId.toString() === record.accountId.toString()) {
                                 return { ...item, pageList: [{ ...record, id: record.pageId }] }
                             }
                             return item