wjx vor 2 Monaten
Ursprung
Commit
59419c65ba
1 geänderte Dateien mit 16 neuen und 1 gelöschten Zeilen
  1. 16 1
      src/pages/launchSystemV3/adqv3/creative/index.tsx

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

@@ -51,6 +51,9 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
         if (params?.accountId) {
             params.accountId = params.accountId?.split(/[,,\s\n]+/)
         }
+        if (params?.scIds) {
+            params[params?.scType === 'IMAGE' ? 'imageId' : params?.scType === 'VIDEO' ? 'videoId' : 'text'] = params.scIds?.split(/[,,\s\n]+/)
+        }
         getDynamicCreativeV3List.run(params)
     }, [userId, queryForm])
 
@@ -134,7 +137,7 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
             layout="inline"
             form={form}
             name="basignCreative"
-            initialValues={queryForm}
+            initialValues={{ ...queryForm, scType: 'IMAGE' }}
             onFinish={onFinish}
             style={{ marginBottom: 6 }}
         >
@@ -142,6 +145,18 @@ const Creative: React.FC<ADQV3.CreativeProps> = ({ queryForm, setQueryForm, user
                 <Col><Form.Item name='accountId' style={{ marginRight: 0 }}>
                     <Input placeholder="广告账号,多个逗号隔开" style={{ width: 180 }} allowClear />
                 </Form.Item></Col>
+                <Col><Form.Item name='scIds' style={{ marginRight: 0 }}>
+                    <Input
+                        placeholder="腾讯素材ID/文案,多个逗号隔开"
+                        style={{ width: 240 }}
+                        allowClear
+                        addonBefore={<Form.Item name='scType' noStyle><Select>
+                            <Select.Option value="IMAGE">图片</Select.Option>
+                            <Select.Option value="VIDEO">视频</Select.Option>
+                            <Select.Option value="TEXT">文案</Select.Option>
+                        </Select></Form.Item>}
+                    />
+                </Form.Item></Col>
                 <Col><Form.Item name='adgroupId' style={{ marginRight: 0 }}>
                     <Input placeholder="广告ID" style={{ width: 120 }} allowClear />
                 </Form.Item></Col>