|
@@ -5,10 +5,11 @@ import { Col, Row, Input, Select, message, Space, Button, Popconfirm, Switch, no
|
|
|
import React, { useEffect, useCallback, useState } from 'react'
|
|
|
import TableData from '../../components/TableData'
|
|
|
import tableConfig from './tableConfig'
|
|
|
-import { putAdqAdgroupsSync, getAdqAdgroupsList, delListAdqAdgroupsApi, newEditAdqAdgroupsDataApi } from '@/services/launchAdq/adq'
|
|
|
+import { putAdqAdgroupsSync, getAdqAdgroupsList, delListAdqAdgroupsApi, newEditAdqAdgroupsDataApi, editAdqAdgroupsDataApi } from '@/services/launchAdq/adq'
|
|
|
import { CopyOutlined, DeleteOutlined, FieldTimeOutlined, PauseCircleOutlined, PlayCircleOutlined, TransactionOutlined } from '@ant-design/icons'
|
|
|
import UpdateAd from './updateAd'
|
|
|
import Copy from './copy'
|
|
|
+import { DataType } from '@/components/Tables'
|
|
|
|
|
|
type Props = {
|
|
|
accountId: string,
|
|
@@ -42,7 +43,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
const [update, setUpdate] = useState<{ visible: boolean, title: string }>({ visible: false, title: '' })
|
|
|
const [model, setModel] = useState(true)
|
|
|
const [copyData, setCopyData] = useState<{ visible: boolean }>({ visible: false })
|
|
|
- const [queryFrom,set_queryFrom]=useState<{
|
|
|
+ const [queryFrom, set_queryFrom] = useState<{
|
|
|
pageNum: number;
|
|
|
pageSize: number;
|
|
|
accountIdList?: any[];
|
|
@@ -51,25 +52,26 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
promotedObjectType?: string;
|
|
|
isDeleted?: boolean
|
|
|
campaignIdList?: any[]
|
|
|
- statusList?:any[],
|
|
|
- memoList?:any[]
|
|
|
- remarkList?:any[]
|
|
|
- }>({pageNum:1,pageSize:20})
|
|
|
+ statusList?: any[],
|
|
|
+ memoList?: any[]
|
|
|
+ remarkList?: any[]
|
|
|
+ }>({ pageNum: 1, pageSize: 20 })
|
|
|
const listAjax = useAjax((params) => getAdqAdgroupsList(params), { formatResult: true })
|
|
|
const syncAjax = useAjax((adAccountId) => putAdqAdgroupsSync(adAccountId))
|
|
|
const delListAdqAdgroups = useAjax((params) => delListAdqAdgroupsApi(params))
|
|
|
const editAdqAdgroupsData = useAjax((params) => newEditAdqAdgroupsDataApi(params))
|
|
|
+ const editAdqAdgroups = useAjax((params) => editAdqAdgroupsDataApi(params))
|
|
|
/************************/
|
|
|
|
|
|
useEffect(() => {
|
|
|
- let {accountId,campaignId,adgroupId,...obj} = queryParmas
|
|
|
+ let { accountId, campaignId, adgroupId, ...obj } = queryParmas
|
|
|
let new_queryParmas = {
|
|
|
...obj,
|
|
|
- accountIdList:accountId?[accountId]:[],
|
|
|
- campaignIdList:campaignId?[campaignId]:[],
|
|
|
- adgroupIdList:adgroupId?[adgroupId]:[]
|
|
|
+ accountIdList: accountId ? [accountId] : [],
|
|
|
+ campaignIdList: campaignId ? [campaignId] : [],
|
|
|
+ adgroupIdList: adgroupId ? [adgroupId] : []
|
|
|
}
|
|
|
- getList({ pageNum: 1, pageSize: 20, ...new_queryParmas,accountIdList:accountId?[accountId]:[] })
|
|
|
+ getList({ pageNum: 1, pageSize: 20, ...new_queryParmas, accountIdList: accountId ? [accountId] : [] })
|
|
|
}, [accountId, userId, queryParmas])
|
|
|
|
|
|
// 获取列表
|
|
@@ -82,9 +84,9 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
promotedObjectType?: string;
|
|
|
isDeleted?: boolean
|
|
|
campaignIdList?: any[]
|
|
|
- statusList?:any[],
|
|
|
- memoList?:any[]
|
|
|
- remarkList?:any[]
|
|
|
+ statusList?: any[],
|
|
|
+ memoList?: any[]
|
|
|
+ remarkList?: any[]
|
|
|
}) => {
|
|
|
if (!params.adgroupName || params.adgroupName !== listAjax?.params[0]?.adgroupName) {
|
|
|
!params.adgroupName && delete params.adgroupName
|
|
@@ -160,6 +162,13 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
setCopyData({ visible: true })
|
|
|
}
|
|
|
|
|
|
+ const handleSave = (row: any) => {
|
|
|
+ editAdqAdgroups.run({ adgroupIds: [row.adgroupId], adgroupName: row.adgroupName }).then(res => {
|
|
|
+ message.success('修改广告名称成功')
|
|
|
+ listAjax.refresh()
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
return <div>
|
|
|
{/* 修改广告 */}
|
|
|
{update.visible && <UpdateAd
|
|
@@ -186,6 +195,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
page={listAjax?.data?.data?.current}
|
|
|
pageSize={listAjax?.data?.data?.size}
|
|
|
myKey={'adgroupId'}
|
|
|
+ handleSave={handleSave}
|
|
|
leftChild={<Space direction='vertical'>
|
|
|
<Row gutter={[10, 10]} align='middle'>
|
|
|
<Col>
|
|
@@ -195,37 +205,37 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter(a => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({ ...queryFrom,pageNum: 1, accountIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, accountIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, accountIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({...queryFrom, pageNum: 1, accountIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, accountIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, accountIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,accountIdList: arr})
|
|
|
- getList({...queryFrom, pageNum: 1, accountIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, accountIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, accountIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -237,22 +247,22 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
style={{ width: 150 }}
|
|
|
onBlur={(e) => {
|
|
|
let value = e.target.value
|
|
|
- set_queryFrom({...queryFrom,adgroupName: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, adgroupName: value })
|
|
|
+ set_queryFrom({ ...queryFrom, 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, adgroupName: value })
|
|
|
+ set_queryFrom({ ...queryFrom, 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, adgroupName: value })
|
|
|
+ set_queryFrom({ ...queryFrom, adgroupName: value })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, adgroupName: value })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -264,37 +274,37 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
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: any)=>a)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, adgroupIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, adgroupIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, adgroupIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, adgroupIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,adgroupIdList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, adgroupIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, adgroupIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -306,37 +316,37 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
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: any)=>a)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, campaignIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, campaignIdList: 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,campaignIdList: arr })
|
|
|
- getList({ ...queryFrom,pageNum: 1, campaignIdList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, campaignIdList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, campaignIdList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -351,8 +361,8 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
- set_queryFrom({...queryFrom,promotedObjectType: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, promotedObjectType: value })
|
|
|
+ set_queryFrom({ ...queryFrom, promotedObjectType: value })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, promotedObjectType: value })
|
|
|
}}
|
|
|
>
|
|
|
{Object.keys(PromotedObjectType).map(key => {
|
|
@@ -370,8 +380,8 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
- set_queryFrom({...queryFrom,isDeleted: value })
|
|
|
- getList({ ...queryFrom,pageNum: 1, isDeleted: value })
|
|
|
+ set_queryFrom({ ...queryFrom, isDeleted: value })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, isDeleted: value })
|
|
|
}}
|
|
|
>
|
|
|
<Select.Option value={true}>已删除</Select.Option>
|
|
@@ -389,13 +399,13 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
allowClear
|
|
|
onChange={(value: any) => {
|
|
|
- set_queryFrom({...queryFrom,statusList: value })
|
|
|
- getList({...queryFrom, pageNum: 1, statusList: value })
|
|
|
+ set_queryFrom({ ...queryFrom, statusList: value })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, statusList: value })
|
|
|
}}
|
|
|
>
|
|
|
{
|
|
|
- Object.keys(AdStatusEnum).map(key=>{
|
|
|
- return <Select.Option value={key} key={key}>{AdStatusEnum[key]}</Select.Option>
|
|
|
+ Object.keys(AdStatusEnum).map(key => {
|
|
|
+ return <Select.Option value={key} key={key}>{AdStatusEnum[key]}</Select.Option>
|
|
|
})
|
|
|
}
|
|
|
</Select>
|
|
@@ -407,37 +417,37 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter(a => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, memoList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, memoList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,memoList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, memoList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, memoList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, memoList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -449,37 +459,37 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter(a => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, remarkList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, remarkList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, 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)
|
|
|
+ let arr: any = []
|
|
|
+ if (value) {
|
|
|
+ value = value.replace(/[,,\s]/g, ',')
|
|
|
+ arr = value.split(',').filter((a: any) => a)
|
|
|
}
|
|
|
- set_queryFrom({...queryFrom,remarkList: arr })
|
|
|
- getList({...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
+ set_queryFrom({ ...queryFrom, remarkList: arr })
|
|
|
+ getList({ ...queryFrom, pageNum: 1, remarkList: arr })
|
|
|
}
|
|
|
}}
|
|
|
/>
|
|
@@ -490,7 +500,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
<Switch checkedChildren="普通模式" unCheckedChildren="深度优化" checked={model} onChange={(checked) => { setModel(checked); setSelectedRows([]) }} style={model ? {} : { background: '#67c23a' }} />
|
|
|
</Col>
|
|
|
{model ? <>
|
|
|
- <Col><Button type='primary' style={{ background: '#1890ff' }} icon={<FieldTimeOutlined />} disabled={selectedRows.length === 0} onClick={editScheduling}>修改排期出价</Button></Col>
|
|
|
+ <Col><Button type='primary' style={{ background: '#1890ff' }} icon={<FieldTimeOutlined />} disabled={selectedRows.length === 0} onClick={editScheduling}>修改排期出价名称</Button></Col>
|
|
|
<Col><Button type='primary' style={{ background: '#1890ff' }} icon={<CopyOutlined />} disabled={selectedRows.length === 0} onClick={copyHandle}>批量复制</Button></Col>
|
|
|
<Col><Button type='primary' style={{ background: '#67c23a', borderColor: '#67c23a' }} loading={editAdqAdgroupsData.loading} icon={<PlayCircleOutlined />} disabled={selectedRows.length === 0} onClick={() => adStatus('play')}>启动广告</Button></Col>
|
|
|
<Col><Button type='primary' style={{ background: '#e6a23c', borderColor: '#e6a23c' }} loading={editAdqAdgroupsData.loading} icon={<PauseCircleOutlined />} disabled={selectedRows.length === 0} onClick={() => adStatus('suspend')}>暂停广告</Button></Col>
|
|
@@ -527,8 +537,8 @@ 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 })
|
|
|
+ set_queryFrom({ ...queryFrom, pageNum: current, pageSize })
|
|
|
+ getList({ ...queryFrom, pageNum: current, pageSize })
|
|
|
}}
|
|
|
/>
|
|
|
</div>
|