Browse Source

Merge branch 'develop' of http://git.zanxiangnet.com/wjx/ad-manage into wangjianxin

wjx 2 năm trước cách đây
mục cha
commit
9aef1b2d4b

+ 1 - 0
src/components/FileBoxAD/index.tsx

@@ -83,6 +83,7 @@ function FlieBox(props: Props) {
                 </> : <>
                     <li onClick={() => { editFile() }}>编辑</li>
                 </>}
+                {mediaType !== 'PAGE' && !rightClickPup.folder &&  <li onClick={()=>{copy(rightClickPup?.url)}}>复制链接</li>}
                 <li onClick={() => { set({ actionItem: rightClickPup, sortVisible: true }) }}>编辑排序</li>
                 <li onClick={() => { set({ fileVisible: true }) }}>新建文件夹</li>
                 <li onClick={() => { set({ imgVisrible: true }) }}>新建素材</li>

+ 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()