shenwu hace 2 años
padre
commit
d286ff86a0

+ 4 - 5
src/pages/launchSystemNew/adq/adAccount/index.tsx

@@ -29,7 +29,7 @@ type Props = {
     }) => void
 }
 function AdAccount(props: Props) {
-    let { adAccountId, userId ,tableIdClick} = props
+    let {accountId, adAccountId, userId ,tableIdClick} = props
     let [selectedRowKeys, setSelectedRowKeys] = useState<any[]>([])
     const [queryForm, setQueryForm] = useState<{
         pageNum: number;
@@ -40,12 +40,11 @@ function AdAccount(props: Props) {
     // api方法
     const listAjax = useAjax((params) => getAdqAdAccountList(params), { formatResult: true })
     const syncAjax = useAjax((params) => putAdqAdAccountSyncByIds(params))
-    console.log('创意=====》')
     useEffect(() => {
-        getList()
-    }, [queryForm, userId])
+        getList(accountId)
+    }, [queryForm, userId,accountId])
     // 获取列表
-    const getList = useCallback(() => {
+    const getList = useCallback((accountId?:any) => {
         listAjax.run({ ...queryForm, userId })
     }, [queryForm, userId, listAjax])
     // 同步 

+ 1 - 1
src/pages/launchSystemNew/adq/campaign/index.tsx

@@ -65,8 +65,8 @@ function Campaign(props: Props) {
     }) => {
         if (!params.campaignName || params.campaignName !== listAjax?.params[0]?.adcreativeName) {
             !params.campaignName && delete params.campaignName
-            listAjax.run({ ...params, userId })
         }
+        listAjax.run({ ...params, userId })
     }, [userId, listAjax])
     // 同步 
     const sync = useCallback(() => {

+ 1 - 1
src/pages/launchSystemNew/adq/creative/index.tsx

@@ -55,8 +55,8 @@ function Creative(props: Props) {
     }) => {
         if (!params.adcreativeName || params.adcreativeName !== listAjax?.params[0]?.adcreativeName) {
             !params.adcreativeName && delete params.adcreativeName
-            listAjax.run({ ...params, userId })
         }
+        listAjax.run({ ...params, userId })
     }, [userId, listAjax])
     // 同步 
     const sync = useCallback(() => {

+ 1 - 1
src/pages/launchSystemNew/adq/landingPage/index.tsx

@@ -34,8 +34,8 @@ function LandingPage(props: { accountId: string, adAccountId: string, userId: st
     }) => {
         if (!params.pageName || params.pageName !== listAjax?.params[0]?.pageName) {
             !params.pageName && delete params.pageName
-            listAjax.run({ ...params, userId })
         }
+        listAjax.run({ ...params, userId })
     }, [listAjax, userId])
     // 同步 
     const sync = useCallback(() => {

+ 1 - 1
src/pages/launchSystemNew/adq/targeting/index.tsx

@@ -29,8 +29,8 @@ function Targeting(props: { adAccountId: any, userId: string, accountId: any, ta
         console.log(accountId)
         if (!params.targetingName || params.targetingName !== listAjax?.params[0]?.targetingName) {
             !params.targetingName && delete params.targetingName
-            listAjax.run({ ...params, userId })
         }
+        listAjax.run({ ...params, userId })
     }, [listAjax, userId])
     // 同步 
     const sync = useCallback(() => {