shenwu 2 lat temu
rodzic
commit
8bf4e98245

+ 14 - 3
src/pages/launchSystemNew/account/tableConfig.tsx

@@ -31,11 +31,22 @@ export function columnsMp(edit:(params: any)=>void): any {
             }
         },
         {
-            title: '备注',
+            title: '腾讯备注',
+            dataIndex: 'memo',
+            key: 'memo',
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
+        },
+        {
+            title: '本地备注',
             dataIndex: 'remark',
             key: 'remark',
-            width: 200,
-            ellipsis:true,
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
         },
         // {
         //     title: '公众号信息',

+ 40 - 0
src/pages/launchSystemNew/adq/ad/index.tsx

@@ -72,6 +72,7 @@ const Ad: React.FC<Props> = (props) => {
         campaignIdList?: any[]
         statusList?:any[],
         memoList?:any[]
+        remarkList?:any[]
     }) => {
         if (!params.adgroupName || params.adgroupName !== listAjax?.params[0]?.adgroupName) {
             !params.adgroupName && delete params.adgroupName
@@ -411,6 +412,45 @@ const Ad: React.FC<Props> = (props) => {
                             }}
                         />
                     </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, remarkList: 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, remarkList: 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, remarkList: arr })
+                                }
+                            }}
+                        />
+                    </Col>
                 </Row>
                 <Row gutter={[10, 10]} align='middle'>
                     <Col>

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

@@ -53,6 +53,15 @@ function tableConfig(
             fixed: 'left',
             ellipsis: true,
         },
+        {
+            title: '本地备注',
+            dataIndex: 'remark',
+            key: 'remark',
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
+        },
         {
             title: '广告ID',
             dataIndex: 'adgroupId',

+ 18 - 0
src/pages/launchSystemNew/adq/adAccount/tableConfig.tsx

@@ -35,6 +35,24 @@ function tableConfig(tableIdClick: (props: {
                 }}>{a}</a>
             }
         },
+        {
+            title: '腾讯备注',
+            dataIndex: 'memo',
+            key: 'memo',
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
+        },
+        {
+            title: '本地备注',
+            dataIndex: 'remark',
+            key: 'remark',
+            align: 'center',
+            width: 100,
+            fixed: 'left',
+            ellipsis: true,
+        },
         {
             title: '账户余额(分)',
             dataIndex: 'balance',