wjx 1 éve
szülő
commit
09f335c16e

+ 1 - 1
src/pages/launchSystemV3/adMonitorListV3/adPlanList.tsx

@@ -213,7 +213,7 @@ const AdPlanList: React.FC<{ userId: string }> = (props) => {
             return
         }
         let accountAdgroupMaps = [...new Set(newSelectedRows?.map(item => item.accountId + ',' + item.adgroupId))]
-        modifyStatusBatch.run({ accountAdgroupMaps, suspend: type }).then(res => {
+        modifyStatusBatch.run({ accountAdgroupMaps, suspend: !type }).then(res => {
             message.success(`${type ? '启动' : '暂停'}成功`)
             getAdList.refresh()
             setSelectedRows([])

+ 1 - 1
src/pages/launchSystemV3/adMonitorListV3/config.ts

@@ -94,7 +94,7 @@ const qiliangpaihanghour = [
             { title: '投手', dataIndex: 'put_user_name', serverIndex: 'sys_user.put_user_name', label: '设置信息', default: 11, width: 65 },
             { title: '投放时间', dataIndex: 'begin_date', serverIndex: 'adgroup.begin_date, adgroup.end_date', label: '设置信息', default: 12, width: 135 },
             { title: '广告状态', dataIndex: 'system_status', serverIndex: 'adgroup.system_status', label: '设置信息', width: 85 },
-            { title: '操作', dataIndex: 'event', label: '设置信息', default: 13, width: 210 },
+            { title: '操作', dataIndex: 'event', label: '设置信息', default: 13, width: 235 },
         ]
     },
     {

+ 1 - 1
src/pages/launchSystemV3/adMonitorListV3/tableMonitorConfig.tsx

@@ -613,7 +613,7 @@ function columnsMonitor(planDetail: (id: number) => void, details: (id: number)
                     </div>
                     <a onClick={() => log(b)}>告警日志</a>
                     <a style={{ color: '#1890ff', fontSize: 12 }} onClick={() => window.open(`https://ad.qq.com/atlas/${b?.account_id}/admanage/index?tab=adgroup&query={%22operation_status%22:[%22CALCULATE_STATUS_EXCLUDE_DEL%22],%22system_status%22:[],%22search_name%22:%22${b.adgroup_id}%22}`)} target="_blank">腾讯广告</a>
-                    <a onClick={() => sync(b)}>同步</a>
+                    <a onClick={() => sync(b)}>同步状态</a>
                 </Space>
                 )
             }

+ 1 - 1
src/pages/launchSystemV3/adqv3/ad/index.tsx

@@ -59,7 +59,7 @@ const Ad: React.FC<ADQV3.AdProps> = ({ userId, creativeHandle }) => {
             return
         }
         let accountAdgroupMaps = [...new Set(newSelectedRows?.map(item => item.accountId + ',' + item.adgroupId))]
-        modifyStatusBatch.run({ accountAdgroupMaps, suspend: type }).then(res => {
+        modifyStatusBatch.run({ accountAdgroupMaps, suspend: !type }).then(res => {
             message.success(`${type ? '启动' : '暂停'}成功`)
             getAdqV3AdList.refresh()
             setSelectedRows([])

+ 2 - 3
src/pages/launchSystemV3/adqv3/ad/switchStatus.tsx

@@ -1,7 +1,6 @@
 import { useAjax } from "@/Hook/useAjax"
-import { newEditAdqAdgroupsDataApi } from "@/services/launchAdq/adq"
 import { modifyStatusBatchApi } from "@/services/launchAdq/adqv3"
-import { message, notification, Switch } from "antd"
+import { message, Switch } from "antd"
 import React from "react"
 
 
@@ -22,7 +21,7 @@ const SwitchStatus: React.FC<Props> = (prosp) => {
     const modifyStatusBatch = useAjax((params) => modifyStatusBatchApi(params))
 
     const switchHandle = (accountAdgroupMaps: string[], suspend: boolean) => {
-        modifyStatusBatch.run({ accountAdgroupMaps, suspend }).then(res => {
+        modifyStatusBatch.run({ accountAdgroupMaps, suspend: !suspend }).then(res => {
             message.success(`${suspend ? '启动' : '暂停'}成功`)
             onChange?.()
         })

+ 6 - 2
src/pages/launchSystemV3/adqv3/creative/boxOther.tsx

@@ -5,7 +5,8 @@ interface Props {
     creativeComponents: {
         brand?: {
             value: {
-                brandName: string
+                brandName: string,
+                brandImageUrl: string
             }
         }[],
         description?: {
@@ -84,7 +85,10 @@ const BoxOther: React.FC<Props> = ({ creativeComponents }) => {
                 {imageUrl?.[0]?.value?.imageUrl ? <img src={imageUrl?.[0]?.value?.imageUrl} height={18} /> : <span>无图片地址</span>}
             </Popover>
         } else if (titles && titles?.length > 0) {
-            return <span>{titles?.[0]?.value?.brandName}</span>
+            return <Space>
+                <img src={titles?.[0]?.value?.brandImageUrl} height={18} />
+                <span>{titles?.[0]?.value?.brandName}</span>
+            </Space>
         } else if (descriptions && descriptions?.length > 0) {
             return <span>{descriptions?.[0]?.value?.content}</span>
         } else {