|
@@ -1,6 +1,6 @@
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
import { delBatchCreativeApi, getDynamicCreativeV3ListApi, syncBatchCreativeApi, updateBatchDynamicCreativesInfoApi } from "@/services/launchAdq/adqv3"
|
|
import { delBatchCreativeApi, getDynamicCreativeV3ListApi, syncBatchCreativeApi, updateBatchDynamicCreativesInfoApi } from "@/services/launchAdq/adqv3"
|
|
-import { Badge, Button, Col, Form, Input, Modal, Popconfirm, Row, Select, Space, Table, message } from "antd"
|
|
|
|
|
|
+import { Badge, Button, Col, DatePicker, Form, Input, Modal, Popconfirm, Row, Select, Space, Table, message } from "antd"
|
|
import React, { useEffect, useState } from "react"
|
|
import React, { useEffect, useState } from "react"
|
|
import { txDynamicConfig } from "../config"
|
|
import { txDynamicConfig } from "../config"
|
|
import tableConfig from "./tableConfig"
|
|
import tableConfig from "./tableConfig"
|
|
@@ -9,6 +9,7 @@ import ReviewDetails from "./reviewDetails"
|
|
import { DeleteOutlined, PauseCircleOutlined, PlayCircleOutlined } from "@ant-design/icons"
|
|
import { DeleteOutlined, PauseCircleOutlined, PlayCircleOutlined } from "@ant-design/icons"
|
|
import '../../tencentAdPutIn/index.less'
|
|
import '../../tencentAdPutIn/index.less'
|
|
import HandleLog from "./handleLog"
|
|
import HandleLog from "./handleLog"
|
|
|
|
+import moment from "moment"
|
|
|
|
|
|
/** 审核结果 */
|
|
/** 审核结果 */
|
|
export const AD_STATUS = {
|
|
export const AD_STATUS = {
|
|
@@ -49,7 +50,16 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
|
|
|
|
|
|
const onFinish = (values: any) => {
|
|
const onFinish = (values: any) => {
|
|
console.log(values)
|
|
console.log(values)
|
|
- setQueryForm({ ...queryForm, ...values })
|
|
|
|
|
|
+ const { date, ...value } = values
|
|
|
|
+ let newQueryForm = { ...queryForm, ...value }
|
|
|
|
+ if (date?.length) {
|
|
|
|
+ newQueryForm.beginDate = moment(date[0]).format('YYYY-MM-DD')
|
|
|
|
+ newQueryForm.endDate = moment(date[1]).format('YYYY-MM-DD')
|
|
|
|
+ } else {
|
|
|
|
+ delete newQueryForm?.beginDate
|
|
|
|
+ delete newQueryForm?.endDate
|
|
|
|
+ }
|
|
|
|
+ setQueryForm(newQueryForm)
|
|
}
|
|
}
|
|
|
|
|
|
const reviewStatusDetails = (value: any) => {
|
|
const reviewStatusDetails = (value: any) => {
|
|
@@ -130,12 +140,12 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
|
|
<Input placeholder="广告ID" style={{ width: 120 }} allowClear />
|
|
<Input placeholder="广告ID" style={{ width: 120 }} allowClear />
|
|
</Form.Item></Col>
|
|
</Form.Item></Col>
|
|
<Col><Form.Item name='creativeName' style={{ marginRight: 0 }}>
|
|
<Col><Form.Item name='creativeName' style={{ marginRight: 0 }}>
|
|
- <Input placeholder="创意名称" style={{ width: 150 }} allowClear />
|
|
|
|
|
|
+ <Input placeholder="创意名称" style={{ width: 120 }} allowClear />
|
|
</Form.Item></Col>
|
|
</Form.Item></Col>
|
|
<Col><Form.Item name='creativeId' style={{ marginRight: 0 }}>
|
|
<Col><Form.Item name='creativeId' style={{ marginRight: 0 }}>
|
|
<Input placeholder="创意ID" style={{ width: 120 }} allowClear />
|
|
<Input placeholder="创意ID" style={{ width: 120 }} allowClear />
|
|
</Form.Item></Col>
|
|
</Form.Item></Col>
|
|
- <Col><Form.Item name='configuredStatus'>
|
|
|
|
|
|
+ <Col><Form.Item name='configuredStatus' style={{ marginRight: 0 }}>
|
|
<Select
|
|
<Select
|
|
placeholder='启用禁用状态'
|
|
placeholder='启用禁用状态'
|
|
style={{ minWidth: 120 }}
|
|
style={{ minWidth: 120 }}
|
|
@@ -150,7 +160,28 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
|
|
<Select.Option value={'AD_STATUS_SUSPEND'}>暂停</Select.Option>
|
|
<Select.Option value={'AD_STATUS_SUSPEND'}>暂停</Select.Option>
|
|
</Select>
|
|
</Select>
|
|
</Form.Item></Col>
|
|
</Form.Item></Col>
|
|
- <Col><Form.Item name='isDeleted'>
|
|
|
|
|
|
+ <Col><Form.Item name='deliveryMode' style={{ marginRight: 0 }}>
|
|
|
|
+ <Select
|
|
|
|
+ placeholder='投放模式'
|
|
|
|
+ style={{ minWidth: 120 }}
|
|
|
|
+ showSearch
|
|
|
|
+ allowClear
|
|
|
|
+ maxTagCount={1}
|
|
|
|
+ filterOption={(input: any, option: any) =>
|
|
|
|
+ (option!.children as unknown as string).toLowerCase().includes(input.toLowerCase())
|
|
|
|
+ }
|
|
|
|
+ mode="multiple"
|
|
|
|
+ >
|
|
|
|
+ <Select.Option value={'DELIVERY_MODE_CUSTOMIZE'}>自定义创意</Select.Option>
|
|
|
|
+ <Select.Option value={'DELIVERY_MODE_COMPONENT'}>组件化创意</Select.Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </Form.Item></Col>
|
|
|
|
+ <Col>
|
|
|
|
+ <Form.Item name='date' style={{ marginRight: 0 }}>
|
|
|
|
+ <DatePicker.RangePicker style={{ width: 260 }} placeholder={['创建开始日期', '创建结束日期']} />
|
|
|
|
+ </Form.Item>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col><Form.Item name='isDeleted' style={{ marginRight: 0 }}>
|
|
<Select
|
|
<Select
|
|
placeholder='是否删除?'
|
|
placeholder='是否删除?'
|
|
style={{ minWidth: 100 }}
|
|
style={{ minWidth: 100 }}
|