|
@@ -1,7 +1,7 @@
|
|
|
|
|
|
import { useAjax } from '@/Hook/useAjax'
|
|
|
import { AdStatusEnum, PromotedObjectType } from '@/services/launchAdq/enum'
|
|
|
-import { Col, Row, Input, Select, message, Space, Button, Popconfirm, Switch, notification, Modal } from 'antd'
|
|
|
+import { Col, Row, Input, Select, message, Space, Button, Popconfirm, Switch, notification, Modal, Tooltip } from 'antd'
|
|
|
import React, { useEffect, useCallback, useState } from 'react'
|
|
|
import TableData from '../../components/TableData'
|
|
|
import tableConfig from './tableConfig'
|
|
@@ -234,8 +234,6 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- console.log('selectedRows--->', selectedRows)
|
|
|
-
|
|
|
return <div>
|
|
|
{/* 修改广告 */}
|
|
|
{update.visible && <UpdateAd
|
|
@@ -431,7 +429,9 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
<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>
|
|
|
- <Col><Button type='primary' loading={putModifyCustomAudience.loading} disabled={selectedRows.length > 0 ? !selectedRows.every((item: { accountId: number }) => item.accountId === selectedRows[0].accountId) : true} onClick={() => setRqb()}>修改人群包</Button></Col>
|
|
|
+ <Col><Tooltip title="2023/4/20 16:30:00后平台创建的广告可修改,或者其它平台使用定向包创建广告可用">
|
|
|
+ <Button type='primary' loading={putModifyCustomAudience.loading} disabled={selectedRows.length > 0 ? !selectedRows.every((item: { accountId: number }) => item.accountId === selectedRows[0].accountId) : true} onClick={() => setRqb()}>修改人群包</Button>
|
|
|
+ </Tooltip></Col>
|
|
|
<Col><Button type='primary' style={{ background: '#00bcd4', borderColor: '#00bcd4' }} loading={putAdqAdgroupsSyncBatchApi.loading} icon={<SyncOutlined />} disabled={selectedRows.length === 0} onClick={syncAd}>同步广告</Button></Col>
|
|
|
<Col><SetEarlyWarning selectedRows={selectedRows} onChange={() => listAjax.refresh()} /></Col>
|
|
|
<Col>
|