wjx 2 years ago
parent
commit
993485a56e

+ 1 - 1
src/pages/launchSystemNew/components/targetingPopover/index.tsx

@@ -60,7 +60,7 @@ const TargetingPopover: React.FC<Props> = (props) => {
                 </>}
             </div>
         </Spin>}
-        title="定向"
+        // title="定向"
         trigger="click"
         placement="left"
         visible={visible}

+ 11 - 2
src/pages/launchSystemNew/launchManage/createAd/submitModal.tsx

@@ -1,4 +1,5 @@
-import { Form, Input, message, Modal, Space } from "antd"
+import { AdStatus } from "@/services/launchAdq/enum"
+import { Form, Input, message, Modal, Select, Space } from "antd"
 import React, { useState } from "react"
 
 
@@ -7,7 +8,7 @@ import React, { useState } from "react"
  * 设置名称
  * @returns 
  */
- interface Props {
+interface Props {
     visible?: boolean,
     onClose?: () => void,
     onChange?: (data: any) => void
@@ -34,6 +35,7 @@ const SubmitModal: React.FC<Props> = (props) => {
             labelCol={{ span: 4 }}
             wrapperCol={{ span: 20 }}
             autoComplete="off"
+            initialValues={{ configuredStatus: 'AD_STATUS_SUSPEND' }}
         >
             <Form.Item label="广告名称" name="adName">
                 <Input placeholder="请输入广告名称" />
@@ -41,6 +43,13 @@ const SubmitModal: React.FC<Props> = (props) => {
             <Form.Item label="计划名称" name="campaignName">
                 <Input placeholder="请输入计划名称" />
             </Form.Item>
+            <Form.Item label="广告状态" name="configuredStatus" rules={[{ required: true, message: '请选择广告状态' }]}>
+                <Select placeholder="选择广告状态">
+                    {Object.keys(AdStatus).map(key => {
+                        return <Select.Option value={key} key={key}>{AdStatus[key]}</Select.Option>
+                    })}
+                </Select>
+            </Form.Item>
         </Form>
     </Modal>
 }

+ 12 - 2
src/pages/launchSystemNew/launchManage/taskList/logTableConfig.tsx

@@ -1,6 +1,16 @@
-import { Badge } from "antd"
+import { Badge, message } from "antd"
 import React from "react"
 function tableConfig(): any {
+    const copy = (str: string) => {
+        let element = document.createElement("textarea");
+        element.id = 'myTextarea'
+        element.textContent = str
+        document.body.append(element);
+        (document.getElementById('myTextarea') as any).select();
+        document.execCommand("Copy")
+        document.body.removeChild(element);
+        message.success(`复制成功:${str}`)
+    }
     return [
         {
             title: 'ID',
@@ -60,7 +70,7 @@ function tableConfig(): any {
             align: 'left',
             ellipsis: true,
             render: (a: any, b: any) => {
-                return <span style={{ fontSize: "12px" }}>{a || '--'}</span>
+                return <a style={{ fontSize: "12px" }} onClick={() => copy(a)}>{a || '--'}</a>
             }
         },
     ]