Переглянути джерело

修复广告账户搜索回车,广告列表支持翻页多选

shenwu 2 роки тому
батько
коміт
c562e95a0c
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      src/pages/launchSystemNew/account/index.tsx

+ 4 - 4
src/pages/launchSystemNew/account/index.tsx

@@ -68,7 +68,7 @@ const AdAuthorize: React.FC = () => {
 
     useEffect(() => {
         getList()
-    }, [queryForm])
+    }, [])
 
     /** 获取账号列表 */
     const getList = () => {
@@ -166,13 +166,13 @@ const AdAuthorize: React.FC = () => {
                             <Radio.Button value="putUser">批量指派投放助理</Radio.Button>
                         </Radio.Group>
                         <Input.TextArea
-                            placeholder="广告账号, 多个以,隔开(id1,id2)"
+                            placeholder="多个广告账号以,隔开(id1,id2)"
                             allowClear
                             style={{ minWidth: 200 }}
-                            rows={1}
                             value={queryForm?.accountIds}
+                            rows={1}
                             onChange={(e) => {
-                                setQueryForm({ ...queryForm, accountIds: e.target.value })
+                                setQueryForm({ ...queryForm, accountIds: e.target.value.replaceAll(/\s/ig,'') })
                             }}
                         />
                         <Button onClick={getList} type='primary' loading={getAdAccountList.loading}>搜索</Button>