wjx 1 miesiąc temu
rodzic
commit
6e97a240ec

+ 12 - 2
src/pages/iaaData/components/UpdateAd3/index.tsx

@@ -13,7 +13,7 @@ import New1Radio from "@/components/New1Radio"
 import { delBatchApi, modifyAdTimeBatchApi, modifyAmountBatchApi, modifyDailyBudgetBatchApi, updateBatchAdgroupInfoApi } from "@/services/gameData"
 
 interface Props {
-    type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间'
+    type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' | '关闭智能定向'
     updateData: any[],
     visible?: boolean,
     onClose?: () => void
@@ -70,6 +70,7 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
             case '修改名称':
             case '深度优化ROI':
             case '修改投放首日开始时间':
+            case '关闭智能定向':
                 let params2: any = {}
                 if (type === '深度优化ROI') {
                     params2 = JSON.parse(JSON.stringify(values))
@@ -319,7 +320,16 @@ const UpdateAd3: React.FC<Props> = ({ visible, type, onClose, onChange, updateDa
                             placeholder='请选择首日开始时间'
                             options={SelectTimeList}
                         />
-                    </Form.Item> : null}
+                    </Form.Item> : type === '关闭智能定向' ? <Form.Item
+                        label={<strong>智能定向</strong>}
+                        name='smartTargetingMode'
+                        rules={[{ required: true, message: '请选择智能定向!' }]}
+                    >
+                        <Radio.Group defaultValue="a" buttonStyle="solid">
+                            <Radio.Button value="SMART_TARGETING_OPEN" disabled>开启</Radio.Button>
+                            <Radio.Button value="SMART_TARGETING_MANUAL">关闭</Radio.Button>
+                        </Radio.Group>
+                    </Form.Item>  : null}
                 </Card>
                 <Form.Item className="submit_pull">
                     <Space>

+ 7 - 1
src/pages/iaaData/game/tencent/adList/index.tsx

@@ -33,7 +33,7 @@ const TencentIaaAd: React.FC = () => {
     const [visible, setVisible] = useState<boolean>(false)
     const [promotionId, setPromotionId] = useState<number>()
     const [adName, setAdName] = useState<string>('')
-    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' }>({ visible: false, type: '修改出价' })
+    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' | '关闭智能定向' }>({ visible: false, type: '修改出价' })
     const [autoAcqVisible, setAutoAcqVisible] = useState<boolean>(false)
 
     const modifyStatusBatch = useAjax((params) => modifyStatusBatchApi(params))
@@ -154,6 +154,12 @@ const TencentIaaAd: React.FC = () => {
                                 key: '6',
                                 disabled: selectedRows.length === 0,
                                 onClick: () => { setAutoAcqVisible(true) }
+                            },
+                            {
+                                label: '关闭智能定向',
+                                key: '7',
+                                disabled: selectedRows.length === 0,
+                                onClick: () => { setUpdateDate({ visible: true, type: '关闭智能定向' }) }
                             }
                         ]
                     }}

+ 5 - 1
src/pages/iaaData/game/tencent/adList/tableConfig.tsx

@@ -1,5 +1,5 @@
 import WidthEllipsis from "@/components/widthEllipsis"
-import { Badge, Progress, Space, Statistic } from "antd"
+import { Badge, Progress, Space, Statistic, Tag } from "antd"
 import React from "react"
 import { AD_STATUS_ENUM, BID_MODE_ENUM, PRODUCT_TYPE_ENUM } from "../../../const"
 import SwitchStatus from "./switchStatus"
@@ -44,6 +44,10 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     title: '广告状态', dataIndex: 'status', label: '腾讯广告列表', align: 'center', width: 75, default: 9,
                     render: (a: string) => (<WidthEllipsis value={AD_STATUS_ENUM[a as keyof typeof AD_STATUS_ENUM]} />)
                 },
