wjx 10 hónapja
szülő
commit
73d626dfc5

+ 2 - 1
src/pages/launchSystemV3/adqv3/config.ts

@@ -48,7 +48,8 @@ const txDynamicConfig = [
             { title: '创意ID', dataIndex: 'dynamicCreativeId', label: '广告详情', default: 12, width: 80 },
             { title: '投放模式', dataIndex: 'deliveryMode', label: '广告详情', default: 13, width: 90 },
             { title: '创意形式匹配方式', dataIndex: 'dynamicCreativeType', label: '广告详情', default: 14, width: 85 },
-            { title: '创意形式', dataIndex: 'creativeTemplateId', label: '广告详情', default: 15, width: 100 }
+            { title: '创意形式', dataIndex: 'creativeTemplateId', label: '广告详情', default: 15, width: 100 },
+            { title: '审核状态', dataIndex: 'reviewStatusCn', label: '广告详情', default: 16, width: 100 },
         ]
     }
 ]

+ 7 - 1
src/pages/launchSystemV3/adqv3/creative/index.tsx

@@ -5,6 +5,7 @@ import React, { useEffect } from "react"
 import { txDynamicConfig } from "../config"
 import tableConfig from "./tableConfig"
 import TableData from "@/pages/launchSystemNew/components/TableData"
+import { getCreativeReviewDetailApi } from "@/services/adqV3/global"
 
 
 const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, userId }) => {
@@ -12,6 +13,7 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
     /*********************************/
     const [form] = Form.useForm();
     const getDynamicCreativeV3List = useAjax((params) => getDynamicCreativeV3ListApi(params), { formatResult: true })
+    const getCreativeReviewDetail = useAjax((params) => getCreativeReviewDetailApi(params))
     /*********************************/
 
     useEffect(() => {
@@ -27,9 +29,13 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
         setQueryForm({ ...queryForm, ...values })
     }
 
+    const reviewStatusDetails = (value: any) => {
+        
+    }
+
     return <TableData
         isCard={false}
-        columns={() => tableConfig()}
+        columns={() => tableConfig(reviewStatusDetails)}
         ajax={getDynamicCreativeV3List}
         fixed={{ left: 2, right: 4 }}
         dataSource={getDynamicCreativeV3List?.data?.data?.records}

+ 29 - 0
src/pages/launchSystemV3/adqv3/creative/reviewDetails.tsx

@@ -0,0 +1,29 @@
+import { Drawer } from "antd"
+import React from "react"
+
+interface Props {
+    visible?: boolean,
+    onClose?: () => void
+}
+/**
+ * 审核详情
+ * @returns 
+ */
+const ReviewDetails: React.FC<Props> = ({ visible, onClose }) => {
+
+    /****************************/
+
+    /****************************/
+
+    return <Drawer
+        title={<strong>添加创意</strong>}
+        visible={visible}
+        width={1500}
+        onClose={onClose}
+        bodyStyle={{ backgroundColor: '#f1f4fc', padding: '0 10px 10px' }}
+    >
+
+    </Drawer>
+}
+
+export default React.memo(ReviewDetails)

+ 14 - 1
src/pages/launchSystemV3/adqv3/creative/tableConfig.tsx

@@ -5,7 +5,7 @@ import { copy } from '@/utils/utils'
 import { DELIVERY_MODE, DYNAMIC_CREATIVE_TYPE } from '../const'
 import { creativeTemplate } from '../../tencentAdPutIn/const'
 
-function tableConfig(): any {
+function tableConfig(reviewStatusDetails: (value: any) => void): any {
     return [
         {
             title: '启停',
@@ -206,6 +206,19 @@ function tableConfig(): any {
             render: (a: string) => {
                 return creativeTemplate[a]
             }
+        },
+        {
+            title: '审核状态',
+            dataIndex: 'reviewStatusCn',
+            key: 'reviewStatusCn',
+            align: 'center',
+            width: 100,
+            render: (a: string, b: any) => {
+                return <Space direction="vertical" size={0}>
+                    <span style={{ fontSize: 12 }}>{a}</span>
+                    {/* <a style={{ fontSize: 12 }} onClick={() => { reviewStatusDetails(b) }}>详情</a> */}
+                </Space>
+            }
         }
     ]
 }

+ 1 - 1
src/pages/launchSystemV3/tencentAdPutIn/create/index.tsx

@@ -148,7 +148,7 @@ const Create: React.FC = () => {
                                 let videoData: any = {}
                                 videoData[field] = { materialType: value.materialType, url: value.videoUrl, id: value.videoId }
                                 if (value.imageUrl) {
-                                    videoData['cover_id'] = { materialCoverType: value.materialType, url: value.imageUrl, id: value.iamgeId }
+                                    videoData['cover_id'] = { materialType: value.materialCoverType, url: value.imageUrl, id: value.iamgeId }
                                 }
                                 return videoData
                             } else {

+ 12 - 0
src/services/adqV3/global.ts

@@ -299,4 +299,16 @@ export async function delProfilesApi(params: { id: number }) {
         method: 'DELETE',
         params
     })
+}
+
+/**
+ * 获取创意审核详情
+ * @param data 
+ * @returns 
+ */
+export async function getCreativeReviewDetailApi(data: { accountId: number, dynamicCreativeIds: number[] }) {
+    return request(api + `/adq/adgroup/creativeReviewDetail`, {
+        method: 'POST',
+        data
+    })
 }