|
@@ -201,7 +201,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter(a=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, accountIdList: arr })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, accountIdList: arr })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
@@ -213,7 +213,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, accountIdList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, accountIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
@@ -225,7 +225,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, accountIdList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, accountIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -238,21 +238,21 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
onBlur={(e) => {
|
|
|
let value = e.target.value
|
|
|
set_queryFrom({...queryFrom,adgroupName: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, adgroupName: value })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, adgroupName: value })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
|
if (key === 'Enter') {
|
|
|
let value = e.target.value
|
|
|
set_queryFrom({...queryFrom,adgroupName: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, adgroupName: value })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, adgroupName: value })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
|
let value = e.target.value
|
|
|
if (!value) {
|
|
|
set_queryFrom({...queryFrom,adgroupName: value })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, adgroupName: value })
|
|
|
+ getList({...queryFrom, pageNum: 1, adgroupName: value })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -270,7 +270,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, adgroupIdList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
@@ -282,7 +282,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, adgroupIdList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
@@ -294,7 +294,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, adgroupIdList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -312,7 +312,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
@@ -324,7 +324,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
@@ -336,7 +336,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -352,7 +352,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
set_queryFrom({...queryFrom,promotedObjectType: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, promotedObjectType: value })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, promotedObjectType: value })
|
|
|
}}
|
|
|
>
|
|
|
{Object.keys(PromotedObjectType).map(key => {
|
|
@@ -371,7 +371,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
set_queryFrom({...queryFrom,isDeleted: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, pageSize: 20, isDeleted: value })
|
|
|
+ getList({ ...queryFrom,pageNum: 1, isDeleted: value })
|
|
|
}}
|
|
|
>
|
|
|
<Select.Option value={true}>已删除</Select.Option>
|
|
@@ -390,7 +390,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
set_queryFrom({...queryFrom,statusList: value })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, statusList: value })
|
|
|
+ getList({...queryFrom, pageNum: 1, statusList: value })
|
|
|
}}
|
|
|
>
|
|
|
{
|
|
@@ -413,7 +413,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter(a=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, memoList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
@@ -425,7 +425,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, memoList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
@@ -437,7 +437,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, memoList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -455,7 +455,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter(a=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, remarkList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
}}
|
|
|
onKeyDownCapture={(e: any) => {
|
|
|
let key = e.key
|
|
@@ -467,7 +467,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, remarkList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
}
|
|
|
}}
|
|
|
onChange={(e) => {
|
|
@@ -479,7 +479,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
arr = value.split(',').filter((a: any)=>a)
|
|
|
}
|
|
|
set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, pageSize: 20, remarkList: arr })
|
|
|
+ getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -527,6 +527,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
onChange={(props: any) => {
|
|
|
let { sortData, pagination } = props
|
|
|
let { current, pageSize } = pagination
|
|
|
+ set_queryFrom({...queryFrom,pageNum:current,pageSize})
|
|
|
getList({...queryFrom, pageNum: current, pageSize })
|
|
|
}}
|
|
|
/>
|