shenwu 2 anos atrás
pai
commit
875f640749

+ 41 - 1
src/pages/launchSystemNew/adq/ad/index.tsx

@@ -70,7 +70,8 @@ const Ad: React.FC<Props> = (props) => {
         promotedObjectType?: string;
         isDeleted?: boolean
         campaignIdList?: any[]
-        statusList?:any[]
+        statusList?:any[],
+        memoList?:any[]
     }) => {
         if (!params.adgroupName || params.adgroupName !== listAjax?.params[0]?.adgroupName) {
             !params.adgroupName && delete params.adgroupName
@@ -371,6 +372,45 @@ const Ad: React.FC<Props> = (props) => {
                             }
                         </Select>
                     </Col>
+                    <Col>
+                        <Input
+                            placeholder='腾讯备注'
+                            allowClear
+                            style={{ width: 150 }}
+                            onBlur={(e) => {
+                                let value = e.target.value
+                                let arr:any = []
+                                if(value){
+                                    value = value.replace(/[,,\s]/g,',')
+                                    arr = value.split(',').filter(a=>a)
+                                }
+                                getList({ pageNum: 1, pageSize: 20, memoList: arr })
+                            }}
+                            onKeyDownCapture={(e: any) => {
+                                let key = e.key
+                                if (key === 'Enter') {
+                                    let value = e.target.value
+                                    let arr:any = []
+                                    if(value){
+                                        value = value.replace(/[,,\s]/g,',')
+                                        arr = value.split(',').filter((a: any)=>a)
+                                    }
+                                    getList({ pageNum: 1, pageSize: 20, memoList: arr })
+                                }
+                            }}
+                            onChange={(e) => {
+                                let value = e.target.value
+                                if (!value) {
+                                    let arr:any = []
+                                    if(value){
+                                        value = value.replace(/[,,\s]/g,',')
+                                        arr = value.split(',').filter((a: any)=>a)
+                                    }
+                                    getList({ pageNum: 1, pageSize: 20, memoList: arr })
+                                }
+                            }}
+                        />
+                    </Col>
                 </Row>
                 <Row gutter={[10, 10]} align='middle'>
                     <Col>

+ 9 - 0
src/pages/launchSystemNew/adq/ad/tableConfig.tsx

@@ -44,6 +44,15 @@ function tableConfig(
                 }}>{a}</a>
             }
         },
+        {
+            title: '腾讯备注',
+            dataIndex: 'memo',
+            key: 'memo',
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
+        },
         {
             title: '广告ID',
             dataIndex: 'adgroupId',