wjx 2 年之前
父节点
当前提交
aad26f8130

+ 2 - 1
src/pages/adMonitor/adMonitorList/config.ts

@@ -195,7 +195,7 @@ const guanggao = [
     {
         label: '设置信息',
         data: [
-            { title: '数据日期', dataIndex: 'beginToEnd', label: '设置信息', default: 1, width: 85 },
+            { title: '数据日期', dataIndex: 'beginToEnd', label: '设置信息', default: 1, width: 95 },
             { title: '广告名称/ID', dataIndex: 'adgroupName', label: '设置信息', default: 2 },
             { title: '投放计划名称/ID', dataIndex: 'campaignName/campaignId', label: '设置信息', default: 3 },
             { title: '创意名称/ID', dataIndex: 'creativeName/creativeId', label: '设置信息', default: 4 },
@@ -212,6 +212,7 @@ const guanggao = [
             // { title: '当日成本偏差', dataIndex: 'dayCostOffset', label: '设置信息' },
             { title: '推广目标', dataIndex: 'promotedObjectType', label: '设置信息', default: 9 },
             // { title: '深度优化目标', dataIndex: 'depthOptimizeTarget', label: '设置信息' },
+            { title: '操作', dataIndex: 'event', label: '设置信息', default: 13, width: 60 },
         ]
     },
     {

+ 6 - 6
src/pages/adMonitor/adMonitorList/monitor.tsx

@@ -66,7 +66,7 @@ function Monitor(props: { onChange: () => void }) {
             getList()
         }
     }, [accountId, sysUserId, pageNum, pageSize, campaign, adgroup, sortField, sort, mode, hour])
-    
+
     // 获取起量明细表 点击
     useEffect(() => {
         if (!adgroup) {
@@ -251,13 +251,13 @@ function Monitor(props: { onChange: () => void }) {
                     <Select
                         showSearch
                         value={queryForm.sysUserId}
-                        style={{ minWidth: 180 }}
+                        style={{ minWidth: 180, maxWidth: 250 }}
                         mode='multiple'
                         maxTagCount={1}
                         disabled={queryForm?.accountId?.length > 0}
                         allowClear placeholder="请选择投手"
                         onChange={(value: number[]) => {
-                            setQueryForm({ ...queryForm, sysUserId: value, pageNum: 1 }) 
+                            setQueryForm({ ...queryForm, sysUserId: value, pageNum: 1 })
                         }}
                         filterOption={(input, option) =>
                             (option?.children as any).toLowerCase().indexOf(input.toLowerCase()) >= 0
@@ -277,7 +277,7 @@ function Monitor(props: { onChange: () => void }) {
                         mode='multiple'
                         maxTagCount={1}
                         value={queryForm.accountId}
-                        style={{ minWidth: 220 }}
+                        style={{ minWidth: 220, maxWidth: 250 }}
                         allowClear
                         placeholder="请选择广告账号"
                         onChange={(value: number[]) => {
@@ -314,8 +314,8 @@ function Monitor(props: { onChange: () => void }) {
                                 setClickAccountId([])
                             }
                         }}
-                        allowClear 
-                        />
+                        allowClear
+                    />
                 </Space>
                 <Space>
                     <Tag color="#2db7f5" onClick={refresh}><RedoOutlined />   刷新</Tag>

+ 2 - 1
src/pages/adMonitor/adMonitorList/planList.tsx

@@ -89,7 +89,7 @@ const PlanList: React.FC = () => {
             downloadFile1(res, 'octet-stream', formatDate(new Date()) + ".xlsx")
         }).catch(() => setDownLoadLoading(false))
     }, [queryForm, downLoadLoading])
-    
+
     return <Space direction='vertical' style={{ width: '100%' }} className="planlist">
         {/* 详情弹窗 */}
         {visible && <PlanDetail visible={visible} onClose={() => { setVisible(false) }} data={adId} dataStartTime={queryForm?.dataStartTime} dataEndTime={queryForm?.dataEndTime} />}
@@ -183,6 +183,7 @@ const PlanList: React.FC = () => {
             dataSource={getAllPlanList?.data?.data?.records}
             loading={getAllPlanList?.loading}
             scroll={{ y: 600 }}
+            fixed={{ left: 0, right: 1 }}
             total={getAllPlanList?.data?.data?.total}
             page={queryForm.pageNum}
             pageSize={queryForm.pageSize}

+ 7 - 4
src/pages/adMonitor/adMonitorList/tableMonitorConfig.tsx

@@ -1,6 +1,6 @@
 import useCopy from '@/Hook/useCopy'
 import { DownOutlined, RiseOutlined } from '@ant-design/icons'
-import { Dropdown, Menu, Progress, Statistic, Tooltip} from 'antd'
+import { Dropdown, Menu, Progress, Statistic, Tooltip } from 'antd'
 import { ColumnsType } from 'antd/lib/table'
 import React from 'react'
 import { ReactComponent as RocketSvg } from '@/assets/rocket.svg'
@@ -86,7 +86,7 @@ function columnsMonitor(planDetail: (id: number) => void, getDetailList: (adId:
                 width: 110,
                 align: 'center',
                 render: (a: any, b: any) => {
-                    return <Box b={b}/>
+                    return <Box b={b} />
                 }
             },
             // {
@@ -674,16 +674,19 @@ function columnsMonitor(planDetail: (id: number) => void, getDetailList: (adId:
                             </Menu.Item> : <Menu.Item key="1">
                                 <a style={{ color: '#1890ff' }} onClick={() => { getMinuList(b?.adgroupId, [b.accountId]) }}>5min</a>
                             </Menu.Item>}
-                            
+
                             <Menu.Item key="2">
                                 <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }} onClick={() => details(b)}>
                                     <RocketSvg /><a style={{ marginLeft: 4, color: '#1890ff' }}>详情</a>
                                 </div>
                             </Menu.Item>
+                            <Menu.Item key="3">
+                                <a style={{ color: '#1890ff' }} onClick={() => window.open(`https://ad.qq.com/atlas/${b?.accountId}/admanage/adcreative?adgroupid=${b?.adgroupId}&query={%22configured_status%22:[%22AD_STATUS_EXCLUDE_DELETED%22],%22status%22:[]}`)} target="_blank">腾讯广告</a>
+                            </Menu.Item>
                         </Menu>
                     } trigger={['click']}>
                         <a className="ant-dropdown-link" onClick={e => e.preventDefault()}>
-                        更多 <DownOutlined />
+                            更多 <DownOutlined />
                         </a>
                     </Dropdown>
                 )

+ 10 - 0
src/pages/adMonitor/adMonitorList/tablePlanListConfig.tsx

@@ -497,6 +497,16 @@ function columnsMonitor(details: (id: number) => void) {
                 render: (a: any) => {
                     return <Statistic value={a ? a?.toFixed(2) : 0} />
                 }
+            },
+            {
+                title: '操作',
+                dataIndex: 'event',
+                key: 'event',
+                align: 'center',
+                width: 90,
+                render: (a: any, b: any) => {
+                    return <a style={{ color: '#1890ff' }} onClick={() => window.open(`https://ad.qq.com/atlas/${b?.accountId}/admanage/adcreative?adgroupid=${b?.adgroupId}&query={%22configured_status%22:[%22AD_STATUS_EXCLUDE_DELETED%22],%22status%22:[]}`)} target="_blank">腾讯广告</a>
+                }
             }
         ]
         return newArr