|
@@ -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, Typography, Tag, Popover, Checkbox } from 'antd'
|
|
|
+import { Col, Row, Input, Select, message, Space, Button, Popconfirm, Switch, notification, Modal, Tooltip, Checkbox } from 'antd'
|
|
|
import React, { useEffect, useCallback, useState } from 'react'
|
|
|
import TableData from '../../components/TableData'
|
|
|
import tableConfig from './tableConfig'
|
|
@@ -44,7 +44,7 @@ type Props = {
|
|
|
const Ad: React.FC<Props> = (props) => {
|
|
|
|
|
|
/***********************/
|
|
|
- let { accountId, adAccountId, userId, tableIdClick, queryParmas, Ts } = props
|
|
|
+ let { accountId, userId, queryParmas, Ts } = props
|
|
|
const [selectedRows, setSelectedRows] = useState<any[]>([])
|
|
|
const [update, setUpdate] = useState<{ visible: boolean, title: string }>({ visible: false, title: '' })
|
|
|
const [model, setModel] = useState(true)
|
|
@@ -522,10 +522,8 @@ const Ad: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
}}
|
|
|
onChange={(props: any) => {
|
|
|
- let { sortData, pagination } = props
|
|
|
+ let { pagination } = props
|
|
|
let { current, pageSize } = pagination
|
|
|
- // console.log(pagination)
|
|
|
- // console.log({...queryFrom, pageNum: current, pageSize })
|
|
|
set_queryFrom({ ...queryFrom, pageNum: current, pageSize })
|
|
|
getList({ ...queryFrom, pageNum: current, pageSize })
|
|
|
}}
|