|
@@ -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, Tooltip } from 'antd'
|
|
|
+import { Col, Row, Input, Select, message, Space, Button, Popconfirm, Switch, notification, Modal, Tooltip, Typography, Tag, Popover, Checkbox } from 'antd'
|
|
|
import React, { useEffect, useCallback, useState } from 'react'
|
|
|
import TableData from '../../components/TableData'
|
|
|
import tableConfig from './tableConfig'
|
|
@@ -53,6 +53,7 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
const [detailData, setDetailData] = useState<any>({})
|
|
|
const [czjlShow, setCzjlShow] = useState(false)
|
|
|
const [cpVisible, setCpVisible] = useState(false)
|
|
|
+ const [isClearSelect, setIsClearSelect] = useState(true)
|
|
|
const [accountCreateLogs, setAccountCreateLogs] = useState<{ adAccountId: number, id: number, customAudienceList?: any[], excludedCustomAudienceList?: any[] }[]>([])
|
|
|
const [queryFrom, set_queryFrom] = useState<{
|
|
|
pageNum: number;
|
|
@@ -400,7 +401,18 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
/>
|
|
|
</Col>
|
|
|
<Col>
|
|
|
- <Button type='primary' onClick={() => getList({ ...queryFrom, pageNum: 1 })}> 搜索</Button>
|
|
|
+ <Space>
|
|
|
+ <Button type='primary' onClick={() => {
|
|
|
+ if (isClearSelect) {
|
|
|
+ setSelectedRows([])
|
|
|
+ }
|
|
|
+ getList({ ...queryFrom, pageNum: 1 })
|
|
|
+ }}>搜索</Button>
|
|
|
+ <Checkbox checked={isClearSelect} onChange={(e) => setIsClearSelect(e.target.checked)}>搜索清空已选</Checkbox>
|
|
|
+ {selectedRows?.length > 0 && <Button type='link' style={{ padding: 0, color: 'red' }} onClick={() => {
|
|
|
+ setSelectedRows([])
|
|
|
+ }}>清空已选</Button>}
|
|
|
+ </Space>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<TableData
|