shenwu 2 vuotta sitten
vanhempi
commit
ca0d913c66

+ 4 - 4
src/pages/launchSystemNew/adq/ad/index.tsx

@@ -101,10 +101,10 @@ const Ad: React.FC<Props> = (props) => {
     }, [userId, listAjax])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item => item.accountId))]
         syncAjax.run({ accountIdList: arr }).then(res => {
             res && listAjax.refresh()

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

@@ -62,10 +62,10 @@ function Campaign(props: Props) {
     }, [userId, listAjax,])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item=>item.accountId))]
         syncAjax.run({ accountIdList:arr }).then(res => {
             res && listAjax.refresh()

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

@@ -59,10 +59,10 @@ function Creative(props: Props) {
     }, [userId, listAjax])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item=>item.accountId))]
         syncAjax.run({ accountIdList:arr }).then(res => {
             res && listAjax.refresh()

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

@@ -40,10 +40,10 @@ function LandingPage(props: { accountId: string, adAccountId: string, userId: st
     }, [listAjax, userId])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item=>item.accountId))]
         syncAjax.run({ accountIdList:arr }).then(res => {
             res && listAjax.refresh()

+ 4 - 4
src/pages/launchSystemNew/adq/promoted/index.tsx

@@ -46,10 +46,10 @@ const Promoted: React.FC<Props> = (props) => {
     }, [userId])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item => item.accountId))]
         syncAjax.run({ accountIdList: arr }).then(res => {
             res && getLogList.refresh()

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

@@ -31,10 +31,10 @@ function Targeting(props: { adAccountId: any, userId: string, accountId: any, ta
     }, [listAjax, userId])
     // 同步 
     const sync = useCallback(() => {
-        if (selectedRows?.length === 0) {
-            message.error('请先勾选要同步的广点通账号!')
-            return
-        }
+        // if (selectedRows?.length === 0) {
+        //     message.error('请先勾选要同步的广点通账号!')
+        //     return
+        // }
         let arr = [...new Set(selectedRows?.map(item=>item.accountId))]
         syncAjax.run({ accountIdList:arr }).then(res => {
             res && listAjax.refresh()