wjx 2 vuotta sitten
vanhempi
commit
d2760f9017

+ 1 - 1
src/pages/launchSystemNew/account/index.tsx

@@ -84,7 +84,7 @@ const AdAuthorize: React.FC = () => {
 
     const remark = () => {
         if (remarkData.remark && remarkData.data) {
-            putRemark.run(remarkData.data.id, remarkData.remark).then(res => {
+            putRemark.run(remarkData.data.accountId, remarkData.remark).then(res => {
                 set_remarkData({ ...remarkData, visible: false, remark: '', data: null })
                 getList()
             })

+ 2 - 2
src/pages/launchSystemNew/adq/adAccount/index.tsx

@@ -54,7 +54,7 @@ function AdAccount(props: Props) {
             message.error('请勾选要同步的广点通账号!')
             return
         }
-        syncAjax.run(selectedRowKeys).then(res => {
+        syncAjax.run(selectedRowKeys?.map((item: any) => item.accountId)).then(res => {
             res && listAjax.refresh()
             res ? message.success('同步成功!') : message.error('同步失败!')
 
@@ -93,7 +93,7 @@ function AdAccount(props: Props) {
             </>}
             rowSelection={{
                 onChange: (selectedRowKeys: React.Key[], selectedRows: any[]) => {
-                    setSelectedRowKeys(selectedRowKeys)
+                    setSelectedRowKeys(selectedRows)
                 }
             }}
             onChange={(props: any) => {

+ 2 - 2
src/pages/launchSystemNew/adq/index.tsx

@@ -15,13 +15,13 @@ import Promoted from './promoted';
 const { TabPane } = Tabs;
 let Menus: any = Menu
 const tabsConfig = [
-    { key: '1', tab: '账户信息', jsx: (props: any) => <AdAccount {...props} /> },
+    // { key: '1', tab: '账户信息', jsx: (props: any) => <AdAccount {...props} /> },
     { key: '3', tab: '广告', jsx: (props: any) => <Ad {...props} /> },
     { key: '2', tab: '计划', jsx: (props: any) => <Campaign {...props} /> },
     { key: '4', tab: '创意', jsx: (props: any) => <Creative {...props} /> },
     { key: '5', tab: '落地页', jsx: (props: any) => <LandingPage {...props} /> },
-    { key: '6', tab: '定向', jsx: (props: any) => <Targeting {...props} /> },
     { key: '7', tab: '推广目标', jsx: (props: any) => <Promoted {...props} /> },
+    { key: '6', tab: '定向', jsx: (props: any) => <Targeting {...props} /> },
 ]
 function Adq() {
     const userInfo = useModel('@@initialState', model => model.initialState?.currentUser)

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

@@ -80,7 +80,7 @@ const CrowdPackModal: React.FC<Props> = (props) => {
 
     // 同步人群包
     const synGoodsList = () => {
-        sysCrowdPack.run(data?.map((item: { id: number }) => item?.id)).then(res => {
+        sysCrowdPack.run(data?.map((item: { adAccountId: number }) => item?.adAccountId)).then(res => {
             getList([data[selectAdz - 1].adAccountId])
         })
     }

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

@@ -94,7 +94,7 @@ const CustomerServiceModal: React.FC<Props> = (props) => {
     const handleSys = () => {
         if (corpId) {
             console.log(data[selectAdz - 1].id, corpId);
-            sysCropWechat.run({ accountId: data[selectAdz - 1].id, corpId: corpId }).then(res => {
+            sysCropWechat.run({ accountId: data[selectAdz - 1].adAccountId, corpId: corpId }).then(res => {
                 if (res) {
                     getList([data[selectAdz - 1].adAccountId])
                     message.success('同步成功')

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

@@ -57,7 +57,7 @@ const DataSourceModal: React.FC<Props> = (props) => {
 
     // 同步数据源
     const synDataSourceList = () => {
-        sysDataSource.run(data?.map((item: { id: number }) => item?.id)).then(res => {
+        sysDataSource.run(data?.map((item: { adAccountId: number }) => item?.adAccountId)).then(res => {
             getList([data[selectAdz - 1].adAccountId])
         })
     }

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

@@ -70,7 +70,7 @@ const ExpandModal: React.FC<Props> = (props) => {
 
     // 同步种子人群
     const synGoodsList = () => {
-        sysCrowdPack.run(data?.map((item: { id: number }) => item?.id)).then(res => {
+        sysCrowdPack.run(data?.map((item: { adAccountId: number }) => item?.adAccountId)).then(res => {
             getList([data[selectAdz - 1].adAccountId])
         })
     }

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

@@ -54,7 +54,7 @@ const IdModal: React.FC<Props> = (props) => {
 
     // 同步商品库
     const synIdList = () => {
-        sysId.run(data?.map((item: { id: number }) => item?.id)).then(res => {
+        sysId.run(data?.map((item: { adAccountId: number }) => item?.adAccountId)).then(res => {
             getList([data[selectAdz - 1].adAccountId])
         })
     }

+ 3 - 2
src/pages/launchSystemNew/launchManage/createAd/index.tsx

@@ -87,7 +87,8 @@ const CreateAd: React.FC = () => {
     const getAdcreativeTemplate = useAjax((params) => get_adcreative_template(params))
     const getGroupList = useAjax(() => getGroupListApi())
     /*************************/
-
+    console.log('accountCreateLogs-->', accountCreateLogs);
+    
     useEffect(() => {
         getGroupList.run()
     }, [])
@@ -636,7 +637,7 @@ const CreateAd: React.FC = () => {
         let params = { ...newQueryForm, ...props }
         let accountLogs = accountCreateLogs.map((item: any, index) => {
             // userActionSetsList 数据源  productList 商品
-            let data: any = { adAccountId: item.id, count: props.count || 1 }
+            let data: any = { adAccountId: item.adAccountId, count: props.count || 1 }
             if (item?.userActionSetsList?.length > 0) { // 数据源
                 data.userActionSets = item?.userActionSetsList?.map((item: any) => ({ id: item?.id, type: item?.type }))
             }