+                {
+                    title: '定向智能状态', dataIndex: 'smartTargetingStatus', label: '腾讯广告列表', align: 'center', width: 75,
+                    render: (a: string) => (a === 'SMART_TARGETING_NONE' ? <Tag color="success">关闭</Tag> : a === 'SMART_TARGETING_AUTO' ? <Tag color='error'>开启</Tag> : '--')
+                },
                 {
                     title: '服务商', dataIndex: 'service', label: '腾讯广告列表', align: 'center', width: 75, default: 10,
                     render: (a: string) => (<WidthEllipsis value={a} />)

+ 7 - 1
src/pages/iaaData/novel/tencent/adList/index.tsx

@@ -33,7 +33,7 @@ const TencentNovelAd: React.FC<{ configName?: string, dayConfigName?: string }>
     const [visible, setVisible] = useState<boolean>(false)
     const [promotionId, setPromotionId] = useState<number>()
     const [adName, setAdName] = useState<string>('')
-    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' }>({ visible: false, type: '修改出价' })
+    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' | '关闭智能定向' }>({ visible: false, type: '修改出价' })
     const [autoAcqVisible, setAutoAcqVisible] = useState<boolean>(false)
     const [handleType, setHandleType] = useState<number>(1)
     const [isZj, setIsZj] = useState<boolean>(true)
@@ -170,6 +170,12 @@ const TencentNovelAd: React.FC<{ configName?: string, dayConfigName?: string }>
                                     key: '6',
                                     disabled: selectedRows.length === 0,
                                     onClick: () => { setAutoAcqVisible(true) }
+                                },
+                                {
+                                    label: '关闭智能定向',
+                                    key: '7',
+                                    disabled: selectedRows.length === 0,
+                                    onClick: () => { setUpdateDate({ visible: true, type: '关闭智能定向' }) }
                                 }
                             ]
                         }}

+ 12 - 8
src/pages/iaaData/novel/tencent/adList/tableConfig.tsx

@@ -139,6 +139,10 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                         return ADGROUP_STATUS[a as keyof typeof ADGROUP_STATUS]
                     }
                 },
