|
@@ -8,7 +8,7 @@ import AuthButton from '../../../components/AuthButton';
|
8
|
8
|
|
9
|
9
|
const dataRecord = props => {
|
10
|
10
|
const [data, setData] = useState({})
|
11
|
|
- const { targetId, targetType, channelId, targetName, buildingId, newCustomers } = props.location.query
|
|
11
|
+ const { targetId, targetType, channelId, targetName, buildingId, newCustomers, startDate, endDate } = props.location.query
|
12
|
12
|
|
13
|
13
|
useEffect(() => {
|
14
|
14
|
getList({ pageNum: 1, pageSize: 10 })
|
|
@@ -16,7 +16,7 @@ const dataRecord = props => {
|
16
|
16
|
}, [])
|
17
|
17
|
|
18
|
18
|
const getList = params => {
|
19
|
|
- request({ ...apis.channelList.newuserList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } }).then(data => {
|
|
19
|
+ request({ ...apis.channelList.newuserList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } }).then(data => {
|
20
|
20
|
console.log(data,"dddddddddddd")
|
21
|
21
|
setData(data)
|
22
|
22
|
}).catch(e => {
|
|
@@ -71,7 +71,7 @@ const dataRecord = props => {
|
71
|
71
|
const exportExcel = () => {
|
72
|
72
|
// const fieldsValue = getFieldsValue()
|
73
|
73
|
// console.log('fieldsValue', fieldsValue)
|
74
|
|
- request({ ...apis.channelList.newuserListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } })
|
|
74
|
+ request({ ...apis.channelList.newuserListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } })
|
75
|
75
|
.then(data => {
|
76
|
76
|
if (!data) {
|
77
|
77
|
return
|