shenwu 3 päivää sitten
vanhempi
commit
63e2a2eeea

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

@@ -113,90 +113,6 @@ const TencentNovelAd: React.FC<{ configName?: string, dayConfigName?: string }>
 
     return <div>
         <TablePro
-            czChild={<Space>
-                <Switch checkedChildren="开启全选" unCheckedChildren="关闭全选" checked={!isZj} onChange={(e) => { setIsZj(!e); }} />
-                <Select
-                    style={{ width: 120 }}
-                    onChange={(e) => {
-                        setHandleType(e)
-                        setSelectedRows([])
-                    }}
-                    value={handleType}
-                    dropdownMatchSelectWidth={false}
-                    options={[{ label: '广告操作', value: 1 }, { label: '修改首日付费 ROI', value: 3 }, { label: '修改首日变现 ROI', value: 4 }]}
-                />
-                <Button type='primary' style={{ background: '#67c23a', borderColor: '#67c23a' }} loading={modifyStatusBatch.loading} icon={<PlayCircleOutlined />} disabled={selectedRows.length === 0} onClick={() => adStatus(true)}>启动</Button>
-                <Button type='primary' style={{ background: '#e6a23c', borderColor: '#e6a23c' }} loading={modifyStatusBatch.loading} icon={<PauseCircleOutlined />} disabled={selectedRows.length === 0} onClick={() => adStatus(false)}>暂停</Button>
-                <Button type='primary' loading={syncBatch.loading} disabled={selectedRows.length === 0} onClick={sync}>同步</Button>
-                {handleType === 1 ? <>
-                    <Button type='primary' danger icon={<DeleteOutlined />} disabled={selectedRows.length === 0} onClick={() => {
-                        setUpdateDate({ visible: true, type: '删除' })
-                    }}>删除</Button>
-                    <Dropdown
-                        menu={{
-                            items: [
-                                {
-                                    label: <span style={{ display: 'inline-block', width: 120 }}>修改出价</span>,
-                                    key: '1',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setUpdateDate({ visible: true, type: '修改出价' }) }
-                                },
-                                {
-                                    label: '修改名称',
-                                    key: '2',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setUpdateDate({ visible: true, type: '修改名称' }) }
-                                },
-                                {
-                                    label: '修改日限额',
-                                    key: '3',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setUpdateDate({ visible: true, type: '修改日限额' }) }
-                                },
-                                {
-                                    label: '修改投放日期',
-                                    key: '4',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setUpdateDate({ visible: true, type: '修改投放时间' }) }
-                                },
-                                {
-                                    label: '修改投放首日开始时间',
-                                    key: '5',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setUpdateDate({ visible: true, type: '修改投放首日开始时间' }) }
-                                },
-                                {
-                                    label: '一键起量',
-                                    key: '6',
-                                    disabled: selectedRows.length === 0,
-                                    onClick: () => { setAutoAcqVisible(true) }
-                                }
-                            ]
-                        }}
-                        placement="bottomLeft"
-                        arrow
-                    >
-                        <Button>
-                            <Space>
-                                修改广告
-                                <DownOutlined />
-                            </Space>
-                        </Button>
-                    </Dropdown>
-                    <AutoAcquisitionSetTask
-                        selectAdList={selectedRows}
-                    />
-                </> : handleType === 3 ? <>
-                    <Button type='primary' disabled={selectedRows.length === 0} onClick={() => {
-                        setUpdateDate({ visible: true, type: '深度优化ROI' })
-                    }}>修改首日付费 ROI</Button>
-                </> : handleType === 4 ? <>
-                    <Button type='primary' disabled={selectedRows.length === 0} onClick={() => {
-                        setUpdateDate({ visible: true, type: '深度优化ROI' })
-                    }}>修改首日变现 ROI</Button>
-                </> : null}
-                <span style={{ color: 'red' }}>操作完数据结果延时5分钟之内,即时结果去腾讯后台查看</span>
-            </Space>}
             leftChild={<QueryFormNovel
                 initialValues={{ day3: [moment(), moment()] }}
                 isAccountId

+ 30 - 14
src/pages/iaaData/novel/tencent/adListTotal/tableConfig.tsx

@@ -486,6 +486,22 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                     title: '广告变现成本', dataIndex: 'adMonetizationCost', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
                     render: (a: string) => <Statistic value={a || 0} precision={2} />
                 },
+                {
+                    title: '激活首24小时广告变现成本', dataIndex: 'adPayingUsers24hCost', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
+                    render: (a: string) => <Statistic value={a || 0} precision={2} />
+                },
+                {
+                    title: '激活首日广告变现成本', dataIndex: 'adPayingUsersD1Cost', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
+                    render: (a: string) => <Statistic value={a || 0} precision={2} />
+                },
+                {
+                    title: '激活3日广告变现成本', dataIndex: 'adMonetizationDedupActive3dPvCost', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
+                    render: (a: string) => <Statistic value={a || 0} precision={2} />
+                },
+                {
+                    title: '激活7日广告变现成本', dataIndex: 'adMonetizationDedupActive7dPvCost', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
+                    render: (a: string) => <Statistic value={a || 0} precision={2} />
+                },
                 {
                     title: '激活3日广告变现次数', dataIndex: 'adMonetizationActive3dPv', label: '其他业务(其他指标)', width: 80, align: 'center', sorter: true, className: 'volcanoColorClass',
                     render: (a: string) => <Statistic value={a || 0} />
@@ -854,20 +870,20 @@ function columns12(dayHandle: (data: any) => void, onChange?: () => void): { lab
                         </Space>
                     }
                 },
-                {
-                    title: '启停',
-                    dataIndex: 'configuredStatus',
-                    label: '操作',
-                    align: 'center',
-                    width: 45,
-                    default: 1,
-                    render: (a: string, b: any) => {
-                        if (b?.accountId === '总计') {
-                            return '--'
-                        }
-                        return <SwitchStatus configuredStatus={a} isDeleted={b?.isDeleted} adgroupId={b?.adgroupId} accountId={b?.accountId} onChange={onChange} />
-                    }
-                }
+                // {
+                //     title: '启停',
+                //     dataIndex: 'configuredStatus',
+                //     label: '操作',
+                //     align: 'center',
+                //     width: 45,
+                //     default: 1,
+                //     render: (a: string, b: any) => {
+                //         if (b?.accountId === '总计') {
+                //             return '--'
+                //         }
+                //         return <SwitchStatus configuredStatus={a} isDeleted={b?.isDeleted} adgroupId={b?.adgroupId} accountId={b?.accountId} onChange={onChange} />
+                //     }
+                // }
             ]
         }
     ]