+                {
+                    title: '定向智能状态', dataIndex: 'smartTargetingStatus', label: '广告基本信息', align: 'center', width: 75,
+                    render: (a: string) => (a === 'SMART_TARGETING_NONE' ? <Tag color="success">关闭</Tag> : a === 'SMART_TARGETING_AUTO' ? <Tag color='error'>开启</Tag> : '--')
+                },
                 {
                     title: '营销目的', dataIndex: 'marketingGoal', label: '广告基本信息', align: 'center', width: 85, default: 21,
                     render: (a: string) => (<WidthEllipsis value={MARKETING_GOAL_ENUM[a as keyof typeof MARKETING_GOAL_ENUM]} />)
@@ -665,7 +669,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '回流次日留存人数', dataIndex: 'retentionPlaDedupPv', label: 'App相关字段', width: 80, align: 'center', sorter: true, 
+                    title: '回流次日留存人数', dataIndex: 'retentionPlaDedupPv', label: 'App相关字段', width: 80, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -673,7 +677,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '回流人数(平台上报)', dataIndex: 'miniGameBfUv', label: 'App相关字段', width: 80, align: 'center', sorter: true, 
+                    title: '回流人数(平台上报)', dataIndex: 'miniGameBfUv', label: 'App相关字段', width: 80, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -681,7 +685,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: string) => <Statistic value={a || 0} precision={2} />
                 },
                 {
-                    title: '广告变现人数(平台上报)', dataIndex: 'adMonetizationPlaDedupPv', label: 'App相关字段', width: 90, align: 'center', sorter: true, 
+                    title: '广告变现人数(平台上报)', dataIndex: 'adMonetizationPlaDedupPv', label: 'App相关字段', width: 90, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -693,7 +697,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: string) => <Statistic value={a || 0} precision={2} />
                 },
                 {
-                    title: '回流广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupPv', label: 'App相关字段', width: 90, align: 'center', sorter: true, 
+                    title: '回流广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupPv', label: 'App相关字段', width: 90, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -701,7 +705,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '回流广告变现ARPU(平台上报)', dataIndex: 'miniGameBfIncomePlaArpu', label: 'App相关字段', width: 100, align: 'center', sorter: true, 
+                    title: '回流广告变现ARPU(平台上报)', dataIndex: 'miniGameBfIncomePlaArpu', label: 'App相关字段', width: 100, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -709,7 +713,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: string) => <Statistic value={a || 0} precision={2} />
                 },
                 {
-                    title: '回流首日广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive1dPv', label: 'App相关字段', width: 100, align: 'center', sorter: true, 
+                    title: '回流首日广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive1dPv', label: 'App相关字段', width: 100, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -717,7 +721,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: string) => <Statistic value={a || 0} precision={2} />
                 },
                 {
-                    title: '回流首24小时广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive24hPv', label: 'App相关字段', width: 110, align: 'center', sorter: true, 
+                    title: '回流首24小时广告变现人数(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive24hPv', label: 'App相关字段', width: 110, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -725,7 +729,7 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '回流首24小时广告变现ARPU(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive24hArpu', label: 'App相关字段', width: 120, align: 'center', sorter: true, 
+                    title: '回流首24小时广告变现ARPU(平台上报)', dataIndex: 'adMonetizationBkPlaDedupActive24hArpu', label: 'App相关字段', width: 120, align: 'center', sorter: true,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {

+ 1 - 1
src/pages/iaaData/novel/tencent/adListTotal/index.tsx

@@ -33,7 +33,7 @@ const TencentNovelAd: React.FC<{ configName?: string, dayConfigName?: string }>
     const [visible, setVisible] = useState<boolean>(false)
     const [promotionId, setPromotionId] = useState<number>()
     const [adName, setAdName] = useState<string>('')
-    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' }>({ visible: false, type: '修改出价' })
+    const [updateData, setUpdateDate] = useState<{ visible: boolean, type: '修改出价' | '修改名称' | '修改日限额' | '修改投放时间' | '删除' | '深度优化ROI' | '修改投放首日开始时间' | '关闭智能定向' }>({ visible: false, type: '修改出价' })
     const [autoAcqVisible, setAutoAcqVisible] = useState<boolean>(false)
     const [handleType, setHandleType] = useState<number>(1)
     const [isZj, setIsZj] = useState<boolean>(true)

+ 3 - 3
src/pages/iaaData/novel/tencent/appPayTrend/index.tsx

@@ -1,4 +1,4 @@
-import { GetAppTrendListProps,  getNovelAppPayTrendApi, getNovelAppPayTrendTotalApi } from "@/services/iaaData";
+import { GetAppTrendListProps, getNovelAppPayTrendApi, getNovelAppPayTrendTotalApi } from "@/services/iaaData";
 import React, { useEffect, useState } from "react"
 import { useModel } from "umi";
 import moment from "moment";
@@ -88,8 +88,8 @@ const AppPayTrend: React.FC = () => {
             config={columns12()}
             configName={'应用付费趋势'}
             fixed={{ left: 4, right: 0 }}
-            scroll={{ x: 1000, y:620 }}
-            title={<>应用变现趋势(数据于2025-06-06开始统计)(T+1)<Popover   title={<b>指标计算说明</b>} content={tipText}  color={'white'} trigger={["hover"]}><QuestionCircleOutlined style={{ color: "red", cursor: 'pointer' }} /></Popover></>}
+            scroll={{ x: 1000, y: 620 }}
+            title={<>应用变现趋势(数据于2025-06-06开始统计)(T+1)<Popover title={<b>指标计算说明</b>} content={tipText} color={'white'} trigger={["hover"]}><QuestionCircleOutlined style={{ color: "red", cursor: 'pointer' }} /></Popover></>}
             loading={getNovelAppPayTrend.loading}
             ajax={getNovelAppPayTrend}
             page={getNovelAppPayTrend?.data?.data?.current || 